BmnRoot
Loading...
Searching...
No Matches
BmnSiliconPoint.h
Go to the documentation of this file.
1#ifndef BMNSILICONPOINT_H
2#define BMNSILICONPOINT_H
3
4#include "FairMCPoint.h"
5
6class BmnSiliconPoint : public FairMCPoint {
7
8public:
9
21 BmnSiliconPoint(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 BmnSiliconPoint(const BmnSiliconPoint& point) { *this = point; };
28
30
31 virtual ~BmnSiliconPoint();
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 GetPxOut() const { return fPx_out; }
41 Double_t GetPyOut() const { return fPy_out; }
42 Double_t GetPzOut() const { return fPz_out; }
43 void PositionIn(TVector3& pos) { pos.SetXYZ(fX, fY, fZ); }
44 void PositionOut(TVector3& pos) { pos.SetXYZ(fX_out,fY_out,fZ_out); }
45 void MomentumIn(TVector3& mom) { mom.SetXYZ(fPx,fPy,fPz); }
46 void MomentumOut(TVector3& mom) { mom.SetXYZ(fPx_out,fPy_out,fPz_out); }
47
48 Int_t GetIsPrimary() { return fIsPrimary; }
49 Double_t GetCharge() { return fCharge; }
50 Double_t GetPdgId() { return fPdgId; }
51
52 Int_t GetStation() { return fStation; }
53 Int_t GetModule() { return fModule; }
54
55 void SetStation(Int_t station_num) { fStation = station_num; }
56 void SetModule(Int_t module_num) { fModule = module_num; }
57
58 // Output to screen
59 virtual void Print(const Option_t* opt) const;
60
61protected:
62
64 Double_t fCharge;
65 Int_t fPdgId;
66
67 Double_t fX_out, fY_out, fZ_out;
69
70 Int_t fStation;
71 Int_t fModule;
72
73 ClassDef(BmnSiliconPoint,1)
74};
75
76#endif /* BMNSILICONPOINT_H */
77
void SetStation(Int_t station_num)
Double_t GetPyOut() const
virtual ~BmnSiliconPoint()
Double_t GetPzOut() const
Double_t GetXOut() const
Double_t GetZOut() const
Double_t GetPxOut() const
virtual void Print(const Option_t *opt) const
Double_t GetZIn() const
Double_t GetYOut() const
Double_t GetXIn() const
void MomentumOut(TVector3 &mom)
Double_t GetYIn() const
void PositionOut(TVector3 &pos)
void SetModule(Int_t module_num)
void PositionIn(TVector3 &pos)
BmnSiliconPoint(const BmnSiliconPoint &point)
Double_t GetPdgId()
void MomentumIn(TVector3 &mom)
Double_t GetCharge()