Project
Loading...
Searching...
No Matches
o2::dataformats::MCEventHeader Class Reference

#include <MCEventHeader.h>

Inherits FairMCEventHeader.

Public Member Functions

 MCEventHeader ()=default
 
 MCEventHeader (const MCEventHeader &rhs)=default
 
MCEventHeader & operator= (const MCEventHeader &rhs)=default
 
 ~MCEventHeader () override=default
 
void setEmbeddingFileName (std::string const &value)
 
void setEmbeddingEventIndex (Int_t value)
 
int getEmbeddedIndex () const
 
void clearInfo ()
 
template<typename T >
void putInfo (std::string const &key, T const &value)
 
bool hasInfo (std::string const &key) const
 
template<typename T >
const T & getInfo (std::string const &key, bool &isvalid) const
 
void print () const
 
void printInfo () const
 prints a summary of info keys/types attached to this header
 
void copyInfoFrom (MCEventHeader const &other)
 inits info fields from another Event header
 
virtual void Reset ()
 
MCEventStats & getMCEventStats ()
 
void setDetId2HitBitLUT (std::vector< int > const &v)
 
std::vector< int > const & getDetId2HitBitLUT () const
 
- Public Member Functions inherited from FairMCEventHeader
 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
 
Double_t GetRotX () const
 Flag.
 
Double_t GetRotY () const
 rot. around x-axis [rad]
 
Double_t GetRotZ () const
 rot. around y-axis [rad]
 
void GetVertex (TVector3 &vertex)
 rot. around z-axis [rad]
 
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 SetRotX (Double_t rotx)
 
void SetRotY (Double_t roty)
 
void SetRotZ (Double_t rotz)
 
void Reset ()
 
virtual void Register ()
 

Static Public Member Functions

static void extractFileFromKinematics (std::string_view kinefilename, std::string_view targetfilename)
 create a standalone ROOT file/tree with only the MCHeader branch
 

Protected Member Functions

 ClassDefOverride (MCEventHeader, 4)
 
- Protected Member Functions inherited from FairMCEventHeader
 ClassDef (FairMCEventHeader, 2)
 Rotation around z-axis (event plane) [rad].
 

Protected Attributes

std::string mEmbeddingFileName
 
Int_t mEmbeddingEventIndex = 0
 
MCEventStats mEventStats {}
 
std::vector< int > mDetId2HitBitIndex
 
o2::utils::RootSerializableKeyValueStore mEventInfo
 
- Protected Attributes inherited from FairMCEventHeader
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.
 
Double32_t fRotX
 Flag whether variables are filled.
 
Double32_t fRotY
 Rotation around x-axis (beam tilt) [rad].
 
Double32_t fRotZ
 Rotation around y-axis (beam tilt) [rad].
 

Detailed Description

Definition at line 101 of file MCEventHeader.h.

Constructor & Destructor Documentation

◆ MCEventHeader() [1/2]

o2::dataformats::MCEventHeader::MCEventHeader ( )
default

◆ MCEventHeader() [2/2]

o2::dataformats::MCEventHeader::MCEventHeader ( const MCEventHeader &  rhs)
default

◆ ~MCEventHeader()

o2::dataformats::MCEventHeader::~MCEventHeader ( )
overridedefault

Member Function Documentation

◆ ClassDefOverride()

o2::dataformats::MCEventHeader::ClassDefOverride ( MCEventHeader  ,
4   
)
protected

◆ clearInfo()

void o2::dataformats::MCEventHeader::clearInfo ( )
inline

methods to handle stored information

Definition at line 117 of file MCEventHeader.h.

◆ copyInfoFrom()

void o2::dataformats::MCEventHeader::copyInfoFrom ( MCEventHeader const &  other)
inline

inits info fields from another Event header

Definition at line 154 of file MCEventHeader.h.

◆ extractFileFromKinematics()

void o2::dataformats::MCEventHeader::extractFileFromKinematics ( std::string_view  kinefilename,
std::string_view  targetfilename 
)
static

create a standalone ROOT file/tree with only the MCHeader branch

Definition at line 39 of file MCEventHeader.cxx.

◆ getDetId2HitBitLUT()

std::vector< int > const & o2::dataformats::MCEventHeader::getDetId2HitBitLUT ( ) const
inline

Definition at line 165 of file MCEventHeader.h.

◆ getEmbeddedIndex()

int o2::dataformats::MCEventHeader::getEmbeddedIndex ( ) const
inline

Definition at line 113 of file MCEventHeader.h.

◆ getInfo()

template<typename T >
const T & o2::dataformats::MCEventHeader::getInfo ( std::string const &  key,
bool &  isvalid 
) const
inline

Definition at line 134 of file MCEventHeader.h.

◆ getMCEventStats()

MCEventStats & o2::dataformats::MCEventHeader::getMCEventStats ( )
inline

Definition at line 162 of file MCEventHeader.h.

◆ hasInfo()

bool o2::dataformats::MCEventHeader::hasInfo ( std::string const &  key) const
inline

Definition at line 128 of file MCEventHeader.h.

◆ operator=()

MCEventHeader & o2::dataformats::MCEventHeader::operator= ( const MCEventHeader &  rhs)
default

◆ print()

void o2::dataformats::MCEventHeader::print ( ) const

Definition at line 65 of file MCEventHeader.cxx.

◆ printInfo()

void o2::dataformats::MCEventHeader::printInfo ( ) const
inline

prints a summary of info keys/types attached to this header

Definition at line 148 of file MCEventHeader.h.

◆ putInfo()

template<typename T >
void o2::dataformats::MCEventHeader::putInfo ( std::string const &  key,
T const &  value 
)
inline

Definition at line 123 of file MCEventHeader.h.

◆ Reset()

void o2::dataformats::MCEventHeader::Reset ( )
virtual

methods

reset

Definition at line 28 of file MCEventHeader.cxx.

◆ setDetId2HitBitLUT()

void o2::dataformats::MCEventHeader::setDetId2HitBitLUT ( std::vector< int > const &  v)
inline

Definition at line 164 of file MCEventHeader.h.

◆ setEmbeddingEventIndex()

void o2::dataformats::MCEventHeader::setEmbeddingEventIndex ( Int_t  value)
inline

Definition at line 112 of file MCEventHeader.h.

◆ setEmbeddingFileName()

void o2::dataformats::MCEventHeader::setEmbeddingFileName ( std::string const &  value)
inline

setters

Definition at line 111 of file MCEventHeader.h.

Member Data Documentation

◆ mDetId2HitBitIndex

std::vector<int> o2::dataformats::MCEventHeader::mDetId2HitBitIndex
protected

Definition at line 177 of file MCEventHeader.h.

◆ mEmbeddingEventIndex

Int_t o2::dataformats::MCEventHeader::mEmbeddingEventIndex = 0
protected

Definition at line 172 of file MCEventHeader.h.

◆ mEmbeddingFileName

std::string o2::dataformats::MCEventHeader::mEmbeddingFileName
protected

Definition at line 171 of file MCEventHeader.h.

◆ mEventInfo

o2::utils::RootSerializableKeyValueStore o2::dataformats::MCEventHeader::mEventInfo
protected

Definition at line 178 of file MCEventHeader.h.

◆ mEventStats

MCEventStats o2::dataformats::MCEventHeader::mEventStats {}
protected

Definition at line 176 of file MCEventHeader.h.


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