BmnRoot
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 "TObject.h"
9#include "TVector3.h"
10#include "TLorentzVector.h"
11#include "FairMCPoint.h"
12#include "Rtypes.h"
13#include "TVirtualMC.h"
14#include "TParticle.h"
15
16using namespace std;
17
18class BmnArmTrigPoint : public FairMCPoint {
19public:
20
23
24
37 BmnArmTrigPoint(Int_t trackID, Int_t detID,
38 Int_t copyNo,
39 TVector3 posIn, TVector3 posOut,
40 TVector3 momIn, TVector3 momOut,
41 Double_t tof, Double_t length, Double_t eLoss,
42 Int_t isPrimary, Double_t charge, Int_t pdgId,
43 Double_t timeIn, Double_t timeOut, Double_t lengthtrack);
44 // UInt_t EventId,
45
48 *this = point;
49 };
50
51
54
56 Short_t GetCopy() const {
57 return nCopy;
58 };
59 // Short_t GetCopyMother() const {return nCopyMother; };
60
61 Int_t GetIsPrimary() {
62 return fIsPrimary;
63 }
64
65 Double_t GetCharge() {
66 return fCharge;
67 }
68
69 Double_t GetPdgId() {
70 return fPdgId;
71 }
72
73 Double_t GetTimeIn() const {
74 return fTimeIn;
75 }
76
77 Double_t GetTimeOut() const {
78 return fTimeOut;
79 }
80
81 Double_t GetLengthtrack() const {
82 return fLengthtrack;
83 }
84
85 Double_t GetPxOut() const {
86 return fPxOut;
87 }
88
89 Double_t GetPyOut() const {
90 return fPyOut;
91 }
92
93 Double_t GetPzOut() const {
94 return fPzOut;
95 }
96
97 void MomentumOut(TVector3& mom) {
98 mom.SetXYZ(fPxOut, fPyOut, fPzOut);
99 }
100
101 Double_t GetXOut() const {
102 return fXOut;
103 }
104
105 Double_t GetYOut() const {
106 return fYOut;
107 }
108
109 Double_t GetZOut() const {
110 return fZOut;
111 }
112
113 void PositionOut(TVector3& pos) {
114 pos.SetXYZ(fXOut, fYOut, fZOut);
115 }
116
117 // ---------------------------------------------------------
118
120 void SetCopy(Short_t i) {
121 nCopy = i;
122 };
123
125 virtual void Print(const Option_t* opt) const;
126
127
128protected:
129
130 Double_t fXOut, fYOut, fZOut;
131 Double_t fPxOut, fPyOut, fPzOut;
132
133 Short_t nCopy; // Copy number
134 // Short_t nCopyMother; // Copy number of mother volume
135
136
137 Int_t fIsPrimary;
138 Double_t fCharge;
139 Int_t fPdgId;
140 Double_t fTimeIn;
141 Double_t fTimeOut;
142 Double_t fLengthtrack;
143
144
145 ClassDef(BmnArmTrigPoint, 1)
146};
147
148
149#endif
int i
Definition P4_F32vec4.h:22
virtual ~BmnArmTrigPoint()
Double_t GetZOut() const
Double_t GetXOut() const
void PositionOut(TVector3 &pos)
Double_t GetCharge()
BmnArmTrigPoint(const BmnArmTrigPoint &point)
void SetCopy(Short_t i)
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)
Double_t GetPzOut() const
Double_t GetPyOut() const
Short_t GetCopy() const
Double_t GetYOut() const
Double_t GetLengthtrack() const
Double_t GetPdgId()
virtual void Print(const Option_t *opt) const
void MomentumOut(TVector3 &mom)
STL namespace.