7 #ifndef NURANDOM_RANDOMUTILS_ARTSTATE_H 8 #define NURANDOM_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 // NURANDOM_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
std::string const & moduleLabel() const
state_type artState
current state of the art
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.
std::string const & processName() const
EventAuxiliary::ExperimentType experimentType() const
void set_state(state_type astate)
Records the status of ART.
in service construction phase
std::string const & moduleName() const
void set_process_name(std::string pn)
Records the status of ART.
Describe the current state of art processing, as understood by the NuRandomService.
in event processing by a module
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
bool isRealData() const noexcept
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 noexcept
Timestamp const & time() const noexcept