BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
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
11class BmnMCInfoDst : public TNamed
12{
13 public:
14 /** Default constructor **/
16 /** Destructor **/
18 /** Copy constructor **/
19 BmnMCInfoDst(const BmnMCInfoDst& other);
20 /** Copy assignment operator **/
21 BmnMCInfoDst& operator=(const BmnMCInfoDst& other);
22 /** Move constructor **/
24 /** Move assignment operator **/
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
54
55 void Reset();
56
58};
59
60#endif
double Double32_t
double Double_t
#define ClassDef(name, id)
void SetB(Double_t b)
Modifiers.
Double_t GetX() const
impact parameter [fm]
BmnMCInfoDst & operator=(const BmnMCInfoDst &other)
Copy assignment operator.
Double_t GetRotY() const
rot. around x-axis [rad]
Double_t GetRotX() const
vertex z [cm]
Double32_t fY
Primary vertex x [cm].
Double32_t fRotZ
Rotation around y-axis (beam tilt) [rad].
TClonesArray * GetMCTracks() const
rot. around z-axis [rad]
Double32_t fB
void SetRotX(Double_t rotx)
void SetRotZ(Double_t rotz)
BmnMCInfoDst()
Default constructor.
Double32_t fRotY
Rotation around x-axis (beam tilt) [rad].
Double_t GetZ() const
vertex y [cm]
Double_t GetY() const
vertex x [cm]
void SetVertex(Double_t x, Double_t y, Double_t z)
void SetRotY(Double_t roty)
Double32_t fZ
Primary vertex y [cm].
Double_t GetB() const
Accessors.
Double_t GetRotZ() const
rot. around y-axis [rad]
Double32_t fRotX
Primary vertex z [cm].
TClonesArray * fMCTracks
Rotation around z-axis (event plane) [rad].
~BmnMCInfoDst()
Destructor.
Double32_t fX
Impact parameter [fm] (if relevant).
friend friend class TClonesArray