BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
Loading...
Searching...
No Matches
BmnBdPoint.h
Go to the documentation of this file.
1
2
3
#ifndef BMNBDPOINT_H
4
#define BMNBDPOINT_H
5
6
#include "FairMCPoint.h"
7
#include "
Rtypes.h
"
8
#include "
TLorentzVector.h
"
9
#include "
TObject.h
"
10
#include "
TParticle.h
"
11
#include "
TVector3.h
"
12
#include "TVirtualMC.h"
13
14
using namespace
std
;
15
16
class
BmnBdPoint
:
public
FairMCPoint
17
{
18
19
public
:
20
/** Default constructor **/
21
BmnBdPoint
();
22
23
/** Constructor with arguments
24
*@param trackID Index of MCTrack
25
*@param detID Detector ID (at present, volume MC number)
26
*@param copyNo Number of active layer inside BD module
27
*@param posIn Coordinates at entrance to active volume [cm]
28
*@param posOut Coordinates at exit of active volume [cm]
29
*@param momIn Momentum of track at entrance [GeV]
30
*@param momOut Momentum of track at exit [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
BmnBdPoint
(
Int_t
trackID,
37
Int_t
detID,
38
Int_t
copyNo,
39
TVector3
posIn,
40
TVector3
posOut,
41
TVector3
momIn,
42
TVector3
momOut,
43
Double_t
tof,
44
Double_t
length,
45
Double_t
eLoss,
46
Int_t
isPrimary,
47
Double_t
charge,
48
Int_t
pdgId,
49
Double_t
lightYield,
50
Double_t
timeIn,
51
Double_t
timeOut,
52
Double_t
lengthtrack);
53
// UInt_t EventId,
54
/** Copy constructor **/
55
BmnBdPoint
(
const
BmnBdPoint
& point) { *
this
= point; };
56
57
/** Destructor **/
58
virtual
~BmnBdPoint
();
59
60
/** Accessors **/
61
Short_t
GetCopy
()
const
{
return
nCopy
; };
62
// Short_t GetCopyMother() const {return nCopyMother; };
63
64
Int_t
GetIsPrimary
() {
return
fIsPrimary
; }
65
Double_t
GetCharge
() {
return
fCharge
; }
66
Double_t
GetPdgId
() {
return
fPdgId
; }
67
Double_t
GetTimeIn
()
const
{
return
fTimeIn
; }
68
Double_t
GetTimeOut
()
const
{
return
fTimeOut
; }
69
Double_t
GetLengthtrack
()
const
{
return
fLengthtrack
; }
70
71
Double_t
GetPxOut
()
const
{
return
fPxOut
; }
72
Double_t
GetPyOut
()
const
{
return
fPyOut
; }
73
Double_t
GetPzOut
()
const
{
return
fPzOut
; }
74
75
void
MomentumOut
(
TVector3
& mom) { mom.
SetXYZ
(
fPxOut
,
fPyOut
,
fPzOut
); }
76
77
Double_t
GetXOut
()
const
{
return
fXOut
; }
78
Double_t
GetYOut
()
const
{
return
fYOut
; }
79
Double_t
GetZOut
()
const
{
return
fZOut
; }
80
81
void
PositionOut
(
TVector3
& pos) { pos.
SetXYZ
(
fXOut
,
fYOut
,
fZOut
); }
82
83
// ---------------------------------------------------------
84
Float_t
GetLightYield
()
const
{
return
fLightYield
; }
85
86
// void GetPolarisation(TVector3 &v) const;
87
88
/*
89
Double_t GetX() const { return fX1; };
90
Double_t GetY() const { return fY1; };
91
Double_t GetZ() const { return fZ1; };
92
93
void Position(TVector3& posprim) const { posprim.SetXYZ(fX1, fY1, fZ1); }
94
*/
95
96
/** Modifiers **/
97
void
SetCopy
(
Short_t
i
) {
nCopy
=
i
; };
98
// void SetCopyMother(Short_t i) { nCopyMother = i; };
99
100
// void SetProductionVertex(Double_t vx, Double_t vy, Double_t vz) {fVx=vx; fVy=vy; fVz=vz;}
101
102
/** Output to screen **/
103
virtual
void
Print
(
const
Option_t
* opt)
const
;
104
105
protected
:
106
Double_t
fXOut
,
fYOut
,
fZOut
;
107
Double_t
fPxOut
,
fPyOut
,
fPzOut
;
108
109
Short_t
nCopy
;
// Copy number
110
// Short_t nCopyMother; // Copy number of mother volume
111
112
Int_t
fIsPrimary
;
113
Double_t
fCharge
;
114
Int_t
fPdgId
;
115
Float_t
fLightYield
;
116
Double_t
fTimeIn
;
117
Double_t
fTimeOut
;
118
Double_t
fLengthtrack
;
119
120
ClassDef
(
BmnBdPoint
, 5)
121
// 4
122
};
123
124
#endif
i
int i
Definition
P4_F32vec4.h:22
Int_t
int Int_t
Float_t
float Float_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
BmnBdPoint
Definition
BmnBdPoint.h:17
BmnBdPoint::fTimeOut
Double_t fTimeOut
Definition
BmnBdPoint.h:117
BmnBdPoint::GetZOut
Double_t GetZOut() const
Definition
BmnBdPoint.h:79
BmnBdPoint::GetIsPrimary
Int_t GetIsPrimary()
Definition
BmnBdPoint.h:64
BmnBdPoint::GetTimeIn
Double_t GetTimeIn() const
Definition
BmnBdPoint.h:67
BmnBdPoint::GetPyOut
Double_t GetPyOut() const
Definition
BmnBdPoint.h:72
BmnBdPoint::GetPxOut
Double_t GetPxOut() const
Definition
BmnBdPoint.h:71
BmnBdPoint::PositionOut
void PositionOut(TVector3 &pos)
Definition
BmnBdPoint.h:81
BmnBdPoint::GetPzOut
Double_t GetPzOut() const
Definition
BmnBdPoint.h:73
BmnBdPoint::fXOut
Double_t fXOut
Definition
BmnBdPoint.h:106
BmnBdPoint::GetLengthtrack
Double_t GetLengthtrack() const
Definition
BmnBdPoint.h:69
BmnBdPoint::GetPdgId
Double_t GetPdgId()
Definition
BmnBdPoint.h:66
BmnBdPoint::fPdgId
Int_t fPdgId
Definition
BmnBdPoint.h:114
BmnBdPoint::fIsPrimary
Int_t fIsPrimary
Definition
BmnBdPoint.h:112
BmnBdPoint::BmnBdPoint
BmnBdPoint()
Default constructor.
BmnBdPoint::fYOut
Double_t fYOut
Definition
BmnBdPoint.h:106
BmnBdPoint::~BmnBdPoint
virtual ~BmnBdPoint()
Destructor.
BmnBdPoint::BmnBdPoint
BmnBdPoint(const BmnBdPoint &point)
Copy constructor.
Definition
BmnBdPoint.h:55
BmnBdPoint::Print
virtual void Print(const Option_t *opt) const
Output to screen.
BmnBdPoint::MomentumOut
void MomentumOut(TVector3 &mom)
Definition
BmnBdPoint.h:75
BmnBdPoint::fZOut
Double_t fZOut
Definition
BmnBdPoint.h:106
BmnBdPoint::fTimeIn
Double_t fTimeIn
Definition
BmnBdPoint.h:116
BmnBdPoint::SetCopy
void SetCopy(Short_t i)
Modifiers.
Definition
BmnBdPoint.h:97
BmnBdPoint::GetLightYield
Float_t GetLightYield() const
Definition
BmnBdPoint.h:84
BmnBdPoint::GetTimeOut
Double_t GetTimeOut() const
Definition
BmnBdPoint.h:68
BmnBdPoint::fLengthtrack
Double_t fLengthtrack
Definition
BmnBdPoint.h:118
BmnBdPoint::BmnBdPoint
BmnBdPoint(Int_t trackID, Int_t detID, Int_t copyNo, TVector3 posIn, TVector3 posOut, TVector3 momIn, TVector3 momOut, Double_t tof, Double_t length, Double_t eLoss, Int_t isPrimary, Double_t charge, Int_t pdgId, Double_t lightYield, Double_t timeIn, Double_t timeOut, Double_t lengthtrack)
Constructor with arguments.
BmnBdPoint::fCharge
Double_t fCharge
Definition
BmnBdPoint.h:113
BmnBdPoint::fPzOut
Double_t fPzOut
Definition
BmnBdPoint.h:107
BmnBdPoint::fLightYield
Float_t fLightYield
Definition
BmnBdPoint.h:115
BmnBdPoint::nCopy
Short_t nCopy
Definition
BmnBdPoint.h:109
BmnBdPoint::GetCopy
Short_t GetCopy() const
Accessors.
Definition
BmnBdPoint.h:61
BmnBdPoint::GetXOut
Double_t GetXOut() const
Definition
BmnBdPoint.h:77
BmnBdPoint::fPyOut
Double_t fPyOut
Definition
BmnBdPoint.h:107
BmnBdPoint::fPxOut
Double_t fPxOut
Definition
BmnBdPoint.h:107
BmnBdPoint::GetYOut
Double_t GetYOut() const
Definition
BmnBdPoint.h:78
BmnBdPoint::GetCharge
Double_t GetCharge()
Definition
BmnBdPoint.h:65
FairMCPoint
TVector3
TVector3::SetXYZ
void SetXYZ(Double_t x, Double_t y, Double_t z)
std
Definition
json.hpp:4446
install
include
BmnBdPoint.h
Generated on
for BmnRoot by
1.17.0