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

#include <TargetPoint.h>

Inheritance diagram for TargetPoint:
Collaboration diagram for TargetPoint:

Public Member Functions

 TargetPoint ()
 
 TargetPoint (Int_t trackID, Int_t detID, TVector3 pos, TVector3 mom, Double_t tof, Double_t length, Double_t eLoss, Int_t pdgCode)
 
virtual ~TargetPoint ()
 
 TargetPoint (const TargetPoint &point)=default
 
TargetPointoperator= (const TargetPoint &point)=default
 
virtual void Print (const Option_t *opt) const
 
Int_t PdgCode () const
 

Private Attributes

Int_t fPdgCode
 

Detailed Description

Definition at line 12 of file TargetPoint.h.

Constructor & Destructor Documentation

◆ TargetPoint() [1/3]

TargetPoint::TargetPoint ( )

Default constructor

Definition at line 12 of file TargetPoint.cxx.

12: FairMCPoint() {}

◆ TargetPoint() [2/3]

TargetPoint::TargetPoint ( 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 28 of file TargetPoint.cxx.

31 : FairMCPoint(trackID, detID, pos, mom, tof, length, eLoss),
32 fPdgCode(pdgcode) {}
Int_t fPdgCode
Definition: TargetPoint.h:48

◆ ~TargetPoint()

TargetPoint::~TargetPoint ( )
virtual

Destructor

Definition at line 38 of file TargetPoint.cxx.

38{}

◆ TargetPoint() [3/3]

TargetPoint::TargetPoint ( const TargetPoint point)
default

Copy constructor

Member Function Documentation

◆ operator=()

TargetPoint & TargetPoint::operator= ( const TargetPoint point)
default

◆ PdgCode()

Int_t TargetPoint::PdgCode ( ) const
inline

Definition at line 45 of file TargetPoint.h.

45{ return fPdgCode; }

◆ Print()

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

Output to screen

Definition at line 42 of file TargetPoint.cxx.

42 {
43 cout << "-I- TargetPoint: ShipRpc point for track " << fTrackID
44 << " in detector " << fDetectorID << endl;
45 cout << " Position (" << fX << ", " << fY << ", " << fZ << ") cm" << endl;
46 cout << " Momentum (" << fPx << ", " << fPy << ", " << fPz << ") GeV"
47 << endl;
48 cout << " Time " << fTime << " ns, Length " << fLength
49 << " cm, Energy loss " << fELoss * 1.0e06 << " keV" << endl;
50}

Member Data Documentation

◆ fPdgCode

Int_t TargetPoint::fPdgCode
private

Definition at line 48 of file TargetPoint.h.


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