BmnRoot
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 "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 BmnSiMDPoint : public FairMCPoint
19{
20
21 public:
22
25
26
39 BmnSiMDPoint(Int_t trackID, Int_t detID,
40 Int_t copyNo,
41 TVector3 posIn, TVector3 posOut,
42 TVector3 momIn, TVector3 momOut,
43 Double_t tof, Double_t length, Double_t eLoss,
44 Int_t isPrimary, Double_t charge, Int_t pdgId,
45 Double_t timeIn, Double_t timeOut, Double_t lengthtrack);
46 // UInt_t EventId,
48 BmnSiMDPoint(const BmnSiMDPoint& point) { *this = point; };
49
50
52 virtual ~BmnSiMDPoint();
53
54
56 Short_t GetCopy() const {return nCopy; };
57 // Short_t GetCopyMother() const {return nCopyMother; };
58
59 Int_t GetIsPrimary() { return fIsPrimary; }
60 Double_t GetCharge() { return fCharge; }
61 Double_t GetPdgId() { return fPdgId; }
62 Double_t GetTimeIn() const { return fTimeIn; }
63 Double_t GetTimeOut() const { return fTimeOut; }
64 Double_t GetLengthtrack() const { return fLengthtrack; }
65
66
67 Double_t GetPxOut() const { return fPxOut; }
68 Double_t GetPyOut() const { return fPyOut; }
69 Double_t GetPzOut() const { return fPzOut; }
70
71 void MomentumOut(TVector3& mom) { mom.SetXYZ(fPxOut,fPyOut,fPzOut);}
72
73 Double_t GetXOut() const { return fXOut; }
74 Double_t GetYOut() const { return fYOut; }
75 Double_t GetZOut() const { return fZOut; }
76
77 void PositionOut(TVector3& pos) { pos.SetXYZ(fXOut,fYOut,fZOut);}
78
79 // ---------------------------------------------------------
80
81 //void GetPolarisation(TVector3 &v) const;
82
83
84 /*
85 Double_t GetX() const { return fX1; };
86 Double_t GetY() const { return fY1; };
87 Double_t GetZ() const { return fZ1; };
88
89 void Position(TVector3& posprim) const { posprim.SetXYZ(fX1, fY1, fZ1); }
90*/
91
93 void SetCopy(Short_t i) { nCopy = i; };
94 // void SetCopyMother(Short_t i) { nCopyMother = i; };
95
96
97
98 //void SetProductionVertex(Double_t vx, Double_t vy, Double_t vz) {fVx=vx; fVy=vy; fVz=vz;}
99
101 virtual void Print(const Option_t* opt) const;
102
103
104 protected:
105
106 Double_t fXOut, fYOut, fZOut;
107 Double_t fPxOut, fPyOut, fPzOut;
108
109 Short_t nCopy; // Copy number
110 // Short_t nCopyMother; // Copy number of mother volume
111
112
113 Int_t fIsPrimary;
114 Double_t fCharge;
115 Int_t fPdgId;
116 Double_t fTimeIn;
117 Double_t fTimeOut;
118 Double_t fLengthtrack;
119
120
121 ClassDef(BmnSiMDPoint,5)
122//4
123};
124
125
126#endif
int i
Definition P4_F32vec4.h:22
Double_t GetYOut() const
Double_t fYOut
Double_t GetLengthtrack() const
Double_t GetCharge()
Short_t GetCopy() const
Double_t fZOut
BmnSiMDPoint(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 GetPdgId()
void PositionOut(TVector3 &pos)
Double_t GetZOut() const
Double_t fPxOut
Double_t GetPyOut() const
Double_t fPyOut
Double_t GetTimeIn() const
void SetCopy(Short_t i)
Double_t GetTimeOut() const
Double_t fLengthtrack
Double_t fXOut
Double_t GetPxOut() const
virtual void Print(const Option_t *opt) const
Double_t fTimeOut
virtual ~BmnSiMDPoint()
void MomentumOut(TVector3 &mom)
Double_t GetPzOut() const
Double_t fCharge
Double_t GetXOut() const
Int_t GetIsPrimary()
BmnSiMDPoint(const BmnSiMDPoint &point)
Double_t fPzOut
Double_t fTimeIn
STL namespace.