BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
Loading...
Searching...
No Matches
BmnScWallPoint.h
Go to the documentation of this file.
1
// ------------------------------------------------------------------------
2
// ----- BmnScWallPoint header file -----
3
// ------------------------------------------------------------------------
4
5
#ifndef BMNSCWALLPOINT_H
6
#define BMNSCWALLPOINT_H
7
8
#include "FairMCPoint.h"
9
#include "
Rtypes.h
"
10
#include "
TLorentzVector.h
"
11
#include "
TObject.h
"
12
#include "
TParticle.h
"
13
#include "
TVector3.h
"
14
#include "TVirtualMC.h"
15
16
using namespace
std
;
17
18
class
BmnScWallPoint
:
public
FairMCPoint
19
{
20
public
:
21
/** Default constructor **/
22
BmnScWallPoint
();
23
24
/** Constructor with arguments
25
*@param trackID Index of MCTrack
26
*@param detID Detector ID (at present, volume MC number)
27
*@param copyNo Slice number
28
*@param copyNoMother Cell number
29
*@param pos Coordinates [cm]
30
*@param mom Momentum of track [GeV]
31
*@param tof Time since event start [ns]
32
*@param length Track length since creation [cm]
33
*@param eLoss Energy deposit [GeV]
34
**/
35
36
BmnScWallPoint
(
Int_t
trackID,
37
Int_t
detID,
38
Int_t
copyNo,
39
Int_t
copyNoMother,
40
TVector3
pos,
41
TVector3
mom,
42
Double_t
tof,
43
Double_t
length,
44
Double_t
eLoss,
45
UInt_t EventId = 0);
46
47
/** Copy constructor **/
48
BmnScWallPoint
(
const
BmnScWallPoint
& point) { *
this
= point; };
49
50
/** Destructor **/
51
virtual
~BmnScWallPoint
();
52
53
Short_t
GetCopy
()
const
{
return
nCopy
; };
// sens. slice
54
Short_t
GetCopyMother
()
const
{
return
nCopyMother
; };
// cell
55
Double_t
GetTime
()
const
{
return
fTime
; }
56
Double_t
GetLengthtrack
()
const
{
return
fLengthtrack
; }
57
58
Double_t
GetPx
()
const
{
return
fPx
; }
59
Double_t
GetPy
()
const
{
return
fPy
; }
60
Double_t
GetPz
()
const
{
return
fPz
; }
61
62
void
MomentumOut
(
TVector3
& mom) { mom.
SetXYZ
(
fPx
,
fPy
,
fPz
); }
63
64
Double_t
GetX
()
const
{
return
fX
; }
65
Double_t
GetY
()
const
{
return
fY
; }
66
Double_t
GetZ
()
const
{
return
fZ
; }
67
68
/** Modifiers **/
69
void
SetCopy
(
Short_t
i
) {
nCopy
=
i
; };
70
void
SetCopyMother
(
Short_t
i
) {
nCopyMother
=
i
; };
71
// void SetCopyZdc(Short_t i) { nCopyZdc = i; };
72
73
void
PositionOut
(
TVector3
& pos) { pos.
SetXYZ
(
fX
,
fY
,
fZ
); }
74
75
//---------------------------------------------------------
76
77
/** Output to screen **/
78
virtual
void
Print
(
const
Option_t
* opt)
const
;
79
80
void
AddCELL
(
Int_t
trackID,
81
Int_t
detID,
82
Int_t
idslice,
83
Int_t
idcell,
84
TVector3
pos,
85
TVector3
mom,
86
Double_t
dt,
87
Double_t
dl,
88
Double_t
de
)
89
{
90
if
(
nCopy
!= idslice)
91
cerr <<
"Warning: idslice not equal in BmnScWallPoint::AddCELL"
;
92
if
(
nCopyMother
!= idcell)
93
cerr <<
"Warning: idcell not equal in BmnScWallPoint::AddCELL"
;
94
fTrackID = trackID;
95
fDetectorID = detID;
96
fX
= pos.
X
();
97
fY
= pos.
Y
();
98
fZ
= pos.
Z
();
99
fPx
= mom.
Px
();
100
fPy
= mom.
Py
();
101
fPz
= mom.
Pz
();
102
nCopy
= idslice;
103
nCopyMother
= idcell;
104
fELoss +=
de
;
105
fLength += dl;
106
fTime
+= dt;
107
}
108
109
protected
:
110
Short_t
nCopy
;
// Copy number //slice
111
Short_t
nCopyMother
;
// Copy number of mother volume //cell
112
Double_t
fX
,
fY
,
fZ
;
113
Double_t
fPx
,
fPy
,
fPz
;
114
Double_t
fTime
;
115
Double_t
fLengthtrack
;
116
117
// ClassDef(BmnScWallPoint, 0)
118
ClassDef
(
BmnScWallPoint
, 1)
119
};
120
121
#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
Rtypes.h
ClassDef
#define ClassDef(name, id)
TLorentzVector.h
TObject.h
TParticle.h
TVector3.h
BmnScWallPoint::fY
Double_t fY
Definition
BmnScWallPoint.h:112
BmnScWallPoint::fPz
Double_t fPz
Definition
BmnScWallPoint.h:113
BmnScWallPoint::GetCopy
Short_t GetCopy() const
Definition
BmnScWallPoint.h:53
BmnScWallPoint::BmnScWallPoint
BmnScWallPoint(const BmnScWallPoint &point)
Copy constructor.
Definition
BmnScWallPoint.h:48
BmnScWallPoint::PositionOut
void PositionOut(TVector3 &pos)
Definition
BmnScWallPoint.h:73
BmnScWallPoint::nCopy
Short_t nCopy
Definition
BmnScWallPoint.h:110
BmnScWallPoint::~BmnScWallPoint
virtual ~BmnScWallPoint()
Destructor.
Definition
BmnScWallPoint.cxx:49
BmnScWallPoint::GetTime
Double_t GetTime() const
Definition
BmnScWallPoint.h:55
BmnScWallPoint::fZ
Double_t fZ
Definition
BmnScWallPoint.h:112
BmnScWallPoint::SetCopy
void SetCopy(Short_t i)
Modifiers.
Definition
BmnScWallPoint.h:69
BmnScWallPoint::GetY
Double_t GetY() const
Definition
BmnScWallPoint.h:65
BmnScWallPoint::fPy
Double_t fPy
Definition
BmnScWallPoint.h:113
BmnScWallPoint::GetPx
Double_t GetPx() const
Definition
BmnScWallPoint.h:58
BmnScWallPoint::fX
Double_t fX
Definition
BmnScWallPoint.h:112
BmnScWallPoint::GetX
Double_t GetX() const
Definition
BmnScWallPoint.h:64
BmnScWallPoint::nCopyMother
Short_t nCopyMother
Definition
BmnScWallPoint.h:111
BmnScWallPoint::fPx
Double_t fPx
Definition
BmnScWallPoint.h:113
BmnScWallPoint::GetPz
Double_t GetPz() const
Definition
BmnScWallPoint.h:60
BmnScWallPoint::GetZ
Double_t GetZ() const
Definition
BmnScWallPoint.h:66
BmnScWallPoint::fLengthtrack
Double_t fLengthtrack
Definition
BmnScWallPoint.h:115
BmnScWallPoint::AddCELL
void AddCELL(Int_t trackID, Int_t detID, Int_t idslice, Int_t idcell, TVector3 pos, TVector3 mom, Double_t dt, Double_t dl, Double_t de)
Definition
BmnScWallPoint.h:80
BmnScWallPoint::Print
virtual void Print(const Option_t *opt) const
Output to screen.
Definition
BmnScWallPoint.cxx:52
BmnScWallPoint::BmnScWallPoint
BmnScWallPoint()
Default constructor.
Definition
BmnScWallPoint.cxx:12
BmnScWallPoint::MomentumOut
void MomentumOut(TVector3 &mom)
Definition
BmnScWallPoint.h:62
BmnScWallPoint::GetLengthtrack
Double_t GetLengthtrack() const
Definition
BmnScWallPoint.h:56
BmnScWallPoint::fTime
Double_t fTime
Definition
BmnScWallPoint.h:114
BmnScWallPoint::SetCopyMother
void SetCopyMother(Short_t i)
Definition
BmnScWallPoint.h:70
BmnScWallPoint::GetPy
Double_t GetPy() const
Definition
BmnScWallPoint.h:59
BmnScWallPoint::GetCopyMother
Short_t GetCopyMother() const
Definition
BmnScWallPoint.h:54
FairMCPoint
TVector3
TVector3::Z
Double_t Z() const
TVector3::SetXYZ
void SetXYZ(Double_t x, Double_t y, Double_t z)
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
detectors
scwall
BmnScWallPoint.h
Generated on
for BmnRoot by
1.17.0