BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnFDPoint.cxx
Go to the documentation of this file.
1#include "BmnFDPoint.h"
2
3#include "FairLogger.h"
4#include "FairMCPoint.h"
5#include "TParticle.h"
6#include "TVector3.h"
7#include "TVirtualMC.h"
8
9#include <iostream>
10
11// ----- Default constructor -------------------------------------------
13 : FairMCPoint()
14 , fXOut(0.0)
15 , fYOut(0.0)
16 , fZOut(0.0)
17 , fPxOut(0.0)
18 , fPyOut(0.0)
19 , fPzOut(0.0)
20 , fIsPrimary(0)
21 , fCharge(-1.0)
22 , fPdgId(0)
23
24{
25 nCopy = -1;
26}
27// -------------------------------------------------------------------------
28
29// ----- Standard constructor ------------------------------------------
31 Int_t detID,
32 Int_t copyNo,
33 TVector3 posIn,
34 TVector3 posOut,
35 TVector3 momIn,
36 TVector3 momOut,
37 Double_t tof,
38 Double_t length,
39 Double_t eLoss,
40 Int_t isPrimary,
41 Double_t charge,
42 Int_t pdgId,
43 Double_t lightYield,
44 Double_t timeIn,
45 Double_t timeOut,
46 Double_t lengthtrack)
47 // UInt_t EventId,
48 : FairMCPoint(trackID, detID, posIn, momIn, tof, length, eLoss)
49 ,
50 // EventId
51
52 fXOut(posOut.X())
53 , fYOut(posOut.Y())
54 , fZOut(posOut.Z())
55 , fPxOut(momOut.Px())
56 , fPyOut(momOut.Py())
57 , fPzOut(momOut.Pz())
58 , fIsPrimary(isPrimary)
59 , fCharge(charge)
60 , fPdgId(pdgId)
61
62{
63
64 nCopy = copyNo;
65
66 fLightYield = lightYield;
67 fTimeIn = timeIn;
68 fTimeOut = timeOut;
69 fLengthtrack = lengthtrack;
70}
71// ----- Destructor ----------------------------------------------------
73// -------------------------------------------------------------------------
74
75// ----- Public method Print -------------------------------------------
76void BmnFDPoint::Print(const Option_t* opt) const
77{
78 cout << "-I- BmnFDPoint: MUO Point for track " << fTrackID << " in detector " << fDetectorID << endl;
79 cout << " Position (" << fX << ", " << fY << ", " << fZ << ") cm" << endl;
80 cout << " Momentum (" << fPx << ", " << fPy << ", " << fPz << ") GeV" << endl;
81 cout << " Time " << fTime << " ns, Length " << fLength << " cm, Energy loss " << fELoss * 1.0e06 << " keV"
82 << endl;
83}
84// -------------------------------------------------------------------------
int Int_t
double Double_t
const char Option_t
Double_t fPxOut
Definition BmnFDPoint.h:85
Double_t fLengthtrack
Definition BmnFDPoint.h:96
Double_t fXOut
Definition BmnFDPoint.h:84
virtual ~BmnFDPoint()
Destructor.
Double_t fTimeIn
Definition BmnFDPoint.h:94
Double_t fPyOut
Definition BmnFDPoint.h:85
Double_t fZOut
Definition BmnFDPoint.h:84
Int_t fIsPrimary
Definition BmnFDPoint.h:90
Double_t fCharge
Definition BmnFDPoint.h:91
Double_t fPzOut
Definition BmnFDPoint.h:85
BmnFDPoint()
Default constructor.
Short_t nCopy
Definition BmnFDPoint.h:87
Double_t fYOut
Definition BmnFDPoint.h:84
Float_t fLightYield
Definition BmnFDPoint.h:93
Int_t fPdgId
Definition BmnFDPoint.h:92
virtual void Print(const Option_t *opt) const
Output to screen.
Double_t fTimeOut
Definition BmnFDPoint.h:95