BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
Loading...
Searching...
No Matches
BmnMCInfoDst.h
Go to the documentation of this file.
1
/********************************************************************************
2
* BmnMCInfoDst.h *
3
* Fill MC information from Simulation chain into DST chain *
4
*******************************************************************************/
5
#ifndef BMNMCINFODST_H
6
#define BMNMCINFODST_H
7
8
#include "
TClonesArray.h
"
9
#include "
TNamed.h
"
10
11
class
BmnMCInfoDst
:
public
TNamed
12
{
13
public
:
14
/** Default constructor **/
15
BmnMCInfoDst
();
16
/** Destructor **/
17
~BmnMCInfoDst
();
18
/** Copy constructor **/
19
BmnMCInfoDst
(
const
BmnMCInfoDst
& other);
20
/** Copy assignment operator **/
21
BmnMCInfoDst
&
operator=
(
const
BmnMCInfoDst
& other);
22
/** Move constructor **/
23
BmnMCInfoDst
(
BmnMCInfoDst
&& other);
24
/** Move assignment operator **/
25
BmnMCInfoDst
&
operator=
(
BmnMCInfoDst
&& other);
26
27
/** Accessors **/
28
Double_t
GetB
()
const
{
return
fB
; }
/// impact parameter [fm]
29
Double_t
GetX
()
const
{
return
fX
; }
/// vertex x [cm]
30
Double_t
GetY
()
const
{
return
fY
; }
/// vertex y [cm]
31
Double_t
GetZ
()
const
{
return
fZ
; }
/// vertex z [cm]
32
Double_t
GetRotX
()
const
{
return
fRotX
; }
/// rot. around x-axis [rad]
33
Double_t
GetRotY
()
const
{
return
fRotY
; }
/// rot. around y-axis [rad]
34
Double_t
GetRotZ
()
const
{
return
fRotZ
; }
/// rot. around z-axis [rad]
35
TClonesArray
*
GetMCTracks
()
const
{
return
fMCTracks
; }
36
37
/** Modifiers **/
38
void
SetB
(
Double_t
b) {
fB
= b; }
39
void
SetVertex
(
Double_t
x,
Double_t
y,
Double_t
z);
40
void
SetRotX
(
Double_t
rotx) {
fRotX
= rotx; }
41
void
SetRotY
(
Double_t
roty) {
fRotY
= roty; }
42
void
SetRotZ
(
Double_t
rotz) {
fRotZ
= rotz; }
43
44
private
:
45
Double32_t
fB
;
/// Impact parameter [fm] (if relevant)
46
Double32_t
fX
;
/// Primary vertex x [cm]
47
Double32_t
fY
;
/// Primary vertex y [cm]
48
Double32_t
fZ
;
/// Primary vertex z [cm]
49
Double32_t
fRotX
;
/// Rotation around x-axis (beam tilt) [rad]
50
Double32_t
fRotY
;
/// Rotation around y-axis (beam tilt) [rad]
51
Double32_t
fRotZ
;
/// Rotation around z-axis (event plane) [rad]
52
53
TClonesArray
*
fMCTracks
;
54
55
void
Reset
();
56
57
ClassDef
(
BmnMCInfoDst
, 1);
58
};
59
60
#endif
Double32_t
double Double32_t
Double_t
double Double_t
ClassDef
#define ClassDef(name, id)
TClonesArray.h
TNamed.h
BmnMCInfoDst::Reset
void Reset()
Definition
BmnMCInfoDst.cxx:104
BmnMCInfoDst::SetB
void SetB(Double_t b)
Modifiers.
Definition
BmnMCInfoDst.h:38
BmnMCInfoDst::GetX
Double_t GetX() const
impact parameter [fm]
Definition
BmnMCInfoDst.h:29
BmnMCInfoDst::operator=
BmnMCInfoDst & operator=(const BmnMCInfoDst &other)
Copy assignment operator.
Definition
BmnMCInfoDst.cxx:38
BmnMCInfoDst::GetRotY
Double_t GetRotY() const
rot. around x-axis [rad]
Definition
BmnMCInfoDst.h:33
BmnMCInfoDst::GetRotX
Double_t GetRotX() const
vertex z [cm]
Definition
BmnMCInfoDst.h:32
BmnMCInfoDst::fY
Double32_t fY
Primary vertex x [cm].
Definition
BmnMCInfoDst.h:47
BmnMCInfoDst::fRotZ
Double32_t fRotZ
Rotation around y-axis (beam tilt) [rad].
Definition
BmnMCInfoDst.h:51
BmnMCInfoDst::GetMCTracks
TClonesArray * GetMCTracks() const
rot. around z-axis [rad]
Definition
BmnMCInfoDst.h:35
BmnMCInfoDst::fB
Double32_t fB
Definition
BmnMCInfoDst.h:45
BmnMCInfoDst::SetRotX
void SetRotX(Double_t rotx)
Definition
BmnMCInfoDst.h:40
BmnMCInfoDst::SetRotZ
void SetRotZ(Double_t rotz)
Definition
BmnMCInfoDst.h:42
BmnMCInfoDst::BmnMCInfoDst
BmnMCInfoDst()
Default constructor.
Definition
BmnMCInfoDst.cxx:7
BmnMCInfoDst::fRotY
Double32_t fRotY
Rotation around x-axis (beam tilt) [rad].
Definition
BmnMCInfoDst.h:50
BmnMCInfoDst::GetZ
Double_t GetZ() const
vertex y [cm]
Definition
BmnMCInfoDst.h:31
BmnMCInfoDst::GetY
Double_t GetY() const
vertex x [cm]
Definition
BmnMCInfoDst.h:30
BmnMCInfoDst::SetVertex
void SetVertex(Double_t x, Double_t y, Double_t z)
Definition
BmnMCInfoDst.cxx:97
BmnMCInfoDst::SetRotY
void SetRotY(Double_t roty)
Definition
BmnMCInfoDst.h:41
BmnMCInfoDst::fZ
Double32_t fZ
Primary vertex y [cm].
Definition
BmnMCInfoDst.h:48
BmnMCInfoDst::GetB
Double_t GetB() const
Accessors.
Definition
BmnMCInfoDst.h:28
BmnMCInfoDst::GetRotZ
Double_t GetRotZ() const
rot. around y-axis [rad]
Definition
BmnMCInfoDst.h:34
BmnMCInfoDst::fRotX
Double32_t fRotX
Primary vertex z [cm].
Definition
BmnMCInfoDst.h:49
BmnMCInfoDst::fMCTracks
TClonesArray * fMCTracks
Rotation around z-axis (event plane) [rad].
Definition
BmnMCInfoDst.h:53
BmnMCInfoDst::~BmnMCInfoDst
~BmnMCInfoDst()
Destructor.
Definition
BmnMCInfoDst.cxx:113
BmnMCInfoDst::fX
Double32_t fX
Impact parameter [fm] (if relevant).
Definition
BmnMCInfoDst.h:46
TNamed::TNamed
TNamed()
TObject::TClonesArray
friend friend class TClonesArray
base
data
BmnMCInfoDst.h
Generated on
for BmnRoot by
1.17.0