DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
|
Event extension to pass input event data to output event. More...
#include <EventParameters.h>
Public Member Functions | |
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... | |
template<> | |
void | extractParameters (podio::Frame &frame) |
Public Member Functions inherited from dd4hep::sim::ExtensionParameters | |
auto const & | intParameters () const |
Get the int parameters. More... | |
auto const & | fltParameters () const |
Get the float parameters. More... | |
auto const & | strParameters () const |
Get the string parameters. More... | |
auto const & | dblParameters () const |
Get the double parameters. More... | |
Protected Attributes | |
int | m_runNumber = -1 |
int | m_eventNumber = -1 |
Protected Attributes inherited from dd4hep::sim::ExtensionParameters | |
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 {} |
Event extension to pass input event data to output event.
Definition at line 28 of file EventParameters.h.
|
inline |
Get the event number.
Definition at line 40 of file EventParameters.h.
void dd4hep::sim::EventParameters::extractParameters | ( | podio::Frame & | frame | ) |
Definition at line 125 of file Geant4Output2EDM4hep.cpp.
void dd4hep::sim::EventParameters::extractParameters | ( | T & | destination | ) |
Put parameters into destination.
Definition at line 46 of file Geant4Output2LCIO.cpp.
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
get the parameters from the GenericParameters of the input EDM4hep frame and store them in the EventParameters extension
Definition at line 49 of file EDM4hepFileReader.cpp.
|
inline |
Get the run number.
Definition at line 38 of file EventParameters.h.
void dd4hep::sim::EventParameters::setEventNumber | ( | int | eventNumber | ) |
Definition at line 23 of file EventParameters.cpp.
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.
|
protected |
Definition at line 31 of file EventParameters.h.
|
protected |
Definition at line 30 of file EventParameters.h.