LCIO
02.17
|
Implementation of LCRunHeader. More...
#include <LCRunHeaderImpl.h>
Public Member Functions | |
LCRunHeaderImpl () | |
virtual | ~LCRunHeaderImpl () |
Destructor. More... | |
virtual int | id () const |
Returns an object id for internal (debugging) use in LCIO. More... | |
virtual int | getRunNumber () const |
Returns the run number. More... | |
virtual const std::string & | getDetectorName () const |
Returns the name of the detector setup used in the simulation. More... | |
virtual const std::string & | getDescription () const |
Description of the simulation conditions, e.g. More... | |
virtual const std::vector < std::string > * | getActiveSubdetectors () const |
Returns the names of the active subdetectors used in the simulation. More... | |
virtual const EVENT::LCParameters & | getParameters () const |
Parameters defined for this run. More... | |
virtual EVENT::LCParameters & | parameters () |
Parameters defined for this run. More... | |
void | setRunNumber (int rn) |
Sets the run number. More... | |
void | setDetectorName (const std::string &dn) |
Sets the detector name. More... | |
void | setDescription (const std::string &dsc) |
Sets the description of the run. More... | |
void | addActiveSubdetector (const std::string &adn) |
Adds an active sub detector name. More... | |
![]() | |
virtual | ~LCRunHeader () |
Destructor. More... | |
![]() | |
virtual | ~LCObject () |
Destructor. More... | |
virtual LCObject * | clone () const |
Returns an object id for internal (debugging) use in LCIO. More... | |
![]() | |
template<class V > | |
V::ext_type | ext () |
Provides access to an extension object - the type and ownership is defined by the class V which should be a subtype of LCExtension, LCOwnedExtension, LCExtensionVector, LCExtensionList,... More... | |
template<class V > | |
const V::ext_type | ext () const |
Provides access to an extension object - the type and ownership is defined by the class V which should be a subtype of LCExtension, LCOwnedExtension, LCExtensionVector, LCExtensionList,... More... | |
template<class V > | |
V::rel_type | rel () |
Provides read access to relations - the object types and their connectivity are defined by the class V which has to be a subtype of either LC1To1Relation, LC1ToNRelation or LCNToNRelation. More... | |
![]() | |
AccessChecked () | |
virtual | ~AccessChecked () |
virtual int | simpleUID () const |
Protected Member Functions | |
virtual void | setReadOnly (bool readOnly) |
![]() | |
void | checkAccess () |
void | checkAccess (const char *what) |
Protected Attributes | |
int | _runNumber {0} |
std::string | _detectorName {} |
std::string | _description {} |
std::vector< std::string > | _activeSubdetectors {} |
LCParametersImpl | _params {} |
![]() | |
bool | _readOnly {false} |
int | _id {-1} |
Additional Inherited Members | |
![]() | |
typedef LCRunHeader | lcobject_type |
Useful typedef for template programming with LCIO. More... | |
![]() | |
typedef std::type_index | ext_index |
typedef std::shared_ptr< void > | ext_type |
typedef std::map< ext_index, ext_type > | ext_map |
![]() | |
static std::atomic_int | _lCObjectId |
IMPL::LCRunHeaderImpl::LCRunHeaderImpl | ( | ) |
Definition at line 8 of file LCRunHeaderImpl.cc.
|
virtual |
Destructor.
Definition at line 12 of file LCRunHeaderImpl.cc.
void IMPL::LCRunHeaderImpl::addActiveSubdetector | ( | const std::string & | adn | ) |
Adds an active sub detector name.
Definition at line 31 of file LCRunHeaderImpl.cc.
References _activeSubdetectors, and std::vector< T >::push_back().
|
virtual |
Returns the names of the active subdetectors used in the simulation.
Implements EVENT::LCRunHeader.
Definition at line 17 of file LCRunHeaderImpl.cc.
References _activeSubdetectors.
|
virtual |
Description of the simulation conditions, e.g.
physics channels.
Implements EVENT::LCRunHeader.
Definition at line 16 of file LCRunHeaderImpl.cc.
References _description.
|
virtual |
Returns the name of the detector setup used in the simulation.
Implements EVENT::LCRunHeader.
Definition at line 15 of file LCRunHeaderImpl.cc.
References _detectorName.
|
inlinevirtual |
Parameters defined for this run.
Implements EVENT::LCRunHeader.
Definition at line 49 of file LCRunHeaderImpl.h.
References _params.
|
virtual |
Returns the run number.
Implements EVENT::LCRunHeader.
Definition at line 14 of file LCRunHeaderImpl.cc.
References _runNumber.
|
inlinevirtual |
Returns an object id for internal (debugging) use in LCIO.
Implements EVENT::LCObject.
Definition at line 27 of file LCRunHeaderImpl.h.
References IMPL::AccessChecked::simpleUID().
|
inlinevirtual |
Parameters defined for this run.
Implements EVENT::LCRunHeader.
Definition at line 53 of file LCRunHeaderImpl.h.
References _params.
void IMPL::LCRunHeaderImpl::setDescription | ( | const std::string & | dsc | ) |
Sets the description of the run.
Definition at line 27 of file LCRunHeaderImpl.cc.
References _description, and IMPL::AccessChecked::checkAccess().
void IMPL::LCRunHeaderImpl::setDetectorName | ( | const std::string & | dn | ) |
Sets the detector name.
Definition at line 23 of file LCRunHeaderImpl.cc.
References _detectorName, and IMPL::AccessChecked::checkAccess().
|
protectedvirtual |
Reimplemented from IMPL::AccessChecked.
Definition at line 38 of file LCRunHeaderImpl.cc.
References IMPL::AccessChecked::setReadOnly().
void IMPL::LCRunHeaderImpl::setRunNumber | ( | int | rn | ) |
Sets the run number.
Definition at line 19 of file LCRunHeaderImpl.cc.
References _runNumber, and IMPL::AccessChecked::checkAccess().
Referenced by main().
|
protected |
Definition at line 83 of file LCRunHeaderImpl.h.
Referenced by addActiveSubdetector(), and getActiveSubdetectors().
|
protected |
Definition at line 82 of file LCRunHeaderImpl.h.
Referenced by getDescription(), and setDescription().
|
protected |
Definition at line 81 of file LCRunHeaderImpl.h.
Referenced by getDetectorName(), and setDetectorName().
|
protected |
Definition at line 85 of file LCRunHeaderImpl.h.
Referenced by getParameters(), and parameters().
|
protected |
Definition at line 80 of file LCRunHeaderImpl.h.
Referenced by getRunNumber(), and setRunNumber().