Project
Loading...
Searching...
No Matches
FairMCEventHeader.cxx
Go to the documentation of this file.
1/********************************************************************************
2 * Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
3 * *
4 * This software is distributed under the terms of the *
5 * GNU Lesser General Public Licence (LGPL) version 3, *
6 * copied verbatim in the file "LICENSE" *
7 ********************************************************************************/
8
9// ------------------------------------------------------------------------
10// ----- FairMCEventHeader source file -----
11// ----- -----
12// ----- Created 08/12/05 V. Friese -----
13// ------------------------------------------------------------------------
14
15#include "FairMCEventHeader.h"
16
17#include "FairRootManager.h"
18
20 : TNamed("MCEvent", "MC")
21 , fRunId(0)
22 , fEventId(-1)
23 , fX(0.)
24 , fY(0.)
25 , fZ(0.)
26 , fT(0.)
27 , fB(0.)
28 , fNPrim(0)
29 , fIsSet(kFALSE)
30 , fRotX(0.)
31 , fRotY(0.)
32 , fRotZ(0.)
33{}
34
36 : TNamed("MCEvent", "MC")
37 , fRunId(runId)
38 , fEventId(-1)
39 , fX(0.)
40 , fY(0.)
41 , fZ(0.)
42 , fT(0.)
43 , fB(0.)
44 , fNPrim(0)
45 , fIsSet(kFALSE)
46 , fRotX(0.)
47 , fRotY(0.)
48 , fRotZ(0.)
49{}
50
52 Double_t x,
53 Double_t y,
54 Double_t z,
55 Double_t t,
56 Double_t b,
57 Int_t nPrim)
58 : TNamed("MCEvent", "MC")
59 , fRunId(0)
60 , fEventId(iEvent)
61 , fX(x)
62 , fY(y)
63 , fZ(z)
64 , fT(t)
65 , fB(b)
66 , fNPrim(nPrim)
67 , fIsSet(kFALSE)
68 , fRotX(0.)
69 , fRotY(0.)
70 , fRotZ(0.)
71{}
72
74
76{
77 fEventId = -1;
78 fNPrim = 0;
79 fX = fY = fZ = fT = fB = 0.;
80 fIsSet = kFALSE;
81 fRotX = fRotY = fRotZ = 0.;
82}
83
85{
86 // Dot at the end of the name is needed for splitting!!
87 FairRootManager::Instance()->Register("MCEventHeader.", "Event", this, kTRUE);
88}
89
ClassImp(FairMCEventHeader)
Double32_t fRotY
Rotation around x-axis (beam tilt) [rad].
Double32_t fB
Event time [s].
Double32_t fX
Event identifier.
Double32_t fZ
Primary vertex y [cm].
Int_t fNPrim
Impact parameter [fm] (if relevant)
Bool_t fIsSet
Number of input tracks.
Double32_t fT
Primary vertex z [cm].
virtual void Register()
Double32_t fRotZ
Rotation around y-axis (beam tilt) [rad].
UInt_t fEventId
Run identifier.
Double32_t fRotX
Flag whether variables are filled.
Double32_t fY
Primary vertex x [cm].
void Register(const char *name, const char *Foldername, TNamed *obj, Bool_t toFile)
static FairRootManager * Instance()
GLint GLenum GLint x
Definition glcorearb.h:403
GLboolean GLboolean GLboolean b
Definition glcorearb.h:1233
GLint y
Definition glcorearb.h:270
GLdouble GLdouble GLdouble z
Definition glcorearb.h:843