#include <TargetPoint.h>
|
| 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 () |
|
virtual void | Print (const Option_t *opt) const |
|
Int_t | PdgCode () const |
|
Definition at line 10 of file TargetPoint.h.
◆ TargetPoint() [1/3]
TargetPoint::TargetPoint |
( |
| ) |
|
Default constructor
Definition at line 9 of file TargetPoint.cxx.
10 : FairMCPoint()
11{
12}
◆ 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
-
trackID | Index of MCTrack |
detID | Detector ID |
pos | Ccoordinates at entrance to active volume [cm] |
mom | Momentum of track at entrance [GeV] |
tof | Time since event start [ns] |
length | Track length since creation [cm] |
eLoss | Energy deposit [GeV] |
Definition at line 28 of file TargetPoint.cxx.
31 : FairMCPoint(trackID, detID, pos, mom, tof, length, eLoss),
fPdgCode(pdgcode)
32{ }
◆ ~TargetPoint()
TargetPoint::~TargetPoint |
( |
| ) |
|
|
virtual |
◆ TargetPoint() [3/3]
◆ operator=()
◆ PdgCode()
Int_t TargetPoint::PdgCode |
( |
| ) |
const |
|
inline |
◆ Print()
void TargetPoint::Print |
( |
const Option_t * |
opt | ) |
const |
|
virtual |
Output to screen
Definition at line 42 of file TargetPoint.cxx.
43{
44 cout << "-I- TargetPoint: ShipRpc point for track " << fTrackID
45 << " in detector " << fDetectorID << endl;
46 cout << " Position (" << fX << ", " << fY << ", " << fZ
47 << ") cm" << endl;
48 cout << " Momentum (" << fPx << ", " << fPy << ", " << fPz
49 << ") GeV" << endl;
50 cout << " Time " << fTime << " ns, Length " << fLength
51 << " cm, Energy loss " << fELoss*1.0e06 << " keV" << endl;
52}
◆ fPdgCode
Int_t TargetPoint::fPdgCode |
|
private |
The documentation for this class was generated from the following files: