BmnRoot
Loading...
Searching...
No Matches
BmnBCPoint.h
Go to the documentation of this file.
1// ------------------------------------------------------------------------
2// ----- BmnBdPoint header file -----
3// ----- litvin@nf.jinr.ru -----
4// ----- Last updated 10-02-2016 -----
5// ------------------------------------------------------------------------
6
7#ifndef BMNBCPOINT_H
8#define BMNBCPOINT_H
9
10#include "TObject.h"
11#include "TVector3.h"
12#include "TLorentzVector.h"
13#include "FairMCPoint.h"
14#include "Rtypes.h"
15#include "TVirtualMC.h"
16#include "TParticle.h"
17
18using namespace std;
19
20class BmnBCPoint : public FairMCPoint
21{
22
23 public:
24
26 BmnBCPoint();
27
28
41 BmnBCPoint(Int_t trackID, Int_t detID,
42 Int_t copyNo,
43 TVector3 posIn, TVector3 posOut,
44 TVector3 momIn, TVector3 momOut,
45 Double_t tof, Double_t length, Double_t eLoss, Int_t fStat,
46 Int_t isPrimary, Double_t charge, Int_t pdgId, Double_t lightYield,
47 Double_t timeIn, Double_t timeOut, Double_t lengthtrack);
48 // UInt_t EventId,
50 BmnBCPoint(const BmnBCPoint& point) { *this = point; };
51
52
54 virtual ~BmnBCPoint();
55
56
58 Short_t GetCopy() const {return nCopy; };
59 // Short_t GetCopyMother() const {return nCopyMother; };
60
61 Int_t GetIsPrimary() { return fIsPrimary; }
62 Double_t GetCharge() { return fCharge; }
63 Double_t GetPdgId() { return fPdgId; }
64 Double_t GetTimeIn() const { return fTimeIn; }
65 Double_t GetTimeOut() const { return fTimeOut; }
66 Double_t GetLengthtrack() const { return fLengthtrack; }
67 Double_t GetStation() const { return fStation; }
68
69
70 Double_t GetPxOut() const { return fPxOut; }
71 Double_t GetPyOut() const { return fPyOut; }
72 Double_t GetPzOut() const { return fPzOut; }
73
74 void MomentumOut(TVector3& mom) { mom.SetXYZ(fPxOut,fPyOut,fPzOut);}
75
76 Double_t GetXOut() const { return fXOut; }
77 Double_t GetYOut() const { return fYOut; }
78 Double_t GetZOut() const { return fZOut; }
79
80 void PositionOut(TVector3& pos) { pos.SetXYZ(fXOut,fYOut,fZOut);}
81
82
83 // ---------------------------------------------------------
84 Float_t GetLightYield() const {return fLightYield;}
85
86 //void GetPolarisation(TVector3 &v) const;
87
88
89 /*
90 Double_t GetX() const { return fX1; };
91 Double_t GetY() const { return fY1; };
92 Double_t GetZ() const { return fZ1; };
93
94 void Position(TVector3& posprim) const { posprim.SetXYZ(fX1, fY1, fZ1); }
95*/
96
98 void SetCopy(Short_t i) { nCopy = i; };
99 // void SetCopyMother(Short_t i) { nCopyMother = i; };
100
101
102
103 //void SetProductionVertex(Double_t vx, Double_t vy, Double_t vz) {fVx=vx; fVy=vy; fVz=vz;}
104
106 virtual void Print(const Option_t* opt) const;
107
108
109 protected:
110
111 Double_t fXOut, fYOut, fZOut;
112 Double_t fPxOut, fPyOut, fPzOut;
113
114 Short_t nCopy; // Copy number
115 // Short_t nCopyMother; // Copy number of mother volume
116
117
119 Int_t fStation;
120 Double_t fCharge;
121 Int_t fPdgId;
122 Float_t fLightYield;
123 Double_t fTimeIn;
124 Double_t fTimeOut;
125 Double_t fLengthtrack;
126
127
128 ClassDef(BmnBCPoint,5)
129};
130
131
132#endif
int i
Definition P4_F32vec4.h:22
Double_t fTimeIn
Definition BmnBCPoint.h:123
Double_t GetTimeOut() const
Definition BmnBCPoint.h:65
Short_t nCopy
Definition BmnBCPoint.h:114
Double_t GetPxOut() const
Definition BmnBCPoint.h:70
Double_t fCharge
Definition BmnBCPoint.h:120
Double_t GetPzOut() const
Definition BmnBCPoint.h:72
Short_t GetCopy() const
Definition BmnBCPoint.h:58
Double_t GetPyOut() const
Definition BmnBCPoint.h:71
virtual ~BmnBCPoint()
Double_t GetStation() const
Definition BmnBCPoint.h:67
Double_t fTimeOut
Definition BmnBCPoint.h:124
Double_t fZOut
Definition BmnBCPoint.h:111
Int_t GetIsPrimary()
Definition BmnBCPoint.h:61
Double_t fPzOut
Definition BmnBCPoint.h:112
Double_t fLengthtrack
Definition BmnBCPoint.h:125
Int_t fIsPrimary
Definition BmnBCPoint.h:118
Double_t GetYOut() const
Definition BmnBCPoint.h:77
Double_t GetCharge()
Definition BmnBCPoint.h:62
BmnBCPoint(const BmnBCPoint &point)
Definition BmnBCPoint.h:50
void PositionOut(TVector3 &pos)
Definition BmnBCPoint.h:80
Int_t fStation
Definition BmnBCPoint.h:119
Int_t fPdgId
Definition BmnBCPoint.h:121
virtual void Print(const Option_t *opt) const
Float_t fLightYield
Definition BmnBCPoint.h:122
Double_t fYOut
Definition BmnBCPoint.h:111
Double_t fXOut
Definition BmnBCPoint.h:111
void SetCopy(Short_t i)
Definition BmnBCPoint.h:98
Double_t fPyOut
Definition BmnBCPoint.h:112
Double_t GetTimeIn() const
Definition BmnBCPoint.h:64
Double_t fPxOut
Definition BmnBCPoint.h:112
void MomentumOut(TVector3 &mom)
Definition BmnBCPoint.h:74
Double_t GetXOut() const
Definition BmnBCPoint.h:76
Double_t GetLengthtrack() const
Definition BmnBCPoint.h:66
Double_t GetZOut() const
Definition BmnBCPoint.h:78
Double_t GetPdgId()
Definition BmnBCPoint.h:63
Float_t GetLightYield() const
Definition BmnBCPoint.h:84
STL namespace.