BmnRoot
Loading...
Searching...
No Matches
BmnSiBTPoint.h
Go to the documentation of this file.
1#ifndef BMNSiBTPOINT_H
2#define BMNSiBTPOINT_H
3
4#include "FairMCPoint.h"
5
6class BmnSiBTPoint : public FairMCPoint
7{
8 public:
21 BmnSiBTPoint(Int_t trackID,
22 Int_t detID,
23 TVector3 posIn,
24 TVector3 posOut,
25 TVector3 momIn,
26 TVector3 momOut,
27 Double_t tof,
28 Double_t length,
29 Double_t eLoss,
30 Int_t isPrimary,
31 Double_t charge,
32 Int_t pdgId);
33
34 BmnSiBTPoint(const BmnSiBTPoint& point) { *this = point; };
35 virtual ~BmnSiBTPoint();
36
38 Double_t GetXIn() const { return fX; }
39 Double_t GetYIn() const { return fY; }
40 Double_t GetZIn() const { return fZ; }
41 Double_t GetXOut() const { return fX_out; }
42 Double_t GetYOut() const { return fY_out; }
43 Double_t GetZOut() const { return fZ_out; }
44 Double_t GetXCenter() const { return fX_center; }
45 Double_t GetYCenter() const { return fY_center; }
46 Double_t GetZCenter() const { return fZ_center; }
47 Double_t GetPxOut() const { return fPx_out; }
48 Double_t GetPyOut() const { return fPy_out; }
49 Double_t GetPzOut() const { return fPz_out; }
50 void PositionIn(TVector3& pos) { pos.SetXYZ(fX, fY, fZ); }
51 void PositionOut(TVector3& pos) { pos.SetXYZ(fX_out, fY_out, fZ_out); }
52 void PositionCenter(TVector3& pos) { pos.SetXYZ(fX_center, fY_center, fZ_center); }
53 void MomentumIn(TVector3& mom) { mom.SetXYZ(fPx, fPy, fPz); }
54 void MomentumOut(TVector3& mom) { mom.SetXYZ(fPx_out, fPy_out, fPz_out); }
55 Int_t GetStation() const { return fStation; }
56 Int_t GetModule() const { return fModule; }
57
58 Int_t GetIsPrimary() { return fIsPrimary; }
59 Double_t GetCharge() { return fCharge; }
60 Double_t GetPdgId() { return fPdgId; }
61
62 void SetStation(Int_t station) { fStation = station; }
63 void SetModule(Int_t module) { fModule = module; }
64
65 // Output to screen
66 virtual void Print(const Option_t* opt) const;
67
68 protected:
70 Double_t fCharge;
71 Int_t fPdgId;
72
73 Double_t fX_out, fY_out, fZ_out;
74 Double_t fX_center, fY_center, fZ_center; // middle pos. (hit position)
76
77 Int_t fStation;
78 Int_t fModule;
79
80 ClassDef(BmnSiBTPoint, 1)
81};
82
83#endif /* BMNSiBTPOINT_H */
void PositionOut(TVector3 &pos)
Double_t GetPzOut() const
Double_t fCharge
Int_t GetModule() const
Double_t GetZIn() const
void SetModule(Int_t module)
Double_t GetPyOut() const
void PositionCenter(TVector3 &pos)
Double_t GetYCenter() const
void PositionIn(TVector3 &pos)
Double_t fX_center
void MomentumOut(TVector3 &mom)
Double_t fPx_out
void SetStation(Int_t station)
virtual ~BmnSiBTPoint()
Double_t fZ_center
void MomentumIn(TVector3 &mom)
Double_t GetZCenter() const
BmnSiBTPoint(const BmnSiBTPoint &point)
Int_t GetIsPrimary()
Double_t GetCharge()
Double_t fZ_out
virtual void Print(const Option_t *opt) const
Double_t GetXOut() const
Double_t GetYIn() const
Double_t fY_center
Double_t GetPdgId()
Double_t fX_out
Double_t fY_out
Double_t GetPxOut() const
Double_t GetYOut() const
Double_t GetXCenter() const
Double_t fPy_out
Int_t GetStation() const
Double_t fPz_out
Double_t GetZOut() const
Double_t GetXIn() const