LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
Describe the current state of art processing, as understood by the NuRandomService. More...
#include "ArtState.h"
Public Types | |
enum | state_type { unDefined, inServiceConstructor, inModuleConstructor, inBeginRun, inModuleBeginRun, inEvent, inModuleEvent, inEndJob, inOther } |
using | EventInfo_t = art::EventAuxiliary |
Public Member Functions | |
ArtState (state_type start_state=unDefined) | |
EventSeedInputData | getEventSeedInputData () const |
void | set_state (state_type astate) |
Records the status of ART. More... | |
state_type | transit_to (state_type astate) |
Records the new status of ART and returns the old one. More... | |
void | reset_state () |
Resets the status to "something else" (inOther) More... | |
void | set_event (art::Event const &evt) |
Records the specified event ID. More... | |
void | reset_event () |
Records the status of ART. More... | |
void | set_module (art::ModuleDescription const &desc) |
Records the specified module description. More... | |
void | reset_module () |
Records the status of ART. More... | |
void | set_process_name (std::string pn) |
Records the status of ART. More... | |
void | set_process_name (art::ModuleDescription const ¤tModuleDesc) |
Records the status of ART. More... | |
state_type | state () const |
Getters. More... | |
std::string | stateName () const |
Getters. More... | |
art::EventID const & | eventID () const |
Getters. More... | |
EventInfo_t const & | eventInfo () const |
Getters. More... | |
art::ModuleDescription const & | moduleDesc () const |
Getters. More... | |
std::string | moduleLabel () const |
Getters. More... | |
std::string | processName () const |
Getters. More... | |
Static Public Member Functions | |
static std::string | stateName (state_type state) |
Protected Attributes | |
state_type | artState |
current state of the art More... | |
EventInfo_t | lastEvent |
art::ModuleDescription | lastModule |
std::string | procName |
Describe the current state of art processing, as understood by the NuRandomService.
Definition at line 32 of file ArtState.h.
Definition at line 46 of file ArtState.h.
Definition at line 34 of file ArtState.h.
|
inline |
Definition at line 49 of file ArtState.h.
References artState, and set_state().
|
inline |
Getters.
Definition at line 116 of file ArtState.h.
References art::EventAuxiliary::id(), and lastEvent.
Referenced by getEventSeedInputData().
|
inline |
Getters.
Definition at line 118 of file ArtState.h.
References lastEvent.
Referenced by getEventSeedInputData().
|
inline |
Definition at line 128 of file ArtState.h.
References art::EventID::event(), eventID(), eventInfo(), rndm::NuRandomServiceHelper::EventSeedInputData::eventNumber, art::Timestamp::invalidTimestamp(), rndm::NuRandomServiceHelper::EventSeedInputData::isData, art::EventAuxiliary::isRealData(), rndm::NuRandomServiceHelper::EventSeedInputData::isTimeValid, moduleDesc(), rndm::NuRandomServiceHelper::EventSeedInputData::moduleLabel, moduleLabel(), art::ModuleDescription::moduleName(), rndm::NuRandomServiceHelper::EventSeedInputData::moduleType, rndm::NuRandomServiceHelper::EventSeedInputData::processName, processName(), art::EventID::run(), rndm::NuRandomServiceHelper::EventSeedInputData::runNumber, art::EventID::subRun(), rndm::NuRandomServiceHelper::EventSeedInputData::subRunNumber, art::EventAuxiliary::time(), rndm::NuRandomServiceHelper::EventSeedInputData::time, and art::Timestamp::value().
|
inline |
Getters.
Definition at line 120 of file ArtState.h.
References lastModule.
Referenced by getEventSeedInputData().
|
inline |
Getters.
Definition at line 122 of file ArtState.h.
References lastModule, and art::ModuleDescription::moduleLabel().
Referenced by getEventSeedInputData().
|
inline |
Getters.
Definition at line 124 of file ArtState.h.
References procName.
Referenced by getEventSeedInputData().
|
inline |
Records the status of ART.
Definition at line 83 of file ArtState.h.
References lastEvent.
|
inline |
Records the status of ART.
Definition at line 91 of file ArtState.h.
References lastModule.
|
inline |
Resets the status to "something else" (inOther)
Definition at line 74 of file ArtState.h.
References inOther, and transit_to().
|
inline |
Records the specified event ID.
Definition at line 77 of file ArtState.h.
References art::Event::experimentType(), art::Event::id(), art::Event::isRealData(), lastEvent, and art::Event::time().
|
inline |
Records the specified module description.
Definition at line 86 of file ArtState.h.
References lastModule, and set_process_name().
|
inline |
Records the status of ART.
Definition at line 93 of file ArtState.h.
References procName.
Referenced by set_module().
|
inline |
Records the status of ART.
Definition at line 94 of file ArtState.h.
References art::errors::LogicError, art::ModuleDescription::processName(), and procName.
|
inline |
Records the status of ART.
Definition at line 60 of file ArtState.h.
Referenced by ArtState(), and transit_to().
|
inline |
Getters.
Definition at line 112 of file ArtState.h.
References artState.
Referenced by stateName(), and transit_to().
|
inline |
Getters.
Definition at line 114 of file ArtState.h.
References state(), and stateName().
Referenced by stateName(), and transit_to().
|
inlinestatic |
Definition at line 149 of file ArtState.h.
References inBeginRun, inEndJob, inEvent, inModuleBeginRun, inModuleConstructor, inModuleEvent, inOther, inServiceConstructor, art::errors::LogicError, and unDefined.
|
inline |
Records the new status of ART and returns the old one.
Definition at line 63 of file ArtState.h.
References MF_LOG_DEBUG, set_state(), state(), and stateName().
Referenced by reset_state().
|
protected |
current state of the art
Definition at line 168 of file ArtState.h.
Referenced by ArtState(), and state().
|
protected |
Definition at line 170 of file ArtState.h.
Referenced by eventID(), eventInfo(), reset_event(), and set_event().
|
protected |
Definition at line 171 of file ArtState.h.
Referenced by moduleDesc(), moduleLabel(), reset_module(), and set_module().
|
protected |
Definition at line 172 of file ArtState.h.
Referenced by processName(), and set_process_name().