BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnCSCPoint.h
Go to the documentation of this file.
1#ifndef BMNCSCPOINT_H
2#define BMNCSCPOINT_H
3
4#include "FairMCPoint.h"
5
6class BmnCSCPoint : 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 **/
21 BmnCSCPoint(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 BmnCSCPoint(const BmnCSCPoint& point) { *this = point; };
35
37
38 virtual ~BmnCSCPoint();
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 plane of the chamber (hit position)
79
82
84};
85
86#endif /* BMNCSCPOINT_H */
int Int_t
double Double_t
const char Option_t
#define ClassDef(name, id)
Double_t GetYIn() const
Definition BmnCSCPoint.h:42
Double_t GetPdgId()
Definition BmnCSCPoint.h:63
BmnCSCPoint(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.
virtual void Print(const Option_t *opt) const
Double_t GetPzOut() const
Definition BmnCSCPoint.h:52
void SetStation(Int_t station)
Definition BmnCSCPoint.h:65
Int_t GetModule() const
Definition BmnCSCPoint.h:59
Double_t fY_center
Definition BmnCSCPoint.h:77
Int_t fStation
Definition BmnCSCPoint.h:80
Double_t GetXCenter() const
Definition BmnCSCPoint.h:47
Double_t GetZCenter() const
Definition BmnCSCPoint.h:49
BmnCSCPoint(const BmnCSCPoint &point)
Definition BmnCSCPoint.h:34
Double_t fPy_out
Definition BmnCSCPoint.h:78
void MomentumIn(TVector3 &mom)
Definition BmnCSCPoint.h:56
void SetModule(Int_t module)
Definition BmnCSCPoint.h:66
void PositionIn(TVector3 &pos)
Definition BmnCSCPoint.h:53
void PositionCenter(TVector3 &pos)
Definition BmnCSCPoint.h:55
Double_t GetYCenter() const
Definition BmnCSCPoint.h:48
virtual ~BmnCSCPoint()
Int_t GetStation() const
Definition BmnCSCPoint.h:58
Double_t GetPxOut() const
Definition BmnCSCPoint.h:50
Double_t fZ_center
Definition BmnCSCPoint.h:77
void MomentumOut(TVector3 &mom)
Definition BmnCSCPoint.h:57
Double_t fCharge
Definition BmnCSCPoint.h:73
Double_t fY_out
Definition BmnCSCPoint.h:76
Double_t fPz_out
Definition BmnCSCPoint.h:78
Double_t fZ_out
Definition BmnCSCPoint.h:76
Int_t fIsPrimary
Definition BmnCSCPoint.h:72
Double_t GetPyOut() const
Definition BmnCSCPoint.h:51
Double_t fX_center
Definition BmnCSCPoint.h:77
Double_t GetXOut() const
Definition BmnCSCPoint.h:44
Double_t GetCharge()
Definition BmnCSCPoint.h:62
void PositionOut(TVector3 &pos)
Definition BmnCSCPoint.h:54
Double_t fX_out
Definition BmnCSCPoint.h:76
Double_t GetXIn() const
Accessors.
Definition BmnCSCPoint.h:41
Int_t fModule
Definition BmnCSCPoint.h:81
Double_t fPx_out
Definition BmnCSCPoint.h:78
Double_t GetYOut() const
Definition BmnCSCPoint.h:45
Double_t GetZOut() const
Definition BmnCSCPoint.h:46
Int_t GetIsPrimary()
Definition BmnCSCPoint.h:61
Double_t GetZIn() const
Definition BmnCSCPoint.h:43
void SetXYZ(Double_t x, Double_t y, Double_t z)