11 class ModuleBeginJobSignalSentry {
13 ModuleBeginJobSignalSentry(
ActivityRegistry*
a, ModuleDescription
const& md):a_(a), md_(&md) {
14 if(a_) a_->preModuleBeginJobSignal_(*md_);
16 ~ModuleBeginJobSignalSentry() {
17 if(a_) a_->postModuleBeginJobSignal_(*md_);
21 ModuleDescription
const* md_;
24 class ModuleEndJobSignalSentry {
26 ModuleEndJobSignalSentry(
ActivityRegistry* a, ModuleDescription
const& md):a_(a), md_(&md) {
27 if(a_) a_->preModuleEndJobSignal_(*md_);
29 ~ModuleEndJobSignalSentry() {
30 if(a_) a_->postModuleEndJobSignal_(*md_);
34 ModuleDescription
const* md_;
37 class ModuleBeginStreamSignalSentry {
40 StreamContext
const& sc,
41 ModuleCallingContext
const& mcc) : a_(a), sc_(sc), mcc_(mcc) {
42 if(a_) a_->preModuleBeginStreamSignal_(sc_, mcc_);
44 ~ModuleBeginStreamSignalSentry() {
45 if(a_) a_->postModuleBeginStreamSignal_(sc_, mcc_);
49 StreamContext
const& sc_;
50 ModuleCallingContext
const& mcc_;
53 class ModuleEndStreamSignalSentry {
56 StreamContext
const& sc,
57 ModuleCallingContext
const& mcc) : a_(a), sc_(sc), mcc_(mcc) {
58 if(a_) a_->preModuleEndStreamSignal_(sc_, mcc_);
60 ~ModuleEndStreamSignalSentry() {
61 if(a_) a_->postModuleEndStreamSignal_(sc_, mcc_);
65 StreamContext
const& sc_;
66 ModuleCallingContext
const& mcc_;
71 iEx << iMD.moduleName() <<
"/" << iMD.moduleLabel() <<
"\n";
86 moduleCallingContext_(&iMD),
126 std::ostringstream ost;
148 std::ostringstream ost;
178 std::ostringstream ost;
208 std::ostringstream ost;
216 stopwatch_.reset(
new RunStopwatch::StopwatchPointer::element_type);
void pathFinished(EventPrincipal &)
void resetModuleDescription(ModuleDescription const *)
void setTimestamp(Timestamp const &v)
ModuleDescription const & description() const
void setState(State state)
void setEarlyDeleteHelper(EarlyDeleteHelper *iHelper)
boost::shared_ptr< ActivityRegistry > actReg_
void setActivityRegistry(boost::shared_ptr< ActivityRegistry > areg)
std::string const & moduleName() const
void beginStream(StreamID id, StreamContext &streamContext)
std::string const & moduleLabel() const
EarlyDeleteHelper * earlyDeleteHelper_
ParentContext const & parent() const
ModuleCallingContext moduleCallingContext_
void setTransition(Transition v)
static RunIndex invalidRunIndex()
void setLuminosityBlockIndex(LuminosityBlockIndex const &v)
void stdToEDM(std::exception const &e)
Worker(ModuleDescription const &iMD, ExceptionToActionTable const *iActions)
virtual void implEndJob()=0
void moduleRan(EventPrincipal &)
static LuminosityBlockIndex invalidLuminosityBlockIndex()
void postDoEvent(EventPrincipal &)
void charPtrToEDM(char const *c)
void stringToEDM(std::string &s)
virtual void implBeginJob()=0
void addContext(std::string const &context)
virtual void implBeginStream(StreamID)=0
virtual void implEndStream(StreamID)=0
void setEventID(EventID const &v)
ModuleCallingContext const * previousModuleOnThread() const
void endStream(StreamID id, StreamContext &streamContext)
RunStopwatch::StopwatchPointer stopwatch_
void setRunIndex(RunIndex const &v)
void pathFinished(EventPrincipal &)