FairShip
Loading...
Searching...
No Matches
MTCDetPoint Class Reference

#include <MTCDetPoint.h>

Inheritance diagram for MTCDetPoint:
Collaboration diagram for MTCDetPoint:

Public Member Functions

 MTCDetPoint ()
 
 MTCDetPoint (Int_t trackID, Int_t detID, TVector3 pos, TVector3 mom, Double_t tof, Double_t length, Double_t eLoss, Int_t pdgcode)
 
virtual ~MTCDetPoint ()
 
 MTCDetPoint (const MTCDetPoint &point)=default
 
MTCDetPointoperator= (const MTCDetPoint &point)=default
 
virtual void Print () const
 
Int_t PdgCode () const
 
Int_t GetLayer () const
 
Int_t GetLayerType () const
 

Public Attributes

Int_t fPdgCode
 

Detailed Description

Definition at line 12 of file MTCDetPoint.h.

Constructor & Destructor Documentation

◆ MTCDetPoint() [1/3]

MTCDetPoint::MTCDetPoint ( )

Default constructor

Definition at line 12 of file MTCDetPoint.cxx.

12: FairMCPoint() {}

◆ MTCDetPoint() [2/3]

MTCDetPoint::MTCDetPoint ( 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 15 of file MTCDetPoint.cxx.

18 : FairMCPoint(trackID, detID, pos, mom, tof, length, eLoss),
19 fPdgCode(pdgcode) {}
Int_t fPdgCode
Definition: MTCDetPoint.h:47

◆ ~MTCDetPoint()

MTCDetPoint::~MTCDetPoint ( )
virtual

Destructor

Definition at line 24 of file MTCDetPoint.cxx.

24{}

◆ MTCDetPoint() [3/3]

MTCDetPoint::MTCDetPoint ( const MTCDetPoint point)
default

Copy constructor

Member Function Documentation

◆ GetLayer()

Int_t MTCDetPoint::GetLayer ( ) const
inline

Definition at line 41 of file MTCDetPoint.h.

41 {
42 return static_cast<int>(fDetectorID / 1000000) % 100;
43 }

◆ GetLayerType()

Int_t MTCDetPoint::GetLayerType ( ) const
inline

Definition at line 44 of file MTCDetPoint.h.

44 {
45 return static_cast<int>(fDetectorID / 100000) % 10;
46 }

◆ operator=()

MTCDetPoint & MTCDetPoint::operator= ( const MTCDetPoint point)
default

◆ PdgCode()

Int_t MTCDetPoint::PdgCode ( ) const
inline

Definition at line 40 of file MTCDetPoint.h.

40{ return fPdgCode; }

◆ Print()

void MTCDetPoint::Print ( ) const
virtual

Definition at line 28 of file MTCDetPoint.cxx.

28 {
29 cout << "-I- MTCDetPoint: MTC point for track " << fTrackID << " in detector "
30 << fDetectorID << endl;
31 cout << " Position (" << fX << ", " << fY << ", " << fZ << ") cm" << endl;
32 cout << " Momentum (" << fPx << ", " << fPy << ", " << fPz << ") GeV"
33 << endl;
34 cout << " Time " << fTime << " ns, Length " << fLength
35 << " cm, Energy loss " << fELoss * 1.0e06 << " keV" << endl;
36}

Member Data Documentation

◆ fPdgCode

Int_t MTCDetPoint::fPdgCode

Definition at line 47 of file MTCDetPoint.h.


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