BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
Loading...
Searching...
No Matches
CbmMvdPoint.h
Go to the documentation of this file.
1
// -------------------------------------------------------------------------
2
// ----- CbmMvdPoint header file -----
3
// ----- Created 06/11/06 by V. Friese -----
4
// -------------------------------------------------------------------------
5
6
/** CbmMvdPoint.h
7
*@author V.Friese <v.friese@gsi.de>
8
*
9
* Data class for interception of MC track with a MVD detetcor station.
10
* Holds in addition to the base class the coordinates and momentum at the
11
* exit from the active volume.
12
*
13
* Data level MC
14
**/
15
16
#ifndef CBMMVDPOINT_H
17
#define CBMMVDPOINT_H 1
18
19
#include "
CbmMvdDetectorId.h
"
20
#include "FairMCPoint.h"
21
#include "
TObject.h
"
22
#include "
TVector3.h
"
23
24
class
CbmMvdPoint
25
:
public
FairMCPoint
26
,
CbmMvdDetectorId
27
{
28
29
public
:
30
/** Default constructor **/
31
CbmMvdPoint
();
32
33
/** Constructor with arguments
34
*@param trackId Index of MCTrack
35
*@param pdgCode Particle type (PDG code)
36
*@param detId Unique detector ID (contains the station number)
37
*@param posIn Coordinates at entrance to active volume [cm]
38
*@param posOut Coordinates at exit of active volume [cm]
39
*@param momIn Momentum of track at entrance [GeV]
40
*@param momOut Momentum of track at exit [GeV]
41
*@param tof Time since event start [ns]
42
*@param length Track length since creation [cm]
43
*@param eLoss Energy deposit [GeV]
44
**/
45
CbmMvdPoint
(
Int_t
trackId,
46
Int_t
pdgCode,
47
Int_t
detId,
48
TVector3
posIn,
49
TVector3
posOut,
50
TVector3
momIn,
51
TVector3
momOut,
52
Double_t
tof,
53
Double_t
length,
54
Double_t
eLoss);
55
56
/** Copy constructor **/
57
// CbmMvdPoint(const CbmMvdPoint& point) { *this = point; };
58
59
/** Destructor **/
60
virtual
~CbmMvdPoint
();
61
62
/** Accessors **/
63
Double_t
GetXOut
()
const
{
return
fX_out
; }
64
Double_t
GetYOut
()
const
{
return
fY_out
; }
65
Double_t
GetZOut
()
const
{
return
fZ_out
; }
66
Double_t
GetPxOut
()
const
{
return
fPx_out
; }
67
Double_t
GetPyOut
()
const
{
return
fPy_out
; }
68
Double_t
GetPzOut
()
const
{
return
fPz_out
; }
69
Int_t
GetPdgCode
()
const
{
return
fPdgCode
; }
70
Int_t
GetSystemId
()
const
{
return
SystemId
(fDetectorID); }
71
Int_t
GetStationNr
()
const
{
return
StationNr
(fDetectorID); }
72
Int_t
GetPointId
()
const
{
return
fPointId
; }
// Returns index of this object in its TClonesArray.
73
// By default not filled. Used internally in the MvdDigitizer.
74
void
PositionOut
(
TVector3
& pos) { pos.
SetXYZ
(
fX_out
,
fY_out
,
fZ_out
); }
75
void
MomentumOut
(
TVector3
& mom) { mom.
SetXYZ
(
fPx_out
,
fPy_out
,
fPz_out
); }
76
77
/** Modifiers **/
78
void
SetPositionOut
(
TVector3
pos);
79
void
SetMomentumOut
(
TVector3
mom);
80
void
SetPdgCode
(
Int_t
pdg) {
fPdgCode
= pdg; }
81
void
SetPointId
(
Int_t
myId) {
fPointId
= myId; }
82
83
/** Output to screen **/
84
virtual
void
Print
(
const
Option_t
* opt)
const
;
85
86
protected
:
87
Double32_t
fX_out
,
fY_out
,
fZ_out
;
88
Double32_t
fPx_out
,
fPy_out
,
fPz_out
;
89
Int_t
fPdgCode
;
// index of the object in its TClonesArray. By default not filled => -1.
90
Int_t
fPointId
;
// index of the object in its TClonesArray. By default not filled => -1.
91
92
ClassDef
(
CbmMvdPoint
, 1)
93
};
94
95
inline
void
CbmMvdPoint::SetPositionOut
(
TVector3
pos)
96
{
97
fX_out
= pos.
X
();
98
fY_out
= pos.
Y
();
99
fZ_out
= pos.
Z
();
100
}
101
102
inline
void
CbmMvdPoint::SetMomentumOut
(
TVector3
mom)
103
{
104
fPx_out
= mom.
Px
();
105
fPy_out
= mom.
Py
();
106
fPz_out
= mom.
Pz
();
107
}
108
109
#endif
Int_t
int Int_t
Double32_t
double Double32_t
Double_t
double Double_t
Option_t
const char Option_t
ClassDef
#define ClassDef(name, id)
TObject.h
TVector3.h
CbmMvdDetectorId
Definition
CbmMvdDetectorId.h:24
CbmMvdDetectorId::StationNr
Int_t StationNr(Int_t detectorId) const
Get station number from detector ID.
Definition
CbmMvdDetectorId.h:48
CbmMvdDetectorId::SystemId
Int_t SystemId(Int_t detectorId) const
Get System identifier from detector ID.
Definition
CbmMvdDetectorId.h:36
CbmMvdPoint
CbmMvdPoint.h.
Definition
CbmMvdPoint.h:27
CbmMvdPoint::Print
virtual void Print(const Option_t *opt) const
Output to screen.
CbmMvdPoint::GetStationNr
Int_t GetStationNr() const
Definition
CbmMvdPoint.h:71
CbmMvdPoint::fY_out
Double32_t fY_out
Definition
CbmMvdPoint.h:87
CbmMvdPoint::GetSystemId
Int_t GetSystemId() const
Definition
CbmMvdPoint.h:70
CbmMvdPoint::fPointId
Int_t fPointId
Definition
CbmMvdPoint.h:90
CbmMvdPoint::SetPointId
void SetPointId(Int_t myId)
Definition
CbmMvdPoint.h:81
CbmMvdPoint::~CbmMvdPoint
virtual ~CbmMvdPoint()
Copy constructor.
CbmMvdPoint::GetYOut
Double_t GetYOut() const
Definition
CbmMvdPoint.h:64
CbmMvdPoint::GetPzOut
Double_t GetPzOut() const
Definition
CbmMvdPoint.h:68
CbmMvdPoint::MomentumOut
void MomentumOut(TVector3 &mom)
Definition
CbmMvdPoint.h:75
CbmMvdPoint::fPy_out
Double32_t fPy_out
Definition
CbmMvdPoint.h:88
CbmMvdPoint::GetPdgCode
Int_t GetPdgCode() const
Definition
CbmMvdPoint.h:69
CbmMvdPoint::SetPositionOut
void SetPositionOut(TVector3 pos)
Modifiers.
CbmMvdPoint::fPdgCode
Int_t fPdgCode
Definition
CbmMvdPoint.h:89
CbmMvdPoint::SetPdgCode
void SetPdgCode(Int_t pdg)
Definition
CbmMvdPoint.h:80
CbmMvdPoint::fPx_out
Double32_t fPx_out
Definition
CbmMvdPoint.h:88
CbmMvdPoint::GetPyOut
Double_t GetPyOut() const
Definition
CbmMvdPoint.h:67
CbmMvdPoint::GetPxOut
Double_t GetPxOut() const
Definition
CbmMvdPoint.h:66
CbmMvdPoint::fZ_out
Double32_t fZ_out
Definition
CbmMvdPoint.h:87
CbmMvdPoint::GetPointId
Int_t GetPointId() const
Definition
CbmMvdPoint.h:72
CbmMvdPoint::fPz_out
Double32_t fPz_out
Definition
CbmMvdPoint.h:88
CbmMvdPoint::CbmMvdPoint
CbmMvdPoint()
Default constructor.
CbmMvdPoint::PositionOut
void PositionOut(TVector3 &pos)
Definition
CbmMvdPoint.h:74
CbmMvdPoint::fX_out
Double32_t fX_out
Definition
CbmMvdPoint.h:87
CbmMvdPoint::GetZOut
Double_t GetZOut() const
Definition
CbmMvdPoint.h:65
CbmMvdPoint::CbmMvdPoint
CbmMvdPoint(Int_t trackId, Int_t pdgCode, Int_t detId, TVector3 posIn, TVector3 posOut, TVector3 momIn, TVector3 momOut, Double_t tof, Double_t length, Double_t eLoss)
Constructor with arguments.
CbmMvdPoint::GetXOut
Double_t GetXOut() const
Accessors.
Definition
CbmMvdPoint.h:63
CbmMvdPoint::SetMomentumOut
void SetMomentumOut(TVector3 mom)
FairMCPoint
TVector3
TVector3::Z
Double_t Z() const
TVector3::SetXYZ
void SetXYZ(Double_t x, Double_t y, Double_t z)
TVector3::Px
Double_t Px() const
TVector3::Y
Double_t Y() const
TVector3::Py
Double_t Py() const
TVector3::X
Double_t X() const
TVector3::Pz
Double_t Pz() const
CbmMvdDetectorId.h
install
include
CbmMvdPoint.h
Generated on
for BmnRoot by
1.17.0