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

#include <SiliconTargetPoint.h>

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

Public Member Functions

 SiliconTargetPoint ()=default
 SiliconTargetPoint (Int_t trackID, Int_t detID, const TVector3 &pos, const TVector3 &mom, Double_t tof, Double_t length, Double_t eLoss, Int_t pdgCode)
constexpr int GetLayer () const
constexpr int GetPlane () const
constexpr int GetColumn () const
constexpr int GetRow () const
constexpr int GetStrip () const
constexpr int GetModule () 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 13 of file SiliconTargetPoint.h.

Constructor & Destructor Documentation

◆ SiliconTargetPoint() [1/2]

SiliconTargetPoint::SiliconTargetPoint ( )
default

Default constructor

◆ SiliconTargetPoint() [2/2]

SiliconTargetPoint::SiliconTargetPoint ( 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 28 of file SiliconTargetPoint.h.

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

Member Function Documentation

◆ GetColumn()

int SiliconTargetPoint::GetColumn ( ) const
inlineconstexpr

Definition at line 38 of file SiliconTargetPoint.h.

38 {
39 return static_cast<int>(fDetectorID >> 14) % 4;
40 }

◆ GetLayer()

int SiliconTargetPoint::GetLayer ( ) const
inlineconstexpr

Definition at line 34 of file SiliconTargetPoint.h.

34{ return floor(fDetectorID >> 17); }

◆ GetModule()

int SiliconTargetPoint::GetModule ( ) const
inlineconstexpr

Definition at line 47 of file SiliconTargetPoint.h.

47{ return GetRow() + 1 + 2 * GetColumn(); }
constexpr int GetRow() const
constexpr int GetColumn() const

◆ GetPlane()

int SiliconTargetPoint::GetPlane ( ) const
inlineconstexpr

Definition at line 35 of file SiliconTargetPoint.h.

35 {
36 return static_cast<int>(fDetectorID >> 16) % 2;
37 } // 0 is X-plane, 1 is Y-pane

◆ GetRow()

int SiliconTargetPoint::GetRow ( ) const
inlineconstexpr

Definition at line 41 of file SiliconTargetPoint.h.

41 {
42 return static_cast<int>(fDetectorID >> 13) % 2;
43 }

◆ GetStrip()

int SiliconTargetPoint::GetStrip ( ) const
inlineconstexpr

Definition at line 44 of file SiliconTargetPoint.h.

44 {
45 return static_cast<int>(fDetectorID % 4096);
46 }

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