BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
Loading...
Searching...
No Matches
BmnArmTrigPoint.h
Go to the documentation of this file.
1
// ------------------------------------------------------------------------
2
// ----- BmnArmTrigPoint header file -----
3
// ------------------------------------------------------------------------
4
5
#ifndef BMNARMTRIGPOINT_H
6
#define BMNARMTRIGPOINT_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
BmnArmTrigPoint
:
public
FairMCPoint
19
{
20
public
:
21
/** Default constructor **/
22
BmnArmTrigPoint
();
23
24
/** Constructor with arguments
25
*@param trackID Index of MCTrack
26
*@param detID Detector ID (at present, volume MC number)
27
*@param copyNo Number of active layer inside ArmTrig module
28
*@param posIn Coordinates at entrance to active volume [cm]
29
*@param posOut Coordinates at exit of active volume [cm]
30
*@param momIn Momentum of track at entrance [GeV]
31
*@param momOut Momentum of track at exit [GeV]
32
*@param tof Time since event start [ns]
33
*@param length Track length since creation [cm]
34
*@param eLoss Energy deposit [GeV]
35
**/
36
37
BmnArmTrigPoint
(
Int_t
trackID,
38
Int_t
detID,
39
Int_t
copyNo,
40
TVector3
posIn,
41
TVector3
posOut,
42
TVector3
momIn,
43
TVector3
momOut,
44
Double_t
tof,
45
Double_t
length,
46
Double_t
eLoss,
47
Int_t
isPrimary,
48
Double_t
charge,
49
Int_t
pdgId,
50
Double_t
timeIn,
51
Double_t
timeOut,
52
Double_t
lengthtrack);
53
// UInt_t EventId,
54
55
/** Copy constructor **/
56
BmnArmTrigPoint
(
const
BmnArmTrigPoint
& point) { *
this
= point; };
57
58
/** Destructor **/
59
virtual
~BmnArmTrigPoint
();
60
61
/** Accessors **/
62
Short_t
GetCopy
()
const
{
return
nCopy
; };
63
// Short_t GetCopyMother() const {return nCopyMother; };
64
65
Int_t
GetIsPrimary
() {
return
fIsPrimary
; }
66
67
Double_t
GetCharge
() {
return
fCharge
; }
68
69
Double_t
GetPdgId
() {
return
fPdgId
; }
70
71
Double_t
GetTimeIn
()
const
{
return
fTimeIn
; }
72
73
Double_t
GetTimeOut
()
const
{
return
fTimeOut
; }
74
75
Double_t
GetLengthtrack
()
const
{
return
fLengthtrack
; }
76
77
Double_t
GetPxOut
()
const
{
return
fPxOut
; }
78
79
Double_t
GetPyOut
()
const
{
return
fPyOut
; }
80
81
Double_t
GetPzOut
()
const
{
return
fPzOut
; }
82
83
void
MomentumOut
(
TVector3
& mom) { mom.
SetXYZ
(
fPxOut
,
fPyOut
,
fPzOut
); }
84
85
Double_t
GetXOut
()
const
{
return
fXOut
; }
86
87
Double_t
GetYOut
()
const
{
return
fYOut
; }
88
89
Double_t
GetZOut
()
const
{
return
fZOut
; }
90
91
void
PositionOut
(
TVector3
& pos) { pos.
SetXYZ
(
fXOut
,
fYOut
,
fZOut
); }
92
93
// ---------------------------------------------------------
94
95
/** Modifiers **/
96
void
SetCopy
(
Short_t
i
) {
nCopy
=
i
; };
97
98
/** Output to screen **/
99
virtual
void
Print
(
const
Option_t
* opt)
const
;
100
101
protected
:
102
Double_t
fXOut
,
fYOut
,
fZOut
;
103
Double_t
fPxOut
,
fPyOut
,
fPzOut
;
104
105
Short_t
nCopy
;
// Copy number
106
// Short_t nCopyMother; // Copy number of mother volume
107
108
Int_t
fIsPrimary
;
109
Double_t
fCharge
;
110
Int_t
fPdgId
;
111
Double_t
fTimeIn
;
112
Double_t
fTimeOut
;
113
Double_t
fLengthtrack
;
114
115
ClassDef
(
BmnArmTrigPoint
, 1)
116
};
117
118
#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
BmnArmTrigPoint::fPzOut
Double_t fPzOut
Definition
BmnArmTrigPoint.h:103
BmnArmTrigPoint::fCharge
Double_t fCharge
Definition
BmnArmTrigPoint.h:109
BmnArmTrigPoint::~BmnArmTrigPoint
virtual ~BmnArmTrigPoint()
Destructor.
Definition
BmnArmTrigPoint.cxx:73
BmnArmTrigPoint::GetZOut
Double_t GetZOut() const
Definition
BmnArmTrigPoint.h:89
BmnArmTrigPoint::GetXOut
Double_t GetXOut() const
Definition
BmnArmTrigPoint.h:85
BmnArmTrigPoint::fLengthtrack
Double_t fLengthtrack
Definition
BmnArmTrigPoint.h:113
BmnArmTrigPoint::fXOut
Double_t fXOut
Definition
BmnArmTrigPoint.h:102
BmnArmTrigPoint::fTimeOut
Double_t fTimeOut
Definition
BmnArmTrigPoint.h:112
BmnArmTrigPoint::PositionOut
void PositionOut(TVector3 &pos)
Definition
BmnArmTrigPoint.h:91
BmnArmTrigPoint::GetCharge
Double_t GetCharge()
Definition
BmnArmTrigPoint.h:67
BmnArmTrigPoint::fZOut
Double_t fZOut
Definition
BmnArmTrigPoint.h:102
BmnArmTrigPoint::fPxOut
Double_t fPxOut
Definition
BmnArmTrigPoint.h:103
BmnArmTrigPoint::BmnArmTrigPoint
BmnArmTrigPoint(const BmnArmTrigPoint &point)
Copy constructor.
Definition
BmnArmTrigPoint.h:56
BmnArmTrigPoint::SetCopy
void SetCopy(Short_t i)
Modifiers.
Definition
BmnArmTrigPoint.h:96
BmnArmTrigPoint::GetTimeOut
Double_t GetTimeOut() const
Definition
BmnArmTrigPoint.h:73
BmnArmTrigPoint::GetTimeIn
Double_t GetTimeIn() const
Definition
BmnArmTrigPoint.h:71
BmnArmTrigPoint::fTimeIn
Double_t fTimeIn
Definition
BmnArmTrigPoint.h:111
BmnArmTrigPoint::GetIsPrimary
Int_t GetIsPrimary()
Definition
BmnArmTrigPoint.h:65
BmnArmTrigPoint::fPyOut
Double_t fPyOut
Definition
BmnArmTrigPoint.h:103
BmnArmTrigPoint::GetPxOut
Double_t GetPxOut() const
Definition
BmnArmTrigPoint.h:77
BmnArmTrigPoint::fYOut
Double_t fYOut
Definition
BmnArmTrigPoint.h:102
BmnArmTrigPoint::fIsPrimary
Int_t fIsPrimary
Definition
BmnArmTrigPoint.h:108
BmnArmTrigPoint::BmnArmTrigPoint
BmnArmTrigPoint()
Default constructor.
Definition
BmnArmTrigPoint.cxx:15
BmnArmTrigPoint::GetPzOut
Double_t GetPzOut() const
Definition
BmnArmTrigPoint.h:81
BmnArmTrigPoint::fPdgId
Int_t fPdgId
Definition
BmnArmTrigPoint.h:110
BmnArmTrigPoint::nCopy
Short_t nCopy
Definition
BmnArmTrigPoint.h:105
BmnArmTrigPoint::GetPyOut
Double_t GetPyOut() const
Definition
BmnArmTrigPoint.h:79
BmnArmTrigPoint::GetCopy
Short_t GetCopy() const
Accessors.
Definition
BmnArmTrigPoint.h:62
BmnArmTrigPoint::GetYOut
Double_t GetYOut() const
Definition
BmnArmTrigPoint.h:87
BmnArmTrigPoint::GetLengthtrack
Double_t GetLengthtrack() const
Definition
BmnArmTrigPoint.h:75
BmnArmTrigPoint::GetPdgId
Double_t GetPdgId()
Definition
BmnArmTrigPoint.h:69
BmnArmTrigPoint::Print
virtual void Print(const Option_t *opt) const
Output to screen.
Definition
BmnArmTrigPoint.cxx:78
BmnArmTrigPoint::MomentumOut
void MomentumOut(TVector3 &mom)
Definition
BmnArmTrigPoint.h:83
FairMCPoint
TVector3
TVector3::SetXYZ
void SetXYZ(Double_t x, Double_t y, Double_t z)
std
Definition
json.hpp:4446
detectors
armTriggers
BmnArmTrigPoint.h
Generated on
for BmnRoot by
1.17.0