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

#include <vetoPoint.h>

Inheritance diagram for vetoPoint:
Collaboration diagram for vetoPoint:

Public Member Functions

 vetoPoint ()
 
 vetoPoint (Int_t trackID, Int_t detID, TVector3 pos, TVector3 mom, Double_t tof, Double_t length, Double_t eLoss, Int_t pdgCode, TVector3 Lpos, TVector3 Lmom)
 
virtual ~vetoPoint ()
 
virtual void Print () const
 
Int_t PdgCode () const
 
TVector3 LastPoint () const
 
TVector3 LastMom () const
 

Private Member Functions

 vetoPoint (const vetoPoint &point)
 
vetoPoint operator= (const vetoPoint &point)
 

Private Attributes

Int_t fPdgCode
 
TVector3 fLpos
 
TVector3 fLmom
 

Detailed Description

Definition at line 10 of file vetoPoint.h.

Constructor & Destructor Documentation

◆ vetoPoint() [1/3]

vetoPoint::vetoPoint ( )

Default constructor

Definition at line 9 of file vetoPoint.cxx.

10 : FairMCPoint()
11{
12}

◆ vetoPoint() [2/3]

vetoPoint::vetoPoint ( Int_t  trackID,
Int_t  detID,
TVector3  pos,
TVector3  mom,
Double_t  tof,
Double_t  length,
Double_t  eLoss,
Int_t  pdgCode,
TVector3  Lpos,
TVector3  Lmom 
)

Constructor with arguments

Parameters
trackIDIndex of MCTrack
detIDDetector ID for LiSc: segment T1 (seg=1), segment T2 (seg=2), normal detector (c=0) and corner detector (c=1), sequential number nr + 100000*seg + 10000*c;
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 vetoPoint.cxx.

20 : FairMCPoint(trackID, detID, pos, mom, tof, length, eLoss), fPdgCode(pdgcode),fLpos(Lpos),fLmom(Lmom)
21{
22}
TVector3 fLmom
Definition vetoPoint.h:45
Int_t fPdgCode
Definition vetoPoint.h:44
TVector3 fLpos
Definition vetoPoint.h:45

◆ ~vetoPoint()

vetoPoint::~vetoPoint ( )
virtual

Destructor

Definition at line 26 of file vetoPoint.cxx.

26{ }

◆ vetoPoint() [3/3]

vetoPoint::vetoPoint ( const vetoPoint point)
private

Member Function Documentation

◆ LastMom()

TVector3 vetoPoint::LastMom ( ) const
inline

Definition at line 40 of file vetoPoint.h.

40{return fLmom;}

◆ LastPoint()

TVector3 vetoPoint::LastPoint ( ) const
inline

Definition at line 39 of file vetoPoint.h.

39{return fLpos;}

◆ operator=()

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

◆ PdgCode()

Int_t vetoPoint::PdgCode ( ) const
inline

Definition at line 38 of file vetoPoint.h.

38{return fPdgCode;}

◆ Print()

void vetoPoint::Print ( ) const
virtual

Output to screen

Definition at line 30 of file vetoPoint.cxx.

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

Member Data Documentation

◆ fLmom

TVector3 vetoPoint::fLmom
private

Definition at line 45 of file vetoPoint.h.

◆ fLpos

TVector3 vetoPoint::fLpos
private

Definition at line 45 of file vetoPoint.h.

◆ fPdgCode

Int_t vetoPoint::fPdgCode
private

Copy constructor

Definition at line 44 of file vetoPoint.h.


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