EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FairMCEventHeader Class Reference

#include <EicRoot/blob/master/base/FairMCEventHeader.h>

+ Inheritance diagram for FairMCEventHeader:
+ Collaboration diagram for FairMCEventHeader:

Public Member Functions

 FairMCEventHeader ()
 
 FairMCEventHeader (Int_t iEvent, Double_t x, Double_t y, Double_t z, Double_t t, Double_t b, Int_t nPrim)
 
 FairMCEventHeader (UInt_t runId)
 
virtual ~FairMCEventHeader ()
 
UInt_t GetRunID () const
 
UInt_t GetEventID () const
 run identifier
 
Double_t GetX () const
 event identifier
 
Double_t GetY () const
 vertex x [cm]
 
Double_t GetZ () const
 vertex y [cm]
 
Double_t GetT () const
 vertex z [cm]
 
Double_t GetB () const
 event time [ns]
 
Int_t GetNPrim () const
 impact parameter [fm]
 
Bool_t IsSet () const
 number of input tracks
 
void GetVertex (TVector3 &vertex)
 Flag.
 
void SetEventID (UInt_t eventId)
 
void SetRunID (UInt_t runId)
 
void SetTime (Double_t t)
 
void SetB (Double_t b)
 
void SetNPrim (Int_t nPrim)
 
void MarkSet (Bool_t isSet)
 
void SetVertex (Double_t x, Double_t y, Double_t z)
 
void SetVertex (const TVector3 &vertex)
 
void Reset ()
 
virtual void Register ()
 

Protected Member Functions

 ClassDef (FairMCEventHeader, 1)
 Flag whether variables are filled.
 

Protected Attributes

UInt_t fRunId
 
UInt_t fEventId
 Run identifier.
 
Double32_t fX
 Event identifier.
 
Double32_t fY
 Primary vertex x [cm].
 
Double32_t fZ
 Primary vertex y [cm].
 
Double32_t fT
 Primary vertex z [cm].
 
Double32_t fB
 Event time [s].
 
Int_t fNPrim
 Impact parameter [fm] (if relevant)
 
Bool_t fIsSet
 Number of input tracks.
 

Detailed Description

FairMCEventHeader.h

Author
V.Friese v.fri.nosp@m.ese@.nosp@m.gsi.d.nosp@m.e Data class (level MC) containing information about the input event. 15.05.2008 change the event time to ns (M. Al-Turany)

Definition at line 16 of file FairMCEventHeader.h.

View newest version in sPHENIX GitHub at line 16 of file FairMCEventHeader.h

Constructor & Destructor Documentation

FairMCEventHeader::FairMCEventHeader ( )

Default constructor

Definition at line 13 of file FairMCEventHeader.cxx.

View newest version in sPHENIX GitHub at line 13 of file FairMCEventHeader.cxx

FairMCEventHeader::FairMCEventHeader ( Int_t  iEvent,
Double_t  x,
Double_t  y,
Double_t  z,
Double_t  t,
Double_t  b,
Int_t  nPrim 
)

Constructor with all members

Parameters
iEventevent identifier
x,y,zvertex oordinates [cm]
tevent time [ns]
bimpact parameter [fm] (if relevant)
nPrimnumber of input tracks

Definition at line 51 of file FairMCEventHeader.cxx.

View newest version in sPHENIX GitHub at line 51 of file FairMCEventHeader.cxx

FairMCEventHeader::FairMCEventHeader ( UInt_t  runId)

Standard constructor with run identifier

Definition at line 32 of file FairMCEventHeader.cxx.

View newest version in sPHENIX GitHub at line 32 of file FairMCEventHeader.cxx

FairMCEventHeader::~FairMCEventHeader ( )
virtual

Destructor

Definition at line 72 of file FairMCEventHeader.cxx.

View newest version in sPHENIX GitHub at line 72 of file FairMCEventHeader.cxx

Member Function Documentation

FairMCEventHeader::ClassDef ( FairMCEventHeader  ,
 
)
protected

Flag whether variables are filled.

Double_t FairMCEventHeader::GetB ( ) const
inline

event time [ns]

Definition at line 52 of file FairMCEventHeader.h.

View newest version in sPHENIX GitHub at line 52 of file FairMCEventHeader.h

References fB.

UInt_t FairMCEventHeader::GetEventID ( ) const
inline

