BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnArmTrigPoint.h
Go to the documentation of this file.
1// ------------------------------------------------------------------------
2// ----- BmnArmTrigPoint header file -----
3// ------------------------------------------------------------------------
4
5#ifndef BMNARMTRIGPOINT_H
6#define BMNARMTRIGPOINT_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
18class BmnArmTrigPoint : public FairMCPoint
19{
20 public:
21 /** Default constructor **/
23
24 /** Constructor with arguments
25 *@param trackID Index of MCTrack
26 *@param detID Detector ID (at present, volume MC number)
27 *@param copyNo Number of active layer inside ArmTrig module
28 *@param posIn Coordinates at entrance to active volume [cm]
29 *@param posOut Coordinates at exit of active volume [cm]
30 *@param momIn Momentum of track at entrance [GeV]
31 *@param momOut Momentum of track at exit [GeV]
32 *@param tof Time since event start [ns]
33 *@param length Track length since creation [cm]
34 *@param eLoss Energy deposit [GeV]
35 **/
36
38 Int_t detID,
39 Int_t copyNo,
40 TVector3 posIn,
41 TVector3 posOut,
42 TVector3 momIn,
43 TVector3 momOut,
44 Double_t tof,
45 Double_t length,
46 Double_t eLoss,
47 Int_t isPrimary,
48 Double_t charge,
49 Int_t pdgId,
50 Double_t timeIn,
51 Double_t timeOut,
52 Double_t lengthtrack);
53 // UInt_t EventId,
54
55 /** Copy constructor **/
56 BmnArmTrigPoint(const BmnArmTrigPoint& point) { *this = point; };
57
58 /** Destructor **/
60
61 /** Accessors **/
62 Short_t GetCopy() const { return nCopy; };
63 // Short_t GetCopyMother() const {return nCopyMother; };
64
66
68
69 Double_t GetPdgId() { return fPdgId; }
70
71 Double_t GetTimeIn() const { return fTimeIn; }
72
73 Double_t GetTimeOut() const { return fTimeOut; }
74
76
77 Double_t GetPxOut() const { return fPxOut; }
78
79 Double_t GetPyOut() const { return fPyOut; }
80
81 Double_t GetPzOut() const { return fPzOut; }
82
84
85 Double_t GetXOut() const { return fXOut; }
86
87 Double_t GetYOut() const { return fYOut; }
88
89 Double_t GetZOut() const { return fZOut; }
90
91 void PositionOut(TVector3& pos) { pos.SetXYZ(fXOut, fYOut, fZOut); }
92
93 // ---------------------------------------------------------
94
95 /** Modifiers **/
96 void SetCopy(Short_t i) { nCopy = i; };
97
98 /** Output to screen **/
99 virtual void Print(const Option_t* opt) const;
100
101 protected:
104
105 Short_t nCopy; // Copy number
106 // Short_t nCopyMother; // Copy number of mother volume
107
114
116};
117
118#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)
virtual ~BmnArmTrigPoint()
Destructor.
Double_t GetZOut() const
Double_t GetXOut() const
void PositionOut(TVector3 &pos)
Double_t GetCharge()
BmnArmTrigPoint(const BmnArmTrigPoint &point)
Copy constructor.
void SetCopy(Short_t i)
Modifiers.
Double_t GetTimeOut() const
Double_t GetTimeIn() const
Double_t GetPxOut() const
BmnArmTrigPoint(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 timeIn, Double_t timeOut, Double_t lengthtrack)
Constructor with arguments.
BmnArmTrigPoint()
Default constructor.
Double_t GetPzOut() const
Double_t GetPyOut() const
Short_t GetCopy() const
Accessors.
Double_t GetYOut() const
Double_t GetLengthtrack() const
Double_t GetPdgId()
virtual void Print(const Option_t *opt) const
Output to screen.
void MomentumOut(TVector3 &mom)
void SetXYZ(Double_t x, Double_t y, Double_t z)
Definition json.hpp:4446