BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
Loading...
Searching...
No Matches
BmnSiMDPoint.h
Go to the documentation of this file.
1
// ------------------------------------------------------------------------
2
// ----- BmnFdPoint header file -----
3
// ------------------------------------------------------------------------
4
5
#ifndef BMNSiMDPOINT_H
6
#define BMNSiMDPOINT_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
BmnSiMDPoint
:
public
FairMCPoint
19
{
20
21
public
:
22
/** Default constructor **/
23
BmnSiMDPoint
();
24
25
/** Constructor with arguments
26
*@param trackID Index of MCTrack
27
*@param detID Detector ID (at present, volume MC number)
28
*@param copyNo Number of active layer inside SiMD module
29
*@param posIn Coordinates at entrance to active volume [cm]
30
*@param posOut Coordinates at exit of active volume [cm]
31
*@param momIn Momentum of track at entrance [GeV]
32
*@param momOut Momentum of track at exit [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
BmnSiMDPoint
(
Int_t
trackID,
39
Int_t
detID,
40
Int_t
copyNo,
41
TVector3
posIn,
42
TVector3
posOut,
43
TVector3
momIn,
44
TVector3
momOut,
45
Double_t
tof,
46
Double_t
length,
47
Double_t
eLoss,
48
Int_t
isPrimary,
49
Double_t
charge,
50
Int_t
pdgId,
51
Double_t
timeIn,
52
Double_t
timeOut,
53
Double_t
lengthtrack);
54
// UInt_t EventId,
55
/** Copy constructor **/
56
BmnSiMDPoint
(
const
BmnSiMDPoint
& point) { *
this
= point; };
57
58
/** Destructor **/
59
virtual
~BmnSiMDPoint
();
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
Double_t
GetCharge
() {
return
fCharge
; }
67
Double_t
GetPdgId
() {
return
fPdgId
; }
68
Double_t
GetTimeIn
()
const
{
return
fTimeIn
; }
69
Double_t
GetTimeOut
()
const
{
return
fTimeOut
; }
70
Double_t
GetLengthtrack
()
const
{
return
fLengthtrack
; }
71
72
Double_t
GetPxOut
()
const
{
return
fPxOut
; }
73
Double_t
GetPyOut
()
const
{
return
fPyOut
; }
74
Double_t
GetPzOut
()
const
{
return
fPzOut
; }
75
76
void
MomentumOut
(
TVector3
& mom) { mom.
SetXYZ
(
fPxOut
,
fPyOut
,
fPzOut
); }
77
78
Double_t
GetXOut
()
const
{
return
fXOut
; }
79
Double_t
GetYOut
()
const
{
return
fYOut
; }
80
Double_t
GetZOut
()
const
{
return
fZOut
; }
81
82
void
PositionOut
(
TVector3
& pos) { pos.
SetXYZ
(
fXOut
,
fYOut
,
fZOut
); }
83
84
// ---------------------------------------------------------
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
Double_t
fTimeIn
;
116
Double_t
fTimeOut
;
117
Double_t
fLengthtrack
;
118
119
ClassDef
(
BmnSiMDPoint
, 5)
120
// 4
121
};
122
123
#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
BmnSiMDPoint
Definition
BmnSiMDPoint.h:19
BmnSiMDPoint::GetYOut
Double_t GetYOut() const
Definition
BmnSiMDPoint.h:79
BmnSiMDPoint::fPdgId
Int_t fPdgId
Definition
BmnSiMDPoint.h:114
BmnSiMDPoint::fYOut
Double_t fYOut
Definition
BmnSiMDPoint.h:106
BmnSiMDPoint::GetLengthtrack
Double_t GetLengthtrack() const
Definition
BmnSiMDPoint.h:70
BmnSiMDPoint::GetCharge
Double_t GetCharge()
Definition
BmnSiMDPoint.h:66
BmnSiMDPoint::GetCopy
Short_t GetCopy() const
Accessors.
Definition
BmnSiMDPoint.h:62
BmnSiMDPoint::fZOut
Double_t fZOut
Definition
BmnSiMDPoint.h:106
BmnSiMDPoint::BmnSiMDPoint
BmnSiMDPoint(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 timeIn, Double_t timeOut, Double_t lengthtrack)
Constructor with arguments.
BmnSiMDPoint::GetPdgId
Double_t GetPdgId()
Definition
BmnSiMDPoint.h:67
BmnSiMDPoint::PositionOut
void PositionOut(TVector3 &pos)
Definition
BmnSiMDPoint.h:82
BmnSiMDPoint::GetZOut
Double_t GetZOut() const
Definition
BmnSiMDPoint.h:80
BmnSiMDPoint::fPxOut
Double_t fPxOut
Definition
BmnSiMDPoint.h:107
BmnSiMDPoint::nCopy
Short_t nCopy
Definition
BmnSiMDPoint.h:109
BmnSiMDPoint::GetPyOut
Double_t GetPyOut() const
Definition
BmnSiMDPoint.h:73
BmnSiMDPoint::fPyOut
Double_t fPyOut
Definition
BmnSiMDPoint.h:107
BmnSiMDPoint::GetTimeIn
Double_t GetTimeIn() const
Definition
BmnSiMDPoint.h:68
BmnSiMDPoint::SetCopy
void SetCopy(Short_t i)
Modifiers.
Definition
BmnSiMDPoint.h:97
BmnSiMDPoint::fIsPrimary
Int_t fIsPrimary
Definition
BmnSiMDPoint.h:112
BmnSiMDPoint::GetTimeOut
Double_t GetTimeOut() const
Definition
BmnSiMDPoint.h:69
BmnSiMDPoint::fLengthtrack
Double_t fLengthtrack
Definition
BmnSiMDPoint.h:117
BmnSiMDPoint::fXOut
Double_t fXOut
Definition
BmnSiMDPoint.h:106
BmnSiMDPoint::GetPxOut
Double_t GetPxOut() const
Definition
BmnSiMDPoint.h:72
BmnSiMDPoint::BmnSiMDPoint
BmnSiMDPoint()
Default constructor.
BmnSiMDPoint::Print
virtual void Print(const Option_t *opt) const
Output to screen.
BmnSiMDPoint::fTimeOut
Double_t fTimeOut
Definition
BmnSiMDPoint.h:116
BmnSiMDPoint::~BmnSiMDPoint
virtual ~BmnSiMDPoint()
Destructor.
BmnSiMDPoint::MomentumOut
void MomentumOut(TVector3 &mom)
Definition
BmnSiMDPoint.h:76
BmnSiMDPoint::GetPzOut
Double_t GetPzOut() const
Definition
BmnSiMDPoint.h:74
BmnSiMDPoint::fCharge
Double_t fCharge
Definition
BmnSiMDPoint.h:113
BmnSiMDPoint::GetXOut
Double_t GetXOut() const
Definition
BmnSiMDPoint.h:78
BmnSiMDPoint::GetIsPrimary
Int_t GetIsPrimary()
Definition
BmnSiMDPoint.h:65
BmnSiMDPoint::BmnSiMDPoint
BmnSiMDPoint(const BmnSiMDPoint &point)
Copy constructor.
Definition
BmnSiMDPoint.h:56
BmnSiMDPoint::fPzOut
Double_t fPzOut
Definition
BmnSiMDPoint.h:107
BmnSiMDPoint::fTimeIn
Double_t fTimeIn
Definition
BmnSiMDPoint.h:115
FairMCPoint
TVector3
TVector3::SetXYZ
void SetXYZ(Double_t x, Double_t y, Double_t z)
std
Definition
json.hpp:4446
install
include
BmnSiMDPoint.h
Generated on
for BmnRoot by
1.17.0