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

Extension to pass input run data to output run data. More...

#include <RunParameters.h>

Public Member Functions

 RunParameters ()=default
 Initializing constructor. More...
 
 ~RunParameters ()=default
 Default destructor. More...
 
void setRunNumber (int runNumber)
 Set the Run parameters. More...
 
int runNumber () const
 Get the run 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 Run parameters. More...
 
auto const & fltParameters () const
 Get the float Run parameters. More...
 
auto const & strParameters () const
 Get the string Run parameters. More...
 
auto const & dblParameters () const
 Get the double Run parameters. More...
 
template<>
void extractParameters (podio::Frame &frame)
 

Protected Attributes

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 {}
 
int m_runNumber = -1
 

Detailed Description

Extension to pass input run data to output run data.

Version
1.0

Definition at line 31 of file RunParameters.h.

Constructor & Destructor Documentation

◆ RunParameters()

dd4hep::sim::RunParameters::RunParameters ( )
default

Initializing constructor.

◆ ~RunParameters()

dd4hep::sim::RunParameters::~RunParameters ( )
default

Default destructor.

Member Function Documentation

◆ dblParameters()

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

Get the double Run parameters.

Definition at line 62 of file RunParameters.h.

◆ extractParameters() [1/2]

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

Definition at line 141 of file Geant4Output2EDM4hep.cpp.

◆ extractParameters() [2/2]

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

Put parameters into destination.

Definition at line 66 of file Geant4Output2LCIO.cpp.

◆ fltParameters()

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

Get the float Run parameters.

Definition at line 58 of file RunParameters.h.

◆ ingestParameters()

template<class T = HepMC3::GenRunInfo>
void dd4hep::sim::RunParameters::ingestParameters ( T const &  source)

Copy the parameters from source.

Definition at line 73 of file HepMC3FileReader.cpp.

◆ intParameters()

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

Get the int Run parameters.

Definition at line 56 of file RunParameters.h.

◆ runNumber()

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

Get the run number.

Definition at line 48 of file RunParameters.h.

◆ setRunNumber()

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

Set the Run parameters.

◆ strParameters()

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

Get the string Run parameters.

Definition at line 60 of file RunParameters.h.

Member Data Documentation

◆ m_dblValues

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

Definition at line 36 of file RunParameters.h.

◆ m_fltValues

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

Definition at line 34 of file RunParameters.h.

◆ m_intValues

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

Definition at line 33 of file RunParameters.h.

◆ m_runNumber

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

Definition at line 37 of file RunParameters.h.

◆ m_strValues

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

Definition at line 35 of file RunParameters.h.


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