BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
MpdMCEventHeader.cxx
Go to the documentation of this file.
1/** MpdMCEventHeader.cxx
2 * @author V.Voronyuk, origin: CBMRoot
3 ** Data class (level MC) containing information about the input event.
4 **/
5
6#include "MpdMCEventHeader.h"
7
8#include "FairRootManager.h"
9
10#include <iostream>
11using std::cout;
12using std::endl;
13
14// ----- Default constructor ---------------------------------------
19// ----- Constructor with run identifier ---------------------------
24// ----- Standard constructor --------------------------------------
26 Int_t iEvent,
27 Double_t x,
28 Double_t y,
29 Double_t z,
30 Double_t t,
31 Double_t b,
32 Double_t phi,
33 Int_t nPrim)
34 : FairMCEventHeader(iEvent, x, y, z, t, b, nPrim)
35 , fPhi(phi)
36{}
37// ----- Destructor ------------------------------------------------
39// ---------------------------------------------------------------------
40
41// ----- Public method Reset ---------------------------------------
43{
44 FairMCEventHeader::Reset();
45 fPhi = 0.;
46}
47// ---------------------------------------------------------------------
48
50{
51 cout << "Register MpdMCEventHeader." << endl;
52 FairRootManager::Instance()->Register("MCEventHeader.", "Event", this, kTRUE);
53}
54// ---------------------------------------------------------------------
int Int_t
unsigned int UInt_t
double Double_t
constexpr Bool_t kTRUE
virtual void Register()
Register the class as data branch to the poutput.
virtual void Reset()
Reset all members.
virtual ~MpdMCEventHeader()
Destructor.
MpdMCEventHeader()
Default constructor.