#include <MicroStateService.h>
Public Member Functions | |
std::string | getMicroState1 () |
std::string | getMicroState2 () |
MicroStateService (const edm::ParameterSet &, edm::ActivityRegistry &) | |
void | postBeginJob () |
void | postEndJob () |
void | postEventProcessing (const edm::Event &, const edm::EventSetup &) |
void | postModule (const edm::ModuleDescription &) |
void | postSource () |
void | preEventProcessing (const edm::EventID &, const edm::Timestamp &) |
void | preModule (const edm::ModuleDescription &) |
void | preSource () |
void | setMicroState (std::string &) |
~MicroStateService () | |
Private Attributes | |
boost::mutex | lock_ |
std::string | microstate1_ |
std::string | microstate2_ |
Definition at line 18 of file MicroStateService.h.
evf::MicroStateService::MicroStateService | ( | const edm::ParameterSet & | iPS, |
edm::ActivityRegistry & | reg | ||
) |
Definition at line 8 of file MicroStateService.cc.
References microstate1_, microstate2_, postBeginJob(), postEndJob(), postEventProcessing(), postModule(), postSource(), preEventProcessing(), preModule(), preSource(), edm::ActivityRegistry::watchPostBeginJob(), edm::ActivityRegistry::watchPostEndJob(), edm::ActivityRegistry::watchPostModule(), edm::ActivityRegistry::watchPostProcessEvent(), edm::ActivityRegistry::watchPostSource(), edm::ActivityRegistry::watchPreModule(), edm::ActivityRegistry::watchPreProcessEvent(), and edm::ActivityRegistry::watchPreSource().
{ reg.watchPostBeginJob(this,&MicroStateService::postBeginJob); reg.watchPostEndJob(this,&MicroStateService::postEndJob); reg.watchPreProcessEvent(this,&MicroStateService::preEventProcessing); reg.watchPostProcessEvent(this,&MicroStateService::postEventProcessing); reg.watchPreSource(this,&MicroStateService::preSource); reg.watchPostSource(this,&MicroStateService::postSource); reg.watchPreModule(this,&MicroStateService::preModule); reg.watchPostModule(this,&MicroStateService::postModule); microstate1_ = "BJ"; microstate2_ = "INIT"; }
evf::MicroStateService::~MicroStateService | ( | ) |
Definition at line 28 of file MicroStateService.cc.
{ }
std::string evf::MicroStateService::getMicroState1 | ( | ) |
Definition at line 81 of file MicroStateService.cc.
References lock_, and microstate1_.
{ boost::mutex::scoped_lock sl(lock_); return microstate1_; }
std::string evf::MicroStateService::getMicroState2 | ( | ) |
Definition at line 87 of file MicroStateService.cc.
References lock_, and microstate2_.
Referenced by evf::FWEPWrapper::microState(), and evf::FWEPWrapper::monitoring().
{ boost::mutex::scoped_lock sl(lock_); return microstate2_; }
void evf::MicroStateService::postBeginJob | ( | ) |
Definition at line 32 of file MicroStateService.cc.
References lock_, and microstate1_.
Referenced by MicroStateService().
{ boost::mutex::scoped_lock sl(lock_); microstate1_ = "BJD"; }
void evf::MicroStateService::postEndJob | ( | ) |
Definition at line 38 of file MicroStateService.cc.
References lock_, microstate1_, and microstate2_.
Referenced by MicroStateService().
{ boost::mutex::scoped_lock sl(lock_); microstate1_ = "EJ"; microstate2_ = "done"; }
void evf::MicroStateService::postEventProcessing | ( | const edm::Event & | e, |
const edm::EventSetup & | |||
) |
Definition at line 52 of file MicroStateService.cc.
References lock_, and microstate2_.
Referenced by MicroStateService().
{ boost::mutex::scoped_lock sl(lock_); microstate2_ = "INPUT"; }
void evf::MicroStateService::postModule | ( | const edm::ModuleDescription & | desc | ) |
Definition at line 75 of file MicroStateService.cc.
References lock_, and microstate2_.
Referenced by MicroStateService().
{ boost::mutex::scoped_lock sl(lock_); microstate2_ = "FWKOVH"; }
void evf::MicroStateService::postSource | ( | ) |
Definition at line 63 of file MicroStateService.cc.
References lock_, and microstate2_.
Referenced by MicroStateService().
{ boost::mutex::scoped_lock sl(lock_); microstate2_ = "FWKOVH"; }
void evf::MicroStateService::preEventProcessing | ( | const edm::EventID & | iID, |
const edm::Timestamp & | iTime | ||
) |
Definition at line 45 of file MicroStateService.cc.
References lock_, and microstate1_.
Referenced by MicroStateService().
{ boost::mutex::scoped_lock sl(lock_); microstate1_ = "PRO"; }
void evf::MicroStateService::preModule | ( | const edm::ModuleDescription & | desc | ) |
Definition at line 69 of file MicroStateService.cc.
References lock_, microstate2_, and edm::ModuleDescription::moduleLabel().
Referenced by MicroStateService().
{ boost::mutex::scoped_lock sl(lock_); microstate2_ = desc.moduleLabel(); }
void evf::MicroStateService::preSource | ( | ) |
Definition at line 57 of file MicroStateService.cc.
References lock_, and microstate2_.
Referenced by MicroStateService().
{ boost::mutex::scoped_lock sl(lock_); microstate2_ = "INPUT"; }
void evf::MicroStateService::setMicroState | ( | std::string & | in | ) |
Definition at line 93 of file MicroStateService.cc.
References recoMuon::in, lock_, and microstate2_.
Referenced by FUShmDQMOutputService::postEndLumi().
{ boost::mutex::scoped_lock sl(lock_); microstate2_ = in; }
boost::mutex evf::MicroStateService::lock_ [private] |
Definition at line 48 of file MicroStateService.h.
Referenced by getMicroState1(), getMicroState2(), postBeginJob(), postEndJob(), postEventProcessing(), postModule(), postSource(), preEventProcessing(), preModule(), preSource(), and setMicroState().
std::string evf::MicroStateService::microstate1_ [private] |
Definition at line 45 of file MicroStateService.h.
Referenced by getMicroState1(), MicroStateService(), postBeginJob(), postEndJob(), and preEventProcessing().
std::string evf::MicroStateService::microstate2_ [private] |
Definition at line 46 of file MicroStateService.h.
Referenced by getMicroState2(), MicroStateService(), postEndJob(), postEventProcessing(), postModule(), postSource(), preModule(), preSource(), and setMicroState().