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

#include <MTCDetPoint.h>

Inheritance diagram for MTCDetPoint:
[legend]
Collaboration diagram for MTCDetPoint:
[legend]

Public Member Functions

 MTCDetPoint ()=default
 MTCDetPoint (Int_t trackID, Int_t detID, const TVector3 &pos, const TVector3 &mom, Double_t tof, Double_t length, Double_t eLoss, Int_t pdgCode)
Int_t GetLayer () const
Int_t GetLayerType () const
Public Member Functions inherited from SHiP::DetectorPoint
 DetectorPoint ()=default
 ~DetectorPoint () override=default
 DetectorPoint (Int_t eventID, Int_t trackID, Int_t detID, const TVector3 &pos, const TVector3 &mom, Double_t tof, Double_t length, Double_t eLoss, Int_t pdgCode, const TVector3 &Lpos, const TVector3 &Lmom)
 DetectorPoint (Int_t eventID, Int_t trackID, Int_t detID, const TVector3 &pos, const TVector3 &mom, Double_t tof, Double_t length, Double_t eLoss, Int_t pdgCode)
 DetectorPoint (const DetectorPoint &point)=default
DetectorPoint & operator= (const DetectorPoint &point)=default
virtual void Print () const
Int_t PdgCode () const
TVector3 LastPoint () const
TVector3 LastMom () const
virtual void extraPrintInfo () const

Additional Inherited Members

Protected Attributes inherited from SHiP::DetectorPoint
Int_t fPdgCode
std::array< Double_t, 3 > fLpos
std::array< Double_t, 3 > fLmom

Detailed Description

Definition at line 11 of file MTCDetPoint.h.

Constructor & Destructor Documentation

◆ MTCDetPoint() [1/2]

MTCDetPoint::MTCDetPoint ( )
default

Default constructor

◆ MTCDetPoint() [2/2]

MTCDetPoint::MTCDetPoint ( Int_t trackID,
Int_t detID,
const TVector3 & pos,
const TVector3 & mom,
Double_t tof,
Double_t length,
Double_t eLoss,
Int_t pdgCode )
inline

Constructor with arguments

Parameters
trackIDIndex of MCTrack
detIDDetector ID
posCoordinates 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]
pdgCodePDG code of the track

Definition at line 26 of file MTCDetPoint.h.

29 : SHiP::DetectorPoint(0, trackID, detID, pos, mom, tof, length, eLoss,
30 pdgCode) {}

Member Function Documentation

◆ GetLayer()

Int_t MTCDetPoint::GetLayer ( ) const
inline

Definition at line 32 of file MTCDetPoint.h.

32 {
33 return static_cast<int>(fDetectorID / 1000000) % 100;
34 }

◆ GetLayerType()

Int_t MTCDetPoint::GetLayerType ( ) const
inline

Definition at line 35 of file MTCDetPoint.h.

35 {
36 return static_cast<int>(fDetectorID / 100000) % 10;
37 }

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