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

#include <TTPoint.h>

Inheritance diagram for TTPoint:
Collaboration diagram for TTPoint:

Public Member Functions

 TTPoint ()
 
 TTPoint (Int_t trackID, Int_t detID, TVector3 pos, TVector3 mom, Double_t tof, Double_t length, Double_t eLoss, Int_t pdgCode)
 
virtual ~TTPoint ()
 
virtual void Print (const Option_t *opt) const
 
Int_t PdgCode () const
 

Private Member Functions

 TTPoint (const TTPoint &point)
 
TTPoint operator= (const TTPoint &point)
 

Private Attributes

Int_t fPdgCode
 

Detailed Description

Definition at line 10 of file TTPoint.h.

Constructor & Destructor Documentation

◆ TTPoint() [1/3]

TTPoint::TTPoint ( )

Default constructor

Definition at line 9 of file TTPoint.cxx.

10 : FairMCPoint()
11{
12}

◆ TTPoint() [2/3]

TTPoint::TTPoint ( 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 TTPoint.cxx.

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

◆ ~TTPoint()

TTPoint::~TTPoint ( )
virtual

Destructor

Definition at line 24 of file TTPoint.cxx.

24{ }

◆ TTPoint() [3/3]

TTPoint::TTPoint ( const TTPoint point)
private

Copy constructor

Member Function Documentation

◆ operator=()

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

◆ PdgCode()

Int_t TTPoint::PdgCode ( ) const
inline

Definition at line 44 of file TTPoint.h.

44{return fPdgCode;}

◆ Print()

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

Output to screen

Definition at line 28 of file TTPoint.cxx.

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

Member Data Documentation

◆ fPdgCode

Int_t TTPoint::fPdgCode
private

Definition at line 50 of file TTPoint.h.


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