BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnZdcPoint.h
Go to the documentation of this file.
1// ------------------------------------------------------------------------
2// ----- BmnZdcPoint header file -----
3// ----- litvin@nf.jinr.ru -----
4// ----- Last updated 22-Feb-2012 -----
5//
6// Modified by M.Golubeva
7// ------------------------------------------------------------------------
8
9#ifndef BMNZDCPOINT_H
10#define BMNZDCPOINT_H
11
12#include "FairMCPoint.h"
13#include "TLorentzVector.h"
14#include "TObject.h"
15#include "TVector3.h"
16
17using namespace std;
18
19class BmnZdcPoint : public FairMCPoint
20{
21
22 public:
23 /** Default constructor **/
25
26 /** Constructor with arguments
27 *@param trackID Index of MCTrack
28 *@param detID Detector ID (at present, volume MC number)
29 *@param copyNo Number of active layer inside ZDC module
30 *@param copyNoMother ZDC module number
31 *@param pos Coordinates [cm]
32 *@param mom Momentum of track [GeV]
33 *@param tof Time since event start [ns]
34 *@param length Track length since creation [cm]
35 *@param eLoss Energy deposit [GeV]
36 **/
37
39 Int_t detID,
40 Int_t copyNo,
41 Int_t copyNoMother,
42 TVector3 pos,
43 TVector3 mom,
44 Double_t tof,
45 Double_t length,
46 Double_t eLoss,
47 UInt_t EventId = 0);
48 // Double_t eLoss, Int_t nHits, UInt_t EventId=0 );
49
50 /** Copy constructor **/
51 BmnZdcPoint(const BmnZdcPoint& point) { *this = point; };
52
53 /** Destructor **/
54 virtual ~BmnZdcPoint();
55
56 /** Accessors **/
57 Short_t GetCopy() const { return nCopy; };
58 Short_t GetCopyMother() const { return nCopyMother; };
59 // Short_t GetCopyZdc() const {return nCopyZdc; };//zdc (left, right)
60 // int GetNHits() {return fNHits; };
61
62 /** Modifiers **/
63 void SetCopy(Short_t i) { nCopy = i; };
65 // void SetCopyZdc(Short_t i) { nCopyZdc = i; };
66 // void SetNHits(Int_t i) { fNHits = i; };
67
68 /** Output to screen **/
69 virtual void Print(const Option_t* opt) const;
70
71 // fTrackID = trackID;
72 // fDetectorID = detID;
73
74 // fX = pos.X();
75 // fY = pos.Y();
76 // fZ = pos.Z();
77 // fPx = mom.Px();
78 // fPy = mom.Py();
79 // fPz = mom.Pz();
80 // fTime = tof;
81 // fLength = length;
82 // fELoss = eLoss;
83 // //fNHits = nHits;
84 // fEventId
85
86 // void AddVSC(Int_t trackID, Int_t detID, Int_t idvsc, Int_t idmod, TVector3 pos,TVector3 mom,Double_t dt, Double_t
87 // dl, Double_t de) {
88 void AddVSC(Int_t trackID,
89 Int_t detID,
90 Int_t idvsc,
91 Int_t idmod,
92 TVector3 pos,
93 TVector3 mom,
94 Double_t dt,
95 Double_t dl,
97 UInt_t EventId)
98 {
99 // void AddVSC(Int_t trackID, Int_t detID, Int_t idvsc, Int_t idmod, TVector3 pos,TVector3 mom,Double_t dt,
100 // Double_t dl, Double_t de, Int_t nhits) {
101 if (nCopy != idvsc)
102 cerr << "Warning: idvsc not equal in BmnZdcPoint::AddVSC";
103 if (nCopyMother != idmod)
104 cerr << "Warning: idmod not equal in BmNZdcPoint::AddVSC";
105 fTrackID = trackID;
106 fDetectorID = detID;
107 fX = pos.X();
108 fY = pos.Y();
109 fZ = pos.Z();
110 fPx = mom.Px();
111 fPy = mom.Py();
112 fPz = mom.Pz();
113 // nCopy=idvsc; nCopyMother=idmod; fELoss += de; fLength += dl; fTime+=dt;
114 nCopy = idvsc;
115 nCopyMother = idmod;
116 fELoss += de;
117 fLength += dl;
118 fTime = dt;
119 // nCopy=idvsc; nCopyMother=idmod; fELoss += de; fLength += dl; fTime = dt; fEventID=EventId;
120 // nCopy=idvsc; nCopyMother=idmod; fELoss += de; fLength += dl; fTime = dt; fNHits += nhits;;
121 }
122
123 protected:
124 Short_t nCopy; // Copy number
125 Short_t nCopyMother; // Copy number of mother volume
126 // Short_t nCopyZdc; // Copy number of zdc (left, right)
127 // Int_t fNHits //number of hits in slice
128
129 // ClassDef(BmnZdcPoint,1)
131 // ClassDef(BmnZdcPoint,3)
132};
133
134#endif
int i
Definition P4_F32vec4.h:22
int Int_t
short Short_t
double Double_t
const char Option_t
#define ClassDef(name, id)
BmnZdcPoint()
Default constructor.
Short_t nCopyMother
BmnZdcPoint(Int_t trackID, Int_t detID, Int_t copyNo, Int_t copyNoMother, TVector3 pos, TVector3 mom, Double_t tof, Double_t length, Double_t eLoss, UInt_t EventId=0)
Constructor with arguments.
virtual ~BmnZdcPoint()
Destructor.
virtual void Print(const Option_t *opt) const
Output to screen.
Short_t nCopy
Short_t GetCopy() const
Accessors.
Definition BmnZdcPoint.h:57
void SetCopy(Short_t i)
Modifiers.
Definition BmnZdcPoint.h:63
void SetCopyMother(Short_t i)
Definition BmnZdcPoint.h:64
BmnZdcPoint(const BmnZdcPoint &point)
Copy constructor.
Definition BmnZdcPoint.h:51
void AddVSC(Int_t trackID, Int_t detID, Int_t idvsc, Int_t idmod, TVector3 pos, TVector3 mom, Double_t dt, Double_t dl, Double_t de, UInt_t EventId)
Definition BmnZdcPoint.h:88
Short_t GetCopyMother() const
Definition BmnZdcPoint.h:58
Double_t Z() const
Double_t Px() const
Double_t Y() const
Double_t Py() const
Double_t X() const
Double_t Pz() const
Definition json.hpp:4446