BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnBdPoint.h
Go to the documentation of this file.
1
2
3#ifndef BMNBDPOINT_H
4#define BMNBDPOINT_H
5
6#include "FairMCPoint.h"
7#include "Rtypes.h"
8#include "TLorentzVector.h"
9#include "TObject.h"
10#include "TParticle.h"
11#include "TVector3.h"
12#include "TVirtualMC.h"
13
14using namespace std;
15
16class BmnBdPoint : public FairMCPoint
17{
18
19 public:
20 /** Default constructor **/
22
23 /** Constructor with arguments
24 *@param trackID Index of MCTrack
25 *@param detID Detector ID (at present, volume MC number)
26 *@param copyNo Number of active layer inside BD module
27 *@param posIn Coordinates at entrance to active volume [cm]
28 *@param posOut Coordinates at exit of active volume [cm]
29 *@param momIn Momentum of track at entrance [GeV]
30 *@param momOut Momentum of track at exit [GeV]
31 *@param tof Time since event start [ns]
32 *@param length Track length since creation [cm]
33 *@param eLoss Energy deposit [GeV]
34 **/
35
37 Int_t detID,
38 Int_t copyNo,
39 TVector3 posIn,
40 TVector3 posOut,
41 TVector3 momIn,
42 TVector3 momOut,
43 Double_t tof,
44 Double_t length,
45 Double_t eLoss,
46 Int_t isPrimary,
47 Double_t charge,
48 Int_t pdgId,
49 Double_t lightYield,
50 Double_t timeIn,
51 Double_t timeOut,
52 Double_t lengthtrack);
53 // UInt_t EventId,
54 /** Copy constructor **/
55 BmnBdPoint(const BmnBdPoint& point) { *this = point; };
56
57 /** Destructor **/
58 virtual ~BmnBdPoint();
59
60 /** Accessors **/
61 Short_t GetCopy() const { return nCopy; };
62 // Short_t GetCopyMother() const {return nCopyMother; };
63
66 Double_t GetPdgId() { return fPdgId; }
67 Double_t GetTimeIn() const { return fTimeIn; }
68 Double_t GetTimeOut() const { return fTimeOut; }
70
71 Double_t GetPxOut() const { return fPxOut; }
72 Double_t GetPyOut() const { return fPyOut; }
73 Double_t GetPzOut() const { return fPzOut; }
74
76
77 Double_t GetXOut() const { return fXOut; }
78 Double_t GetYOut() const { return fYOut; }
79 Double_t GetZOut() const { return fZOut; }
80
81 void PositionOut(TVector3& pos) { pos.SetXYZ(fXOut, fYOut, fZOut); }
82
83 // ---------------------------------------------------------
84 Float_t GetLightYield() const { return fLightYield; }
85
86 // void GetPolarisation(TVector3 &v) const;
87
88 /*
89 Double_t GetX() const { return fX1; };
90 Double_t GetY() const { return fY1; };
91 Double_t GetZ() const { return fZ1; };
92
93 void Position(TVector3& posprim) const { posprim.SetXYZ(fX1, fY1, fZ1); }
94*/
95
96 /** Modifiers **/
97 void SetCopy(Short_t i) { nCopy = i; };
98 // void SetCopyMother(Short_t i) { nCopyMother = i; };
99
100 // void SetProductionVertex(Double_t vx, Double_t vy, Double_t vz) {fVx=vx; fVy=vy; fVz=vz;}
101
102 /** Output to screen **/
103 virtual void Print(const Option_t* opt) const;
104
105 protected:
108
109 Short_t nCopy; // Copy number
110 // Short_t nCopyMother; // Copy number of mother volume
111
119
121 // 4
122};
123
124#endif
int i
Definition P4_F32vec4.h:22
int Int_t
float Float_t
short Short_t
double Double_t
const char Option_t
#define ClassDef(name, id)
Double_t fTimeOut
Definition BmnBdPoint.h:117
Double_t GetZOut() const
Definition BmnBdPoint.h:79
Int_t GetIsPrimary()
Definition BmnBdPoint.h:64
Double_t GetTimeIn() const
Definition BmnBdPoint.h:67
Double_t GetPyOut() const
Definition BmnBdPoint.h:72
Double_t GetPxOut() const
Definition BmnBdPoint.h:71
void PositionOut(TVector3 &pos)
Definition BmnBdPoint.h:81
Double_t GetPzOut() const
Definition BmnBdPoint.h:73
Double_t fXOut
Definition BmnBdPoint.h:106
Double_t GetLengthtrack() const
Definition BmnBdPoint.h:69
Double_t GetPdgId()
Definition BmnBdPoint.h:66
Int_t fPdgId
Definition BmnBdPoint.h:114
Int_t fIsPrimary
Definition BmnBdPoint.h:112
BmnBdPoint()
Default constructor.
Double_t fYOut
Definition BmnBdPoint.h:106
virtual ~BmnBdPoint()
Destructor.
BmnBdPoint(const BmnBdPoint &point)
Copy constructor.
Definition BmnBdPoint.h:55
virtual void Print(const Option_t *opt) const
Output to screen.
void MomentumOut(TVector3 &mom)
Definition BmnBdPoint.h:75
Double_t fZOut
Definition BmnBdPoint.h:106
Double_t fTimeIn
Definition BmnBdPoint.h:116
void SetCopy(Short_t i)
Modifiers.
Definition BmnBdPoint.h:97
Float_t GetLightYield() const
Definition BmnBdPoint.h:84
Double_t GetTimeOut() const
Definition BmnBdPoint.h:68
Double_t fLengthtrack
Definition BmnBdPoint.h:118
BmnBdPoint(Int_t trackID, Int_t detID, Int_t copyNo, TVector3 posIn, TVector3 posOut, TVector3 momIn, TVector3 momOut, Double_t tof, Double_t length, Double_t eLoss, Int_t isPrimary, Double_t charge, Int_t pdgId, Double_t lightYield, Double_t timeIn, Double_t timeOut, Double_t lengthtrack)
Constructor with arguments.
Double_t fCharge
Definition BmnBdPoint.h:113
Double_t fPzOut
Definition BmnBdPoint.h:107
Float_t fLightYield
Definition BmnBdPoint.h:115
Short_t nCopy
Definition BmnBdPoint.h:109
Short_t GetCopy() const
Accessors.
Definition BmnBdPoint.h:61
Double_t GetXOut() const
Definition BmnBdPoint.h:77
Double_t fPyOut
Definition BmnBdPoint.h:107
Double_t fPxOut
Definition BmnBdPoint.h:107
Double_t GetYOut() const
Definition BmnBdPoint.h:78
Double_t GetCharge()
Definition BmnBdPoint.h:65
void SetXYZ(Double_t x, Double_t y, Double_t z)
Definition json.hpp:4446