BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
Loading...
Searching...
No Matches
BmnVSPPoint.h
Go to the documentation of this file.
1
#ifndef BMNVSPPOINT_H
2
#define BMNVSPPOINT_H
3
4
#include "FairMCPoint.h"
5
6
class
BmnVSPPoint
:
public
FairMCPoint
7
{
8
public
:
9
/** Constructor with arguments
10
*@param trackID Index of MCTrack
11
*@param detID Detector ID
12
*@param posIn Coordinates at entrance to active volume [cm]
13
*@param posOut Coordinates at exit of active volume [cm]
14
*@param momIn Momentum of track at entrance [GeV]
15
*@param momOut Momentum of track at exit [GeV]
16
*@param tof Time since event start [ns]
17
*@param length Track length since creation [cm]
18
*@param eLoss Energy deposit [GeV]
19
**/
20
BmnVSPPoint
(
Int_t
trackID,
21
Int_t
detID,
22
TVector3
posIn,
23
TVector3
posOut,
24
TVector3
momIn,
25
TVector3
momOut,
26
Double_t
tof,
27
Double_t
length,
28
Double_t
eLoss,
29
Int_t
isPrimary,
30
Double_t
charge,
31
Int_t
pdgId);
32
BmnVSPPoint
(
const
BmnVSPPoint
& point) { *
this
= point; };
33
BmnVSPPoint
();
34
35
virtual
~BmnVSPPoint
();
36
37
/** Accessors **/
38
Double_t
GetXIn
()
const
{
return
fX; }
39
Double_t
GetYIn
()
const
{
return
fY; }
40
Double_t
GetZIn
()
const
{
return
fZ; }
41
Double_t
GetXOut
()
const
{
return
fX_out
; }
42
Double_t
GetYOut
()
const
{
return
fY_out
; }
43
Double_t
GetZOut
()
const
{
return
fZ_out
; }
44
Double_t
GetPxOut
()
const
{
return
fPx_out
; }
45
Double_t
GetPyOut
()
const
{
return
fPy_out
; }
46
Double_t
GetPzOut
()
const
{
return
fPz_out
; }
47
void
PositionIn
(
TVector3
& pos) { pos.
SetXYZ
(fX, fY, fZ); }
48
void
PositionOut
(
TVector3
& pos) { pos.
SetXYZ
(
fX_out
,
fY_out
,
fZ_out
); }
49
void
MomentumIn
(
TVector3
& mom) { mom.
SetXYZ
(fPx, fPy, fPz); }
50
void
MomentumOut
(
TVector3
& mom) { mom.
SetXYZ
(
fPx_out
,
fPy_out
,
fPz_out
); }
51
52
Int_t
GetIsPrimary
() {
return
fIsPrimary
; }
53
Double_t
GetCharge
() {
return
fCharge
; }
54
Double_t
GetPdgId
() {
return
fPdgId
; }
55
56
Int_t
GetStation
() {
return
fStation
; }
57
Int_t
GetModule
() {
return
fModule
; }
58
59
void
SetStation
(
Int_t
station_num) {
fStation
= station_num; }
60
void
SetModule
(
Int_t
module_num) {
fModule
= module_num; }
61
62
// Output to screen
63
virtual
void
Print
(
const
Option_t
* opt)
const
;
64
65
protected
:
66
Int_t
fIsPrimary
;
67
Double_t
fCharge
;
68
Int_t
fPdgId
;
69
70
Double_t
fX_out
,
fY_out
,
fZ_out
;
71
Double_t
fPx_out
,
fPy_out
,
fPz_out
;
72
73
Int_t
fStation
;
74
Int_t
fModule
;
75
76
ClassDef
(
BmnVSPPoint
, 1)
77
};
78
79
#endif
/* BMNVSPPOINT_H */
Int_t
int Int_t
Double_t
double Double_t
Option_t
const char Option_t
ClassDef
#define ClassDef(name, id)
BmnVSPPoint
Definition
BmnVSPPoint.h:7
BmnVSPPoint::fY_out
Double_t fY_out
Definition
BmnVSPPoint.h:70
BmnVSPPoint::SetModule
void SetModule(Int_t module_num)
Definition
BmnVSPPoint.h:60
BmnVSPPoint::fIsPrimary
Int_t fIsPrimary
Definition
BmnVSPPoint.h:66
BmnVSPPoint::fZ_out
Double_t fZ_out
Definition
BmnVSPPoint.h:70
BmnVSPPoint::GetZOut
Double_t GetZOut() const
Definition
BmnVSPPoint.h:43
BmnVSPPoint::fPdgId
Int_t fPdgId
Definition
BmnVSPPoint.h:68
BmnVSPPoint::fCharge
Double_t fCharge
Definition
BmnVSPPoint.h:67
BmnVSPPoint::~BmnVSPPoint
virtual ~BmnVSPPoint()
BmnVSPPoint::GetModule
Int_t GetModule()
Definition
BmnVSPPoint.h:57
BmnVSPPoint::GetPzOut
Double_t GetPzOut() const
Definition
BmnVSPPoint.h:46
BmnVSPPoint::fX_out
Double_t fX_out
Definition
BmnVSPPoint.h:70
BmnVSPPoint::GetZIn
Double_t GetZIn() const
Definition
BmnVSPPoint.h:40
BmnVSPPoint::BmnVSPPoint
BmnVSPPoint()
BmnVSPPoint::SetStation
void SetStation(Int_t station_num)
Definition
BmnVSPPoint.h:59
BmnVSPPoint::fStation
Int_t fStation
Definition
BmnVSPPoint.h:73
BmnVSPPoint::PositionOut
void PositionOut(TVector3 &pos)
Definition
BmnVSPPoint.h:48
BmnVSPPoint::PositionIn
void PositionIn(TVector3 &pos)
Definition
BmnVSPPoint.h:47
BmnVSPPoint::BmnVSPPoint
BmnVSPPoint(const BmnVSPPoint &point)
Definition
BmnVSPPoint.h:32
BmnVSPPoint::fModule
Int_t fModule
Definition
BmnVSPPoint.h:74
BmnVSPPoint::GetIsPrimary
Int_t GetIsPrimary()
Definition
BmnVSPPoint.h:52
BmnVSPPoint::GetPxOut
Double_t GetPxOut() const
Definition
BmnVSPPoint.h:44
BmnVSPPoint::GetPdgId
Double_t GetPdgId()
Definition
BmnVSPPoint.h:54
BmnVSPPoint::GetXOut
Double_t GetXOut() const
Definition
BmnVSPPoint.h:41
BmnVSPPoint::GetCharge
Double_t GetCharge()
Definition
BmnVSPPoint.h:53
BmnVSPPoint::fPx_out
Double_t fPx_out
Definition
BmnVSPPoint.h:71
BmnVSPPoint::Print
virtual void Print(const Option_t *opt) const
BmnVSPPoint::GetXIn
Double_t GetXIn() const
Accessors.
Definition
BmnVSPPoint.h:38
BmnVSPPoint::GetStation
Int_t GetStation()
Definition
BmnVSPPoint.h:56
BmnVSPPoint::MomentumOut
void MomentumOut(TVector3 &mom)
Definition
BmnVSPPoint.h:50
BmnVSPPoint::GetPyOut
Double_t GetPyOut() const
Definition
BmnVSPPoint.h:45
BmnVSPPoint::BmnVSPPoint
BmnVSPPoint(Int_t trackID, Int_t detID, 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)
Constructor with arguments.
BmnVSPPoint::fPz_out
Double_t fPz_out
Definition
BmnVSPPoint.h:71
BmnVSPPoint::fPy_out
Double_t fPy_out
Definition
BmnVSPPoint.h:71
BmnVSPPoint::MomentumIn
void MomentumIn(TVector3 &mom)
Definition
BmnVSPPoint.h:49
BmnVSPPoint::GetYOut
Double_t GetYOut() const
Definition
BmnVSPPoint.h:42
BmnVSPPoint::GetYIn
Double_t GetYIn() const
Definition
BmnVSPPoint.h:39
FairMCPoint
TVector3
TVector3::SetXYZ
void SetXYZ(Double_t x, Double_t y, Double_t z)
install
include
BmnVSPPoint.h
Generated on
for BmnRoot by
1.17.0