BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
CbmMvdPoint.h
Go to the documentation of this file.
1// -------------------------------------------------------------------------
2// ----- CbmMvdPoint header file -----
3// ----- Created 06/11/06 by V. Friese -----
4// -------------------------------------------------------------------------
5
6/** CbmMvdPoint.h
7 *@author V.Friese <v.friese@gsi.de>
8 *
9 * Data class for interception of MC track with a MVD detetcor station.
10 * Holds in addition to the base class the coordinates and momentum at the
11 * exit from the active volume.
12 *
13 * Data level MC
14 **/
15
16#ifndef CBMMVDPOINT_H
17#define CBMMVDPOINT_H 1
18
19#include "CbmMvdDetectorId.h"
20#include "FairMCPoint.h"
21#include "TObject.h"
22#include "TVector3.h"
23
24class CbmMvdPoint
25 : public FairMCPoint
27{
28
29 public:
30 /** Default constructor **/
32
33 /** Constructor with arguments
34 *@param trackId Index of MCTrack
35 *@param pdgCode Particle type (PDG code)
36 *@param detId Unique detector ID (contains the station number)
37 *@param posIn Coordinates at entrance to active volume [cm]
38 *@param posOut Coordinates at exit of active volume [cm]
39 *@param momIn Momentum of track at entrance [GeV]
40 *@param momOut Momentum of track at exit [GeV]
41 *@param tof Time since event start [ns]
42 *@param length Track length since creation [cm]
43 *@param eLoss Energy deposit [GeV]
44 **/
46 Int_t pdgCode,
47 Int_t detId,
48 TVector3 posIn,
49 TVector3 posOut,
50 TVector3 momIn,
51 TVector3 momOut,
52 Double_t tof,
53 Double_t length,
54 Double_t eLoss);
55
56 /** Copy constructor **/
57 // CbmMvdPoint(const CbmMvdPoint& point) { *this = point; };
58
59 /** Destructor **/
60 virtual ~CbmMvdPoint();
61
62 /** Accessors **/
63 Double_t GetXOut() const { return fX_out; }
64 Double_t GetYOut() const { return fY_out; }
65 Double_t GetZOut() const { return fZ_out; }
66 Double_t GetPxOut() const { return fPx_out; }
67 Double_t GetPyOut() const { return fPy_out; }
68 Double_t GetPzOut() const { return fPz_out; }
69 Int_t GetPdgCode() const { return fPdgCode; }
70 Int_t GetSystemId() const { return SystemId(fDetectorID); }
71 Int_t GetStationNr() const { return StationNr(fDetectorID); }
72 Int_t GetPointId() const { return fPointId; } // Returns index of this object in its TClonesArray.
73 // By default not filled. Used internally in the MvdDigitizer.
76
77 /** Modifiers **/
80 void SetPdgCode(Int_t pdg) { fPdgCode = pdg; }
81 void SetPointId(Int_t myId) { fPointId = myId; }
82
83 /** Output to screen **/
84 virtual void Print(const Option_t* opt) const;
85
86 protected:
89 Int_t fPdgCode; // index of the object in its TClonesArray. By default not filled => -1.
90 Int_t fPointId; // index of the object in its TClonesArray. By default not filled => -1.
91
93};
94
96{
97 fX_out = pos.X();
98 fY_out = pos.Y();
99 fZ_out = pos.Z();
100}
101
103{
104 fPx_out = mom.Px();
105 fPy_out = mom.Py();
106 fPz_out = mom.Pz();
107}
108
109#endif
int Int_t
double Double32_t
double Double_t
const char Option_t
#define ClassDef(name, id)
Int_t StationNr(Int_t detectorId) const
Get station number from detector ID.
Int_t SystemId(Int_t detectorId) const
Get System identifier from detector ID.
CbmMvdPoint.h.
Definition CbmMvdPoint.h:27
virtual void Print(const Option_t *opt) const
Output to screen.
Int_t GetStationNr() const
Definition CbmMvdPoint.h:71
Double32_t fY_out
Definition CbmMvdPoint.h:87
Int_t GetSystemId() const
Definition CbmMvdPoint.h:70
Int_t fPointId
Definition CbmMvdPoint.h:90
void SetPointId(Int_t myId)
Definition CbmMvdPoint.h:81
virtual ~CbmMvdPoint()
Copy constructor.
Double_t GetYOut() const
Definition CbmMvdPoint.h:64
Double_t GetPzOut() const
Definition CbmMvdPoint.h:68
void MomentumOut(TVector3 &mom)
Definition CbmMvdPoint.h:75
Double32_t fPy_out
Definition CbmMvdPoint.h:88
Int_t GetPdgCode() const
Definition CbmMvdPoint.h:69
void SetPositionOut(TVector3 pos)
Modifiers.
Int_t fPdgCode
Definition CbmMvdPoint.h:89
void SetPdgCode(Int_t pdg)
Definition CbmMvdPoint.h:80
Double32_t fPx_out
Definition CbmMvdPoint.h:88
Double_t GetPyOut() const
Definition CbmMvdPoint.h:67
Double_t GetPxOut() const
Definition CbmMvdPoint.h:66
Double32_t fZ_out
Definition CbmMvdPoint.h:87
Int_t GetPointId() const
Definition CbmMvdPoint.h:72
Double32_t fPz_out
Definition CbmMvdPoint.h:88
CbmMvdPoint()
Default constructor.
void PositionOut(TVector3 &pos)
Definition CbmMvdPoint.h:74
Double32_t fX_out
Definition CbmMvdPoint.h:87
Double_t GetZOut() const
Definition CbmMvdPoint.h:65
CbmMvdPoint(Int_t trackId, Int_t pdgCode, Int_t detId, TVector3 posIn, TVector3 posOut, TVector3 momIn, TVector3 momOut, Double_t tof, Double_t length, Double_t eLoss)
Constructor with arguments.
Double_t GetXOut() const
Accessors.
Definition CbmMvdPoint.h:63
void SetMomentumOut(TVector3 mom)
Double_t Z() const
void SetXYZ(Double_t x, Double_t y, Double_t z)
Double_t Px() const
Double_t Y() const
Double_t Py() const
Double_t X() const
Double_t Pz() const