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