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

#include <ScifiPoint.h>

Inheritance diagram for ScifiPoint:
Collaboration diagram for ScifiPoint:

Public Member Functions

 ScifiPoint ()
 
 ScifiPoint (Int_t trackID, Int_t detID, TVector3 pos, TVector3 mom, Double_t tof, Double_t length, Double_t eLoss, Int_t pdgcode)
 
virtual ~ScifiPoint ()
 
virtual void Print (const Option_t *opt) const
 
Int_t PdgCode () const
 
Int_t station ()
 
Int_t orientation ()
 
Int_t mat ()
 
Int_t row ()
 
Int_t fibreN ()
 

Private Member Functions

 ScifiPoint (const ScifiPoint &point)
 
ScifiPoint operator= (const ScifiPoint &point)
 

Private Attributes

Int_t fPdgCode
 

Detailed Description

Definition at line 10 of file ScifiPoint.h.

Constructor & Destructor Documentation

◆ ScifiPoint() [1/3]

ScifiPoint::ScifiPoint ( )

Default constructor

Definition at line 9 of file ScifiPoint.cxx.

10 : FairMCPoint()
11{
12}

◆ ScifiPoint() [2/3]

ScifiPoint::ScifiPoint ( 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 16 of file ScifiPoint.cxx.

20 : FairMCPoint(trackID, detID, pos, mom, tof, length, eLoss), fPdgCode(pdgcode)
21{
22}
Int_t fPdgCode
Definition ScifiPoint.h:57

◆ ~ScifiPoint()

ScifiPoint::~ScifiPoint ( )
virtual

Destructor

Definition at line 26 of file ScifiPoint.cxx.

26{ }

◆ ScifiPoint() [3/3]

ScifiPoint::ScifiPoint ( const ScifiPoint point)
private

Member Function Documentation

◆ fibreN()

Int_t ScifiPoint::fibreN ( )
inline

Definition at line 53 of file ScifiPoint.h.

53{return fDetectorID%1000;}

◆ mat()

Int_t ScifiPoint::mat ( )
inline

Definition at line 51 of file ScifiPoint.h.

51{return (fDetectorID-station()*1E6-orientation()*1E5)/1E4;}
Int_t orientation()
Definition ScifiPoint.h:50
Int_t station()
Definition ScifiPoint.h:49

◆ operator=()

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

◆ orientation()

Int_t ScifiPoint::orientation ( )
inline

Definition at line 50 of file ScifiPoint.h.

50{return (fDetectorID-station()*1E6)/1E5;}

◆ PdgCode()

Int_t ScifiPoint::PdgCode ( ) const
inline

Definition at line 39 of file ScifiPoint.h.

39{return fPdgCode;}

◆ Print()

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

Output to screen

Definition at line 30 of file ScifiPoint.cxx.

31{
32
33 cout << "-I- ScifiPoint: point for track " << fTrackID
34 << " in detector " << fDetectorID << endl;
35 cout << " Position (" << fX << ", " << fY << ", " << fZ
36 << ") cm" << endl;
37 cout << " Momentum (" << fPx << ", " << fPy << ", " << fPz
38 << ") GeV" << endl;
39 cout << " Time " << fTime << " ns, Length " << fLength
40 << " cm, Energy loss " << fELoss*1.0e06 << " keV" << endl;
41
42
43}

◆ row()

Int_t ScifiPoint::row ( )
inline

Definition at line 52 of file ScifiPoint.h.

52{return (fDetectorID-station()*1E6-orientation()*1E5-mat()*1E4)/1E3;}
Int_t mat()
Definition ScifiPoint.h:51

◆ station()

Int_t ScifiPoint::station ( )
inline

Definition at line 49 of file ScifiPoint.h.

49{return fDetectorID/1E6;}

Member Data Documentation

◆ fPdgCode

Int_t ScifiPoint::fPdgCode
private

Copy constructor

Definition at line 57 of file ScifiPoint.h.


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