BmnRoot
Loading...
Searching...
No Matches
MpdMCEventHeader.cxx
Go to the documentation of this file.
1
7#include "MpdMCEventHeader.h"
8#include "FairRootManager.h"
9
10#include <iostream>
11using std::cout;
12using std::endl;
13
14// ----- Default constructor ---------------------------------------
16 : FairMCEventHeader(),
17 fPhi (0.)
18{
19}
20// ----- Constructor with run identifier ---------------------------
22 : FairMCEventHeader(runId),
23 fPhi (0.)
24{
25}
26// ----- Standard constructor --------------------------------------
27MpdMCEventHeader::MpdMCEventHeader(UInt_t runId, Int_t iEvent,
28 Double_t x, Double_t y, Double_t z, Double_t t,
29 Double_t b, Double_t phi, Int_t nPrim)
30 : FairMCEventHeader(iEvent, x, y, z, t, b, nPrim),
31 fPhi(phi)
32{
33}
34// ----- Destructor ------------------------------------------------
36// ---------------------------------------------------------------------
37
38
39// ----- Public method Reset ---------------------------------------
41{
42 FairMCEventHeader::Reset();
43 fPhi = 0.;
44}
45// ---------------------------------------------------------------------
46
48{
49 cout <<"Register MpdMCEventHeader."<<endl;
50 FairRootManager::Instance()->Register("MCEventHeader.", "Event", this , kTRUE);
51}
52// ---------------------------------------------------------------------
virtual void Register()
virtual void Reset()