BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnSiMDPoint.h
Go to the documentation of this file.
1// ------------------------------------------------------------------------
2// ----- BmnFdPoint header file -----
3// ------------------------------------------------------------------------
4
5#ifndef BMNSiMDPOINT_H
6#define BMNSiMDPOINT_H
7
8#include "FairMCPoint.h"
9#include "Rtypes.h"
10#include "TLorentzVector.h"
11#include "TObject.h"
12#include "TParticle.h"
13#include "TVector3.h"
14#include "TVirtualMC.h"
15
16using namespace std;
17
19{
20
21 public:
22 /** Default constructor **/
24
25 /** Constructor with arguments
26 *@param trackID Index of MCTrack
27 *@param detID Detector ID (at present, volume MC number)
28 *@param copyNo Number of active layer inside SiMD module
29 *@param posIn Coordinates at entrance to active volume [cm]
30 *@param posOut Coordinates at exit of active volume [cm]
31 *@param momIn Momentum of track at entrance [GeV]
32 *@param momOut Momentum of track at exit [GeV]
33 *@param tof Time since event start [ns]
34 *@param length Track length since creation [cm]
35 *@param eLoss Energy deposit [GeV]
36 **/
37
38 BmnSiMDPoint(Int_t trackID,
39 Int_t detID,
40 Int_t copyNo,
41 TVector3 posIn,
42 TVector3 posOut,
43 TVector3 momIn,
44 TVector3 momOut,
45 Double_t tof,
46 Double_t length,
47 Double_t eLoss,
48 Int_t isPrimary,
49 Double_t charge,
50 Int_t pdgId,
51 Double_t timeIn,
52 Double_t timeOut,
53 Double_t lengthtrack);
54 // UInt_t EventId,
55 /** Copy constructor **/
56 BmnSiMDPoint(const BmnSiMDPoint& point) { *this = point; };
57
58 /** Destructor **/
59 virtual ~BmnSiMDPoint();
60
61 /** Accessors **/
62 Short_t GetCopy() const { return nCopy; };
63 // Short_t GetCopyMother() const {return nCopyMother; };
64
67 Double_t GetPdgId() { return fPdgId; }
68 Double_t GetTimeIn() const { return fTimeIn; }
69 Double_t GetTimeOut() const { return fTimeOut; }
71
72 Double_t GetPxOut() const { return fPxOut; }
73 Double_t GetPyOut() const { return fPyOut; }
74 Double_t GetPzOut() const { return fPzOut; }
75
77
78 Double_t GetXOut() const { return fXOut; }
79 Double_t GetYOut() const { return fYOut; }
80 Double_t GetZOut() const { return fZOut; }
81
82 void PositionOut(TVector3& pos) { pos.SetXYZ(fXOut, fYOut, fZOut); }
83
84 // ---------------------------------------------------------
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
118
120 // 4
121};
122
123#endif
int i
Definition P4_F32vec4.h:22
int Int_t
short Short_t
double Double_t
const char Option_t
#define ClassDef(name, id)
Double_t GetYOut() const
Double_t fYOut
Double_t GetLengthtrack() const
Double_t GetCharge()
Short_t GetCopy() const
Accessors.
Double_t fZOut
Double_t GetPdgId()
void PositionOut(TVector3 &pos)
virtual ~BmnSiMDPoint()
Destructor.
Double_t GetZOut() const
Double_t fPxOut
Double_t GetPyOut() const
Double_t fPyOut
Double_t GetTimeIn() const
void SetCopy(Short_t i)
Modifiers.
Double_t GetTimeOut() const
Double_t fLengthtrack
Double_t fXOut
Double_t GetPxOut() const
BmnSiMDPoint()
Default constructor.
Double_t fTimeOut
virtual void Print(const Option_t *opt) const
Output to screen.
void MomentumOut(TVector3 &mom)
Double_t GetPzOut() const
Double_t fCharge
Double_t GetXOut() const
Int_t GetIsPrimary()
BmnSiMDPoint(const BmnSiMDPoint &point)
Copy constructor.
Double_t fPzOut
Double_t fTimeIn
void SetXYZ(Double_t x, Double_t y, Double_t z)
Definition json.hpp:4446