BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
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{
8
9 public:
10 /** Constructor with arguments
11 *@param trackID Index of MCTrack
12 *@param detID Detector ID
13 *@param posIn Coordinates at entrance to active volume [cm]
14 *@param posOut Coordinates at exit of active volume [cm]
15 *@param momIn Momentum of track at entrance [GeV]
16 *@param momOut Momentum of track at exit [GeV]
17 *@param tof Time since event start [ns]
18 *@param length Track length since creation [cm]
19 *@param eLoss Energy deposit [GeV]
20 **/
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 BmnSiProfPoint(const BmnSiProfPoint& point) { *this = point; };
35
37
38 virtual ~BmnSiProfPoint();
39
40 /** Accessors **/
41 Double_t GetXIn() const { return fX; }
42 Double_t GetYIn() const { return fY; }
43 Double_t GetZIn() const { return fZ; }
44 Double_t GetXOut() const { return fX_out; }
45 Double_t GetYOut() const { return fY_out; }
46 Double_t GetZOut() const { return fZ_out; }
47 Double_t GetXCenter() const { return fX_center; }
48 Double_t GetYCenter() const { return fY_center; }
49 Double_t GetZCenter() const { return fZ_center; }
50 Double_t GetPxOut() const { return fPx_out; }
51 Double_t GetPyOut() const { return fPy_out; }
52 Double_t GetPzOut() const { return fPz_out; }
53 void PositionIn(TVector3& pos) { pos.SetXYZ(fX, fY, fZ); }
56 void MomentumIn(TVector3& mom) { mom.SetXYZ(fPx, fPy, fPz); }
58 Int_t GetStation() const { return fStation; }
59 Int_t GetModule() const { return fModule; }
60
63 Double_t GetPdgId() { return fPdgId; }
64
65 void SetStation(Int_t station) { fStation = station; }
66 void SetModule(Int_t module) { fModule = module; }
67
68 // Output to screen
69 virtual void Print(const Option_t* opt) const;
70
71 protected:
75
77 Double_t fX_center, fY_center, fZ_center; // middle pos. (hit position)
79
82
84};
85
86#endif /* BMNSiProfPOINT_H */
int Int_t
double Double_t
const char Option_t
#define ClassDef(name, id)
Double_t GetPxOut() const
Double_t GetXIn() const
Accessors.
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)
BmnSiProfPoint(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 isPrimary, Double_t charge, Int_t pdgId)
Constructor with arguments.
Double_t GetYIn() const
BmnSiProfPoint(const BmnSiProfPoint &point)
void SetXYZ(Double_t x, Double_t y, Double_t z)