SND@LHC Software
Loading...
Searching...
No Matches
ShipRpcPoint Class Reference

#include <ShipRpcPoint.h>

Inheritance diagram for ShipRpcPoint:
Collaboration diagram for ShipRpcPoint:

Public Member Functions

 ShipRpcPoint ()
 
 ShipRpcPoint (Int_t trackID, Int_t detID, TVector3 pos, TVector3 mom, Double_t tof, Double_t length, Double_t eLoss, Int_t pdgcode)
 
virtual ~ShipRpcPoint ()
 
virtual void Print (const Option_t *opt) const
 
Int_t PdgCode () const
 

Private Member Functions

 ShipRpcPoint (const ShipRpcPoint &point)
 
ShipRpcPoint operator= (const ShipRpcPoint &point)
 

Private Attributes

Int_t fPdgCode
 

Detailed Description

Definition at line 10 of file ShipRpcPoint.h.

Constructor & Destructor Documentation

◆ ShipRpcPoint() [1/3]

ShipRpcPoint::ShipRpcPoint ( )

Default constructor

Definition at line 9 of file ShipRpcPoint.cxx.

10 : FairMCPoint()
11{
12}

◆ ShipRpcPoint() [2/3]

ShipRpcPoint::ShipRpcPoint ( Int_t  trackID,
Int_t  detID,
TVector3  pos,
TVector3  mom,
Double_t  tof,
Double_t  length,
Double_t  eLoss,
Int_t  pdgcode 
)

Constructor with arguments

Parameters
trackIDIndex of MCTrack
detIDDetector ID
posCcoordinates at entrance to active volume [cm]
momMomentum of track at entrance [GeV]
tofTime since event start [ns]
lengthTrack length since creation [cm]
eLossEnergy deposit [GeV]

Definition at line 25 of file ShipRpcPoint.cxx.

29 : FairMCPoint(trackID, detID, pos, mom, tof, length, eLoss), fPdgCode(pdgcode)
30{
31}

◆ ~ShipRpcPoint()

ShipRpcPoint::~ShipRpcPoint ( )
virtual

Destructor

Definition at line 36 of file ShipRpcPoint.cxx.

36{ }

◆ ShipRpcPoint() [3/3]

ShipRpcPoint::ShipRpcPoint ( const ShipRpcPoint point)
private

Member Function Documentation

◆ operator=()

ShipRpcPoint ShipRpcPoint::operator= ( const ShipRpcPoint point)
private

◆ PdgCode()

Int_t ShipRpcPoint::PdgCode ( ) const
inline

Definition at line 41 of file ShipRpcPoint.h.

41{return fPdgCode;}

◆ Print()

void ShipRpcPoint::Print ( const Option_t *  opt) const
virtual

Output to screen

Definition at line 40 of file ShipRpcPoint.cxx.

41{
42 cout << "-I- ShipRpcPoint: ShipRpc point for track " << fTrackID
43 << " in detector " << fDetectorID << endl;
44 cout << " Position (" << fX << ", " << fY << ", " << fZ
45 << ") cm" << endl;
46 cout << " Momentum (" << fPx << ", " << fPy << ", " << fPz
47 << ") GeV" << endl;
48 cout << " Time " << fTime << " ns, Length " << fLength
49 << " cm, Energy loss " << fELoss*1.0e06 << " keV" << endl;
50}

Member Data Documentation

◆ fPdgCode

Int_t ShipRpcPoint::fPdgCode
private

Copy constructor

Definition at line 50 of file ShipRpcPoint.h.


The documentation for this class was generated from the following files: