BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
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
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 BmnSiliconPoint(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 BmnSiliconPoint(const BmnSiliconPoint& point) { *this = point; };
35
37
38 virtual ~BmnSiliconPoint();
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 GetPxOut() const { return fPx_out; }
48 Double_t GetPyOut() const { return fPy_out; }
49 Double_t GetPzOut() const { return fPz_out; }
50 void PositionIn(TVector3& pos) { pos.SetXYZ(fX, fY, fZ); }
52 void MomentumIn(TVector3& mom) { mom.SetXYZ(fPx, fPy, fPz); }
54
57 Double_t GetPdgId() { return fPdgId; }
58
60 Int_t GetModule() { return fModule; }
61
62 void SetStation(Int_t station_num) { fStation = station_num; }
63 void SetModule(Int_t module_num) { fModule = module_num; }
64
65 // Output to screen
66 virtual void Print(const Option_t* opt) const;
67
68 protected:
72
75
78
80};
81
82#endif /* BMNSILICONPOINT_H */
int Int_t
double Double_t
const char Option_t
#define ClassDef(name, id)
void SetStation(Int_t station_num)
Double_t GetPyOut() const
virtual ~BmnSiliconPoint()
Double_t GetPzOut() const
Double_t GetXOut() const
BmnSiliconPoint(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 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
Accessors.
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()
void SetXYZ(Double_t x, Double_t y, Double_t z)