FairRoot
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
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
19
FairMCEventHeader::FairMCEventHeader
()
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
35
FairMCEventHeader::FairMCEventHeader
(UInt_t runId)
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
51
FairMCEventHeader::FairMCEventHeader
(Int_t iEvent,
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
73
FairMCEventHeader::~FairMCEventHeader
() {}
74
75
void
FairMCEventHeader::Reset
()
76
{
77
fEventId
= -1;
78
fNPrim
= 0;
79
fX
=
fY
=
fZ
=
fT
=
fB
= 0.;
80
fIsSet
= kFALSE;
81
fRotX
=
fRotY
=
fRotZ
= 0.;
82
}
83
84
void
FairMCEventHeader::Register
()
85
{
86
// Dot at the end of the name is needed for splitting!!
87
FairRootManager::Instance
()->
Register
(
"MCEventHeader."
,
"Event"
,
this
, kTRUE);
88
}
89
90
ClassImp
(
FairMCEventHeader
);
FairMCEventHeader::fRotY
Double32_t fRotY
Rotation around x-axis (beam tilt) [rad].
Definition:
FairMCEventHeader.h:89
FairRootManager.h
FairMCEventHeader::fY
Double32_t fY
Primary vertex x [cm].
Definition:
FairMCEventHeader.h:82
FairMCEventHeader::fRotX
Double32_t fRotX
Flag whether variables are filled.
Definition:
FairMCEventHeader.h:88
FairMCEventHeader::fIsSet
Bool_t fIsSet
Number of input tracks.
Definition:
FairMCEventHeader.h:87
FairMCEventHeader::fRotZ
Double32_t fRotZ
Rotation around y-axis (beam tilt) [rad].
Definition:
FairMCEventHeader.h:90
FairMCEventHeader::FairMCEventHeader
FairMCEventHeader()
Definition:
FairMCEventHeader.cxx:19
FairMCEventHeader::fZ
Double32_t fZ
Primary vertex y [cm].
Definition:
FairMCEventHeader.h:83
FairRootManager::Instance
static FairRootManager * Instance()
Definition:
FairRootManager.cxx:69
ClassImp
ClassImp(FairEventBuilder)
FairMCEventHeader::Reset
void Reset()
Definition:
FairMCEventHeader.cxx:75
fZ
Double_t fZ
Definition:
FairBoxSetDraw.cxx:30
FairMCEventHeader::Register
virtual void Register()
Definition:
FairMCEventHeader.cxx:84
FairMCEventHeader
Definition:
FairMCEventHeader.h:21
FairMCEventHeader::fX
Double32_t fX
Event identifier.
Definition:
FairMCEventHeader.h:81
fY
Double_t fY
Definition:
FairBoxSetDraw.cxx:30
FairRootManager::Register
void Register(const char *name, const char *Foldername, TNamed *obj, Bool_t toFile)
Definition:
FairRootManager.cxx:222
FairMCEventHeader.h
fX
Double_t fX
Definition:
FairBoxSetDraw.cxx:30
FairMCEventHeader::fEventId
UInt_t fEventId
Run identifier.
Definition:
FairMCEventHeader.h:80
FairMCEventHeader::fB
Double32_t fB
Event time [s].
Definition:
FairMCEventHeader.h:85
FairMCEventHeader::fT
Double32_t fT
Primary vertex z [cm].
Definition:
FairMCEventHeader.h:84
FairMCEventHeader::~FairMCEventHeader
virtual ~FairMCEventHeader()
Definition:
FairMCEventHeader.cxx:73
FairMCEventHeader::fNPrim
Int_t fNPrim
Impact parameter [fm] (if relevant)
Definition:
FairMCEventHeader.h:86
FairRoot
base
event
FairMCEventHeader.cxx
Generated on Mon Mar 8 2021 12:14:05 for FairRoot by
1.8.5