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