DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
Public Member Functions | Protected Attributes | List of all members
dd4hep::sim::EventParameters Class Reference

Event extension to pass input event data to output event. More...

#include <EventParameters.h>

Public Member Functions

 EventParameters ()=default
 Initializing constructor. More...
 
 ~EventParameters ()=default
 Default destructor. More...
 
void setRunNumber (int runNumber)
 Set the event parameters. More...
 
void setEventNumber (int eventNumber)
 
int runNumber () const
 Get the run number. More...
 
int eventNumber () const
 Get the event number. More...
 
template<class T >
void ingestParameters (T const &source)
 Copy the parameters from source. More...
 
template<class T >
void extractParameters (T &destination)
 Put parameters into destination. More...
 
auto const & intParameters () const
 Get the int event parameters. More...
 
auto const & fltParameters () const
 Get the float event parameters. More...
 
auto const & strParameters () const
 Get the string event parameters. More...
 
auto const & dblParameters () const
 Get the double event parameters. More...
 
template<>
void extractParameters (podio::Frame &frame)
 

Protected Attributes

int m_runNumber = -1
 
int m_eventNumber = -1
 
std::map< std::string, std::vector< int > > m_intValues {}
 
std::map< std::string, std::vector< float > > m_fltValues {}
 
std::map< std::string, std::vector< std::string > > m_strValues {}
 
std::map< std::string, std::vector< double > > m_dblValues {}
 

Detailed Description

Event extension to pass input event data to output event.

Version
1.0

Definition at line 31 of file EventParameters.h.

Constructor & Destructor Documentation

◆ EventParameters()

dd4hep::sim::EventParameters::EventParameters ( )
default

Initializing constructor.

◆ ~EventParameters()

dd4hep::sim::EventParameters::~EventParameters ( )
default

Default destructor.

Member Function Documentation

◆ dblParameters()

auto const& dd4hep::sim::EventParameters::dblParameters ( ) const
inline

Get the double event parameters.

Definition at line 66 of file EventParameters.h.

◆ eventNumber()

int dd4hep::sim::EventParameters::eventNumber ( ) const
inline

Get the event number.

Definition at line 52 of file EventParameters.h.

◆ extractParameters() [1/2]

template<>
void dd4hep::sim::EventParameters::extractParameters ( podio::Frame &  frame)

Definition at line 119 of file Geant4Output2EDM4hep.cpp.

◆ extractParameters() [2/2]

template<class T = lcio::LCEventImpl>
void dd4hep::sim::EventParameters::extractParameters ( T &  destination)

Put parameters into destination.

Definition at line 46 of file Geant4Output2LCIO.cpp.

◆ fltParameters()

auto const& dd4hep::sim::EventParameters::fltParameters ( ) const
inline

Get the float event parameters.

Definition at line 62 of file EventParameters.h.

◆ ingestParameters()

template<class T = EVENT::LCParameters>
void dd4hep::sim::EventParameters::ingestParameters ( T const &  source)

Copy the parameters from source.

get the parameters from the input LCIO Event and store them in the EventParameters extension

Definition at line 41 of file HepMC3FileReader.cpp.

◆ intParameters()

auto const& dd4hep::sim::EventParameters::intParameters ( ) const
inline

Get the int event parameters.

Definition at line 60 of file EventParameters.h.

◆ runNumber()

int dd4hep::sim::EventParameters::runNumber ( ) const
inline

Get the run number.

Definition at line 50 of file EventParameters.h.

◆ setEventNumber()

void dd4hep::sim::EventParameters::setEventNumber ( int  eventNumber)

Definition at line 23 of file EventParameters.cpp.

◆ setRunNumber()

void dd4hep::sim::EventParameters::setRunNumber ( int  runNumber)

Set the event parameters.

Framework include files.

C/C++ include files

Definition at line 20 of file EventParameters.cpp.

◆ strParameters()

auto const& dd4hep::sim::EventParameters::strParameters ( ) const
inline

Get the string event parameters.

Definition at line 64 of file EventParameters.h.

Member Data Documentation

◆ m_dblValues

std::map<std::string, std::vector<double> > dd4hep::sim::EventParameters::m_dblValues {}
protected

Definition at line 38 of file EventParameters.h.

◆ m_eventNumber

int dd4hep::sim::EventParameters::m_eventNumber = -1
protected

Definition at line 34 of file EventParameters.h.

◆ m_fltValues

std::map<std::string, std::vector<float> > dd4hep::sim::EventParameters::m_fltValues {}
protected

Definition at line 36 of file EventParameters.h.

◆ m_intValues

std::map<std::string, std::vector<int> > dd4hep::sim::EventParameters::m_intValues {}
protected

Definition at line 35 of file EventParameters.h.

◆ m_runNumber

int dd4hep::sim::EventParameters::m_runNumber = -1
protected

Definition at line 33 of file EventParameters.h.

◆ m_strValues

std::map<std::string, std::vector<std::string> > dd4hep::sim::EventParameters::m_strValues {}
protected

Definition at line 37 of file EventParameters.h.


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