7 #ifndef NUTOOLS_RANDOMUTILS_ARTSTATE_H 8 #define NUTOOLS_RANDOMUTILS_ARTSTATE_H 1 29 namespace NuRandomServiceHelper {
65 state_type old_state =
state();
68 <<
"NuRandomService::ArtState: transition from " 100 <<
"Process name changed from '" <<
procName <<
"' to '" 152 case unDefined:
return "(not assigned yet)";
157 case inEvent:
return "event preparation";
160 case inOther:
return "unidentified";
163 <<
"artext::NuRandomServiceHelper::ArtState::stateName: unknown state #" 164 << ((int) state) <<
"\n";
179 #endif // NUTOOLS_RANDOMUTILS_ARTSTATE_H
state_type transit_to(state_type astate)
Records the new status of ART and returns the old one.
void reset_module()
Records the status of ART.
std::string stateName() const
Getters.
void reset_state()
Resets the status to "something else" (inOther)
static std::string stateName(state_type state)
art::EventAuxiliary EventInfo_t
in module construction phase
state_type artState
current state of the art
Timestamp const & time() const
EventSeedInputData getEventSeedInputData() const
void set_event(art::Event const &evt)
Records the specified event ID.
ArtState(state_type start_state=unDefined)
std::string moduleLabel() const
Getters.
art::EventID const & eventID() const
Getters.
std::string processName() const
Getters.
void set_process_name(art::ModuleDescription const ¤tModuleDesc)
Records the status of ART.
constexpr TimeValue_t value() const
EventInfo_t const & eventInfo() const
Getters.
EventAuxiliary::ExperimentType experimentType() const
void set_state(state_type astate)
Records the status of ART.
in service construction phase
void set_process_name(std::string pn)
Records the status of ART.
Describe the current state of art processing, as understood by the NuRandomService.
std::string const & moduleName() const
in event processing by a module
std::string const & processName() const
std::string const & moduleLabel() const
static constexpr Timestamp invalidTimestamp()
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
art::ModuleDescription lastModule
state_type state() const
Getters.
void reset_event()
Records the status of ART.
EventNumber_t event() const
in begin of run for a module
void set_module(art::ModuleDescription const &desc)
Records the specified module description.
art::ModuleDescription const & moduleDesc() const
Getters.
SubRunNumber_t subRun() const
EventID const & id() const