CepGen 1.2.5
Central exclusive processes event generator
|
Base steering card module. More...
#include <CepGen/Cards/Handler.h>
Public Member Functions | |
Handler (const ParametersList &) | |
Build a configuration from an external steering card. | |
virtual | ~Handler ()=default |
virtual Handler & | parseCommands (const std::vector< std::string > &) |
Read configuration from command strings. | |
virtual Handler & | parseFile (const std::string &) |
Read configuration from steering card. | |
virtual void | write (const std::string &) const |
Write steering card from configuration. | |
virtual Handler & | setRunParameters (const RunParameters *) |
Specify runtime parameters. | |
const RunParameters * | runParameters () const |
Parsed runtime parameters. | |
std::unique_ptr< RunParameters > & | runParameters () |
Parsed runtime parameters. | |
const std::string & | name () const |
Module unique indexing name. | |
bool | operator== (const SteeredObject &oth) const |
Equality operator. | |
bool | operator!= (const SteeredObject &oth) const |
Inequality operator. | |
const ParametersList & | parameters () const override |
Module user-defined parameters. | |
virtual void | setParameters (const ParametersList ¶ms) override |
Set module parameters. | |
void | setDescribedParameters (const ParametersList ¶ms_orig) |
Set (documented) module parameters. | |
Static Public Member Functions | |
static ParametersDescription | description () |
Protected Member Functions | |
template<typename T > | |
T | steer (const std::string &key) const |
Retrieve a parameters as previously steered. | |
template<typename T , typename U > | |
U | steerAs (const std::string &key) const |
Retrieve a recasted parameters as previously steered. | |
std::string | steerName () const |
Retrieve module name from parameters. | |
std::string | steerPath (const std::string &key) const |
Retrieve a path from common search paths. | |
Protected Attributes | |
const std::string | filename_ |
Input filename. | |
const std::string | name_ |
Module unique indexing name. | |
ParametersList | params_ |
Module parameters. | |
|
explicit |
Definition at line 25 of file Handler.cpp.
|
virtualdefault |
|
static |
Definition at line 36 of file Handler.cpp.
|
inherited |
Definition at line 42 of file NamedModule.h.
|
inherited |
Definition at line 51 of file SteeredObject.h.
|
inherited |
Definition at line 49 of file SteeredObject.h.
|
overridevirtualinherited |
Reimplemented from Steerable.
Definition at line 54 of file SteeredObject.h.
|
virtual |
Reimplemented in CommandLineHandler, LpairHandler, and CardHandler.
|
virtual |
Reimplemented in BoostTreeHandler, CardHandler, CommandLineHandler, and LpairHandler.
std::unique_ptr< RunParameters > & runParameters | ( | ) |
const RunParameters * runParameters | ( | ) | const |
|
inherited |
Definition at line 73 of file SteeredObject.h.
|
overridevirtualinherited |
Reimplemented from Steerable.
Reimplemented in Initial, Remnants, CutsList, IncomingBeams, and Kinematics.
Definition at line 62 of file SteeredObject.h.
|
virtual |
Reimplemented in BoostTreeHandler.
Definition at line 31 of file Handler.cpp.
|
protectedinherited |
Definition at line 39 of file Steerable.h.
Definition at line 44 of file Steerable.h.
|
protectedinherited |
Definition at line 48 of file Steerable.h.
|
protectedinherited |
Definition at line 30 of file Steerable.cpp.
|
virtual |
Reimplemented in LpairHandler.
|
protectedinherited |
Definition at line 45 of file NamedModule.h.
|
mutableprotectedinherited |
Definition at line 50 of file Steerable.h.