BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnVSPPoint.h
Go to the documentation of this file.
1#ifndef BMNVSPPOINT_H
2#define BMNVSPPOINT_H
3
4#include "FairMCPoint.h"
5
6class BmnVSPPoint : public FairMCPoint
7{
8 public:
9 /** Constructor with arguments
10 *@param trackID Index of MCTrack
11 *@param detID Detector ID
12 *@param posIn Coordinates at entrance to active volume [cm]
13 *@param posOut Coordinates at exit of active volume [cm]
14 *@param momIn Momentum of track at entrance [GeV]
15 *@param momOut Momentum of track at exit [GeV]
16 *@param tof Time since event start [ns]
17 *@param length Track length since creation [cm]
18 *@param eLoss Energy deposit [GeV]
19 **/
20 BmnVSPPoint(Int_t trackID,
21 Int_t detID,
22 TVector3 posIn,
23 TVector3 posOut,
24 TVector3 momIn,
25 TVector3 momOut,
26 Double_t tof,
27 Double_t length,
28 Double_t eLoss,
29 Int_t isPrimary,
30 Double_t charge,
31 Int_t pdgId);
32 BmnVSPPoint(const BmnVSPPoint& point) { *this = point; };
34
35 virtual ~BmnVSPPoint();
36
37 /** Accessors **/
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 GetPxOut() const { return fPx_out; }
45 Double_t GetPyOut() const { return fPy_out; }
46 Double_t GetPzOut() const { return fPz_out; }
47 void PositionIn(TVector3& pos) { pos.SetXYZ(fX, fY, fZ); }
49 void MomentumIn(TVector3& mom) { mom.SetXYZ(fPx, fPy, fPz); }
51
54 Double_t GetPdgId() { return fPdgId; }
55
57 Int_t GetModule() { return fModule; }
58
59 void SetStation(Int_t station_num) { fStation = station_num; }
60 void SetModule(Int_t module_num) { fModule = module_num; }
61
62 // Output to screen
63 virtual void Print(const Option_t* opt) const;
64
65 protected:
69
72
75
77};
78
79#endif /* BMNVSPPOINT_H */
int Int_t
double Double_t
const char Option_t
#define ClassDef(name, id)
Double_t fY_out
Definition BmnVSPPoint.h:70
void SetModule(Int_t module_num)
Definition BmnVSPPoint.h:60
Int_t fIsPrimary
Definition BmnVSPPoint.h:66
Double_t fZ_out
Definition BmnVSPPoint.h:70
Double_t GetZOut() const
Definition BmnVSPPoint.h:43
virtual void Print(const Option_t *opt) const
virtual ~BmnVSPPoint()
Double_t fCharge
Definition BmnVSPPoint.h:67
Int_t GetModule()
Definition BmnVSPPoint.h:57
Double_t GetPzOut() const
Definition BmnVSPPoint.h:46
Double_t fX_out
Definition BmnVSPPoint.h:70
Double_t GetZIn() const
Definition BmnVSPPoint.h:40
void SetStation(Int_t station_num)
Definition BmnVSPPoint.h:59
Int_t fStation
Definition BmnVSPPoint.h:73
void PositionOut(TVector3 &pos)
Definition BmnVSPPoint.h:48
void PositionIn(TVector3 &pos)
Definition BmnVSPPoint.h:47
BmnVSPPoint(const BmnVSPPoint &point)
Definition BmnVSPPoint.h:32
Int_t fModule
Definition BmnVSPPoint.h:74
Int_t GetIsPrimary()
Definition BmnVSPPoint.h:52
Double_t GetPxOut() const
Definition BmnVSPPoint.h:44
Double_t GetPdgId()
Definition BmnVSPPoint.h:54
Double_t GetXOut() const
Definition BmnVSPPoint.h:41
Double_t GetCharge()
Definition BmnVSPPoint.h:53
Double_t fPx_out
Definition BmnVSPPoint.h:71
Double_t GetXIn() const
Accessors.
Definition BmnVSPPoint.h:38
Int_t GetStation()
Definition BmnVSPPoint.h:56
void MomentumOut(TVector3 &mom)
Definition BmnVSPPoint.h:50
Double_t GetPyOut() const
Definition BmnVSPPoint.h:45
BmnVSPPoint(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 fPz_out
Definition BmnVSPPoint.h:71
Double_t fPy_out
Definition BmnVSPPoint.h:71
void MomentumIn(TVector3 &mom)
Definition BmnVSPPoint.h:49
Double_t GetYOut() const
Definition BmnVSPPoint.h:42
Double_t GetYIn() const
Definition BmnVSPPoint.h:39
void SetXYZ(Double_t x, Double_t y, Double_t z)