7 #ifndef NUTOOLS_RANDOMUTILS_ARTSTATE_H 8 #define NUTOOLS_RANDOMUTILS_ARTSTATE_H 1 11 #include "nutools/RandomUtils/Providers/EventSeedInputData.h" 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.
std::string stateName() const
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
art::EventID const & eventID() const
std::string processName() const
void set_process_name(art::ModuleDescription const ¤tModuleDesc)
constexpr TimeValue_t value() const
EventInfo_t const & eventInfo() const
EventAuxiliary::ExperimentType experimentType() const
std::string const & processName() 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)
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.
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
SubRunNumber_t subRun() const
EventID const & id() const noexcept
Timestamp const & time() const noexcept