BmnRoot
Loading...
Searching...
No Matches
CbmStsPoint.h
Go to the documentation of this file.
1// -------------------------------------------------------------------------
2// ----- CbmStsPoint header file -----
3// ----- Created 26/07/04 by V. Friese -----
4// -------------------------------------------------------------------------
5
6
16#ifndef CBMSTSPOINT_H
17#define CBMSTSPOINT_H
18
19
20#include "FairMCPoint.h"
21#include "FairLogger.h"
22
23class TVector3;
24
25class CbmStsPoint : public FairMCPoint
26{
27
28 public:
29
32
33
46 CbmStsPoint(Int_t trackID, Int_t detID, TVector3 posIn,
47 TVector3 posOut, TVector3 momIn, TVector3 momOut,
48 Double_t tof, Double_t length, Double_t eLoss,
49 Int_t eventId = 0);
50
51
59 Int_t eventId = -1,
60 Double_t eventTime = 0.,
61 Double_t epochTime = 0.);
62
63
65 virtual ~CbmStsPoint();
66
67
69 Double_t GetXIn() const { return fX; }
70 Double_t GetYIn() const { return fY; }
71 Double_t GetZIn() const { return fZ; }
72 Double_t GetXOut() const { return fX_out; }
73 Double_t GetYOut() const { return fY_out; }
74 Double_t GetZOut() const { return fZ_out; }
75 Double_t GetPxOut() const { return fPx_out; }
76 Double_t GetPyOut() const { return fPy_out; }
77 Double_t GetPzOut() const { return fPz_out; }
78 void PositionIn(TVector3& pos) { pos.SetXYZ(fX, fY, fZ); }
79 void PositionOut(TVector3& pos) { pos.SetXYZ(fX_out,fY_out,fZ_out); }
80 void MomentumOut(TVector3& mom) { mom.SetXYZ(fPx_out,fPy_out,fPz_out); }
81 Int_t GetStation() const { return fStation; }
82 Int_t GetModule() const { return fModule; }
83
84
86 Double_t GetX(Double_t z) const;
87 Double_t GetY(Double_t z) const;
88
89
91 Bool_t IsUsable() const;
92
93
95 void SetPositionOut(TVector3 pos);
96 void SetMomentumOut(TVector3 mom);
97 virtual void SetTrackID(Int_t id){
98 //SetLink(kMCTrack, id);
99 FairMCPoint::SetTrackID(id);
100 };
101 void SetStation(Int_t station) { fStation = station; }
102 void SetModule(Int_t module) { fModule = module; }
103
105 virtual void Print(const Option_t* opt = "") const { }
106 void Info() const;
107
108
109
110 protected:
111
112 Double32_t fX_out, fY_out, fZ_out;
113 Double32_t fPx_out, fPy_out, fPz_out;
114 Int_t fStation;
115 Int_t fModule;
116
117
118
119 ClassDef(CbmStsPoint,1)
120
121};
122
123
124
125inline void CbmStsPoint::SetPositionOut(TVector3 pos) {
126 fX_out = pos.X();
127 fY_out = pos.Y();
128 fZ_out = pos.Z();
129}
130
131
132inline void CbmStsPoint::SetMomentumOut(TVector3 mom) {
133 fPx_out = mom.Px();
134 fPy_out = mom.Py();
135 fPz_out = mom.Pz();
136}
137
138
139
140#endif
Double32_t fPy_out
void SetPositionOut(TVector3 pos)
Double_t GetPzOut() const
Definition CbmStsPoint.h:77
void PositionOut(TVector3 &pos)
Definition CbmStsPoint.h:79
void SetStation(Int_t station)
Double32_t fPz_out
Bool_t IsUsable() const
Double_t GetY(Double_t z) const
Double_t GetX(Double_t z) const
Int_t GetModule() const
Definition CbmStsPoint.h:82
Double32_t fX_out
Double_t GetXIn() const
Definition CbmStsPoint.h:69
Double_t GetPxOut() const
Definition CbmStsPoint.h:75
virtual void Print(const Option_t *opt="") const
Int_t GetStation() const
Definition CbmStsPoint.h:81
CbmStsPoint(const CbmStsPoint &point, Int_t eventId=-1, Double_t eventTime=0., Double_t epochTime=0.)
void SetModule(Int_t module)
void MomentumOut(TVector3 &mom)
Definition CbmStsPoint.h:80
void PositionIn(TVector3 &pos)
Definition CbmStsPoint.h:78
Double32_t fZ_out
Double_t GetPyOut() const
Definition CbmStsPoint.h:76
Double_t GetZOut() const
Definition CbmStsPoint.h:74
virtual ~CbmStsPoint()
Double32_t fY_out
Double32_t fPx_out
Double_t GetYOut() const
Definition CbmStsPoint.h:73
virtual void SetTrackID(Int_t id)
Definition CbmStsPoint.h:97
CbmStsPoint(Int_t trackID, Int_t detID, TVector3 posIn, TVector3 posOut, TVector3 momIn, TVector3 momOut, Double_t tof, Double_t length, Double_t eLoss, Int_t eventId=0)
void SetMomentumOut(TVector3 mom)
Double_t GetZIn() const
Definition CbmStsPoint.h:71
Double_t GetYIn() const
Definition CbmStsPoint.h:70
Double_t GetXOut() const
Definition CbmStsPoint.h:72
void Info() const