run identifier

Definition at line 47 of file FairMCEventHeader.h.

View newest version in sPHENIX GitHub at line 47 of file FairMCEventHeader.h

References fEventId.

Referenced by FairPrimaryGenerator::GenerateEvent(), and PndStack::UpdateTrackIndex().

+ Here is the caller graph for this function:

Int_t FairMCEventHeader::GetNPrim ( ) const
inline

impact parameter [fm]

Definition at line 53 of file FairMCEventHeader.h.

View newest version in sPHENIX GitHub at line 53 of file FairMCEventHeader.h

References fNPrim.

UInt_t FairMCEventHeader::GetRunID ( ) const
inline

Accessors

Definition at line 46 of file FairMCEventHeader.h.

View newest version in sPHENIX GitHub at line 46 of file FairMCEventHeader.h

References fRunId.

Referenced by PndGeoHandling::GetRunId(), FairRunAna::Init(), FairRunAna::InitContainers(), FairRunAna::Run(), and EicRunAna::RunCoreProcessNextEvent().

+ Here is the caller graph for this function:

Double_t FairMCEventHeader::GetT ( ) const
inline

vertex z [cm]

Definition at line 51 of file FairMCEventHeader.h.

View newest version in sPHENIX GitHub at line 51 of file FairMCEventHeader.h

References fT.

Referenced by FairRootManager::GetEventTime().

+ Here is the caller graph for this function:

void FairMCEventHeader::GetVertex ( TVector3 &  vertex)
inline

Flag.

Definition at line 56 of file FairMCEventHeader.h.

View newest version in sPHENIX GitHub at line 56 of file FairMCEventHeader.h

References fX, fY, and fZ.

Double_t FairMCEventHeader::GetX ( ) const
inline

event identifier

Definition at line 48 of file FairMCEventHeader.h.

View newest version in sPHENIX GitHub at line 48 of file FairMCEventHeader.h

References fX.

Double_t FairMCEventHeader::GetY ( ) const
inline

vertex x [cm]

Definition at line 49 of file FairMCEventHeader.h.

View newest version in sPHENIX GitHub at line 49 of file FairMCEventHeader.h

References fY.

Double_t FairMCEventHeader::GetZ ( ) const
inline

vertex y [cm]

Definition at line 50 of file FairMCEventHeader.h.

View newest version in sPHENIX GitHub at line 50 of file FairMCEventHeader.h

References fZ.

Bool_t FairMCEventHeader::IsSet ( ) const
inline

number of input tracks

Definition at line 54 of file FairMCEventHeader.h.

View newest version in sPHENIX GitHub at line 54 of file FairMCEventHeader.h

References fIsSet.

void FairMCEventHeader::MarkSet ( Bool_t  isSet)
inline

Definition at line 65 of file FairMCEventHeader.h.

View newest version in sPHENIX GitHub at line 65 of file FairMCEventHeader.h

References fIsSet.

void FairMCEventHeader::Register ( )
virtual

Register the class as data branch to the output

Reimplemented in CbmMCEventHeader.

Definition at line 89 of file FairMCEventHeader.cxx.

View newest version in sPHENIX GitHub at line 89 of file FairMCEventHeader.cxx

References FairRootManager::Instance(), and FairRootManager::Register().

Referenced by FairMCApplication::InitGeometry().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void FairMCEventHeader::Reset ( )

Reset all members

Definition at line 80 of file FairMCEventHeader.cxx.

View newest version in sPHENIX GitHub at line 80 of file FairMCEventHeader.cxx

References fB, fEventId, fIsSet, fNPrim, fT, fX, fY, and fZ.

Referenced by FairPrimaryGenerator::GenerateEvent(), and CbmMCEventHeader::Reset().

+ Here is the caller graph for this function:

void FairMCEventHeader::SetB ( Double_t  b)
inline

Definition at line 63 of file FairMCEventHeader.h.

View newest version in sPHENIX GitHub at line 63 of file FairMCEventHeader.h

References fB.

void FairMCEventHeader::SetEventID ( UInt_t  eventId)
inline

Modifiers

Definition at line 60 of file FairMCEventHeader.h.

View newest version in sPHENIX GitHub at line 60 of file FairMCEventHeader.h

References fEventId.

Referenced by FairPrimaryGenerator::GenerateEvent().

+ Here is the caller graph for this function:

