BmnRoot
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 "TObject.h"
13
#include "TVector3.h"
14
#include "TLorentzVector.h"
15
#include "FairMCPoint.h"
16
17
using namespace
std
;
18
19
class
BmnZdcPoint
:
public
FairMCPoint
20
{
21
22
public
:
23
25
BmnZdcPoint
();
26
27
41
BmnZdcPoint
(Int_t trackID, Int_t detID,
42
Int_t copyNo, Int_t copyNoMother,
43
TVector3 pos, TVector3 mom,
44
Double_t tof, Double_t length,
45
Double_t eLoss, UInt_t EventId=0 );
46
//Double_t eLoss, Int_t nHits, UInt_t EventId=0 );
47
49
BmnZdcPoint
(
const
BmnZdcPoint
& point) { *
this
= point; };
50
52
virtual
~BmnZdcPoint
();
53
55
Short_t
GetCopy
()
const
{
return
nCopy
; };
56
Short_t
GetCopyMother
()
const
{
return
nCopyMother
; };
57
//Short_t GetCopyZdc() const {return nCopyZdc; };//zdc (left, right)
58
//int GetNHits() {return fNHits; };
59
61
void
SetCopy
(Short_t
i
) {
nCopy
=
i
; };
62
void
SetCopyMother
(Short_t
i
) {
nCopyMother
=
i
; };
63
//void SetCopyZdc(Short_t i) { nCopyZdc = i; };
64
//void SetNHits(Int_t i) { fNHits = i; };
65
67
virtual
void
Print
(
const
Option_t* opt)
const
;
68
69
// fTrackID = trackID;
70
// fDetectorID = detID;
71
72
// fX = pos.X();
73
// fY = pos.Y();
74
// fZ = pos.Z();
75
// fPx = mom.Px();
76
// fPy = mom.Py();
77
// fPz = mom.Pz();
78
// fTime = tof;
79
// fLength = length;
80
// fELoss = eLoss;
81
// //fNHits = nHits;
82
// fEventId
83
84
//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) {
85
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) {
86
//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, Int_t nhits) {
87
if
(
nCopy
!= idvsc)
88
cerr <<
"Warning: idvsc not equal in BmnZdcPoint::AddVSC"
;
89
if
(
nCopyMother
!= idmod)
90
cerr <<
"Warning: idmod not equal in BmNZdcPoint::AddVSC"
;
91
fTrackID=trackID; fDetectorID=detID;
92
fX=pos.X(); fY=pos.Y(); fZ=pos.Z();
93
fPx=mom.Px(); fPy=mom.Py(); fPz=mom.Pz();
94
//nCopy=idvsc; nCopyMother=idmod; fELoss += de; fLength += dl; fTime+=dt;
95
nCopy
=idvsc;
nCopyMother
=idmod; fELoss += de; fLength += dl; fTime = dt;
96
//nCopy=idvsc; nCopyMother=idmod; fELoss += de; fLength += dl; fTime = dt; fEventID=EventId;
97
//nCopy=idvsc; nCopyMother=idmod; fELoss += de; fLength += dl; fTime = dt; fNHits += nhits;;
98
}
99
100
protected
:
101
102
Short_t
nCopy
;
// Copy number
103
Short_t
nCopyMother
;
// Copy number of mother volume
104
//Short_t nCopyZdc; // Copy number of zdc (left, right)
105
//Int_t fNHits //number of hits in slice
106
107
//ClassDef(BmnZdcPoint,1)
108
ClassDef(
BmnZdcPoint
,2)
109
//ClassDef(BmnZdcPoint,3)
110
111
};
112
113
#endif
i
int i
Definition
P4_F32vec4.h:22
BmnZdcPoint
Definition
BmnZdcPoint.h:20
BmnZdcPoint::BmnZdcPoint
BmnZdcPoint()
Definition
BmnZdcPoint.cxx:17
BmnZdcPoint::nCopyMother
Short_t nCopyMother
Definition
BmnZdcPoint.h:103
BmnZdcPoint::nCopy
Short_t nCopy
Definition
BmnZdcPoint.h:102
BmnZdcPoint::~BmnZdcPoint
virtual ~BmnZdcPoint()
Definition
BmnZdcPoint.cxx:58
BmnZdcPoint::GetCopy
Short_t GetCopy() const
Definition
BmnZdcPoint.h:55
BmnZdcPoint::SetCopy
void SetCopy(Short_t i)
Definition
BmnZdcPoint.h:61
BmnZdcPoint::SetCopyMother
void SetCopyMother(Short_t i)
Definition
BmnZdcPoint.h:62
BmnZdcPoint::BmnZdcPoint
BmnZdcPoint(const BmnZdcPoint &point)
Definition
BmnZdcPoint.h:49
BmnZdcPoint::Print
virtual void Print(const Option_t *opt) const
Definition
BmnZdcPoint.cxx:61
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:85
BmnZdcPoint::GetCopyMother
Short_t GetCopyMother() const
Definition
BmnZdcPoint.h:56
std
STL namespace.
detectors
zdc
BmnZdcPoint.h
Generated on Fri May 15 2026 10:40:55 for BmnRoot by
1.9.8