BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
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
17
using namespace
std
;
18
19
class
BmnZdcPoint
:
public
FairMCPoint
20
{
21
22
public
:
23
/** Default constructor **/
24
BmnZdcPoint
();
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
38
BmnZdcPoint
(
Int_t
trackID,
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
; };
64
void
SetCopyMother
(
Short_t
i
) {
nCopyMother
=
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,
96
Double_t
de
,
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)
130
ClassDef
(
BmnZdcPoint
, 2)
131
// ClassDef(BmnZdcPoint,3)
132
};
133
134
#endif
i
int i
Definition
P4_F32vec4.h:22
Int_t
int Int_t
Short_t
short Short_t
Double_t
double Double_t
Option_t
const char Option_t
ClassDef
#define ClassDef(name, id)
TLorentzVector.h
TObject.h
TVector3.h
BmnZdcPoint
Definition
BmnZdcPoint.h:20
BmnZdcPoint::BmnZdcPoint
BmnZdcPoint()
Default constructor.
BmnZdcPoint::nCopyMother
Short_t nCopyMother
Definition
BmnZdcPoint.h:125
BmnZdcPoint::BmnZdcPoint
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.
BmnZdcPoint::~BmnZdcPoint
virtual ~BmnZdcPoint()
Destructor.
BmnZdcPoint::Print
virtual void Print(const Option_t *opt) const
Output to screen.
BmnZdcPoint::nCopy
Short_t nCopy
Definition
BmnZdcPoint.h:124
BmnZdcPoint::GetCopy
Short_t GetCopy() const
Accessors.
Definition
BmnZdcPoint.h:57
BmnZdcPoint::SetCopy
void SetCopy(Short_t i)
Modifiers.
Definition
BmnZdcPoint.h:63
BmnZdcPoint::SetCopyMother
void SetCopyMother(Short_t i)
Definition
BmnZdcPoint.h:64
BmnZdcPoint::BmnZdcPoint
BmnZdcPoint(const BmnZdcPoint &point)
Copy constructor.
Definition
BmnZdcPoint.h:51
BmnZdcPoint::AddVSC
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
BmnZdcPoint::GetCopyMother
Short_t GetCopyMother() const
Definition
BmnZdcPoint.h:58
FairMCPoint
TVector3
TVector3::Z
Double_t Z() const
TVector3::Px
Double_t Px() const
TVector3::Y
Double_t Y() const
TVector3::Py
Double_t Py() const
TVector3::X
Double_t X() const
TVector3::Pz
Double_t Pz() const
std
Definition
json.hpp:4446
de
install
include
BmnZdcPoint.h
Generated on
for BmnRoot by
1.17.0