void FairMCEventHeader::SetNPrim ( Int_t  nPrim)
inline

Definition at line 64 of file FairMCEventHeader.h.

View newest version in sPHENIX GitHub at line 64 of file FairMCEventHeader.h

References fNPrim.

Referenced by FairPrimaryGenerator::GenerateEvent().

+ Here is the caller graph for this function:

void FairMCEventHeader::SetRunID ( UInt_t  runId)
inline

Definition at line 61 of file FairMCEventHeader.h.

View newest version in sPHENIX GitHub at line 61 of file FairMCEventHeader.h

References fRunId.

Referenced by FairMCApplication::InitGeometry().

+ Here is the caller graph for this function:

void FairMCEventHeader::SetTime ( Double_t  t)
inline

Definition at line 62 of file FairMCEventHeader.h.

View newest version in sPHENIX GitHub at line 62 of file FairMCEventHeader.h

References fT, and t.

Referenced by FairPrimaryGenerator::GenerateEvent().

+ Here is the caller graph for this function:

void FairMCEventHeader::SetVertex ( Double_t  x,
Double_t  y,
Double_t  z 
)
inline

Definition at line 95 of file FairMCEventHeader.h.

View newest version in sPHENIX GitHub at line 95 of file FairMCEventHeader.h

References fX, fY, fZ, x, y, and z.

Referenced by FairPrimaryGenerator::GenerateEvent().

+ Here is the caller graph for this function:

void FairMCEventHeader::SetVertex ( const TVector3 &  vertex)
inline

Definition at line 104 of file FairMCEventHeader.h.

View newest version in sPHENIX GitHub at line 104 of file FairMCEventHeader.h

References fX, fY, and fZ.

Member Data Documentation

Double32_t FairMCEventHeader::fB
protected

Event time [s].

Definition at line 85 of file FairMCEventHeader.h.

View newest version in sPHENIX GitHub at line 85 of file FairMCEventHeader.h

Referenced by GetB(), Reset(), and SetB().

UInt_t FairMCEventHeader::fEventId
protected

Run identifier.

Definition at line 80 of file FairMCEventHeader.h.

View newest version in sPHENIX GitHub at line 80 of file FairMCEventHeader.h

Referenced by GetEventID(), Reset(), and SetEventID().

Bool_t FairMCEventHeader::fIsSet
protected

Number of input tracks.

Definition at line 87 of file FairMCEventHeader.h.

View newest version in sPHENIX GitHub at line 87 of file FairMCEventHeader.h

Referenced by IsSet(), MarkSet(), and Reset().

Int_t FairMCEventHeader::fNPrim
protected

Impact parameter [fm] (if relevant)

Definition at line 86 of file FairMCEventHeader.h.

View newest version in sPHENIX GitHub at line 86 of file FairMCEventHeader.h

Referenced by GetNPrim(), Reset(), and SetNPrim().

UInt_t FairMCEventHeader::fRunId
protected

Definition at line 79 of file FairMCEventHeader.h.

View newest version in sPHENIX GitHub at line 79 of file FairMCEventHeader.h

Referenced by GetRunID(), and SetRunID().

Double32_t FairMCEventHeader::fT
protected

Primary vertex z [cm].

Definition at line 84 of file FairMCEventHeader.h.

View newest version in sPHENIX GitHub at line 84 of file FairMCEventHeader.h

Referenced by GetT(), Reset(), and SetTime().

Double32_t FairMCEventHeader::fX
protected

Event identifier.

Definition at line 81 of file FairMCEventHeader.h.

View newest version in sPHENIX GitHub at line 81 of file FairMCEventHeader.h

Referenced by GetVertex(), GetX(), Reset(), and SetVertex().

Double32_t FairMCEventHeader::fY
protected

Primary vertex x [cm].

Definition at line 82 of file FairMCEventHeader.h.

View newest version in sPHENIX GitHub at line 82 of file FairMCEventHeader.h

Referenced by GetVertex(), GetY(), Reset(), and SetVertex().

Double32_t FairMCEventHeader::fZ
protected

Primary vertex y [cm].

Definition at line 83 of file FairMCEventHeader.h.

View newest version in sPHENIX GitHub at line 83 of file FairMCEventHeader.h

Referenced by GetVertex(), GetZ(), Reset(), and SetVertex().


The documentation for this class was generated from the following files: