#include <MicroStateService.h>
Public Member Functions | |
std::string | getMicroState1 () |
std::string const & | 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 const *) |
~MicroStateService () | |
Private Attributes | |
const std::string | done |
const std::string | fwkovh |
const std::string | init |
const std::string | input |
boost::mutex | lock_ |
std::string | microstate1_ |
const std::string * | microstate2_ |
Definition at line 21 of file MicroStateService.h.
evf::MicroStateService::MicroStateService | ( | const edm::ParameterSet & | iPS, |
edm::ActivityRegistry & | reg | ||
) |
Definition at line 9 of file MicroStateService.cc.
References microstate1_, 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().
: init("INIT") ,done("done") ,input("INPUT") ,fwkovh("FWKOVH") ,microstate2_(&init) { 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"; }
evf::MicroStateService::~MicroStateService | ( | ) |
Definition at line 32 of file MicroStateService.cc.
{ }
std::string evf::MicroStateService::getMicroState1 | ( | ) |
Definition at line 85 of file MicroStateService.cc.
References lock_, and microstate1_.
{ boost::mutex::scoped_lock sl(lock_); return microstate1_; }
std::string const & evf::MicroStateService::getMicroState2 | ( | ) |
Definition at line 91 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 36 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 42 of file MicroStateService.cc.
References done, 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 56 of file MicroStateService.cc.
References input, 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 79 of file MicroStateService.cc.
References fwkovh, lock_, and microstate2_.
Referenced by MicroStateService().
{ boost::mutex::scoped_lock sl(lock_); microstate2_ = &fwkovh; }
void evf::MicroStateService::postSource | ( | ) |
Definition at line 67 of file MicroStateService.cc.
References fwkovh, 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 49 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 73 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 61 of file MicroStateService.cc.
References input, lock_, and microstate2_.
Referenced by MicroStateService().
{ boost::mutex::scoped_lock sl(lock_); microstate2_ = &input; }
void evf::MicroStateService::setMicroState | ( | std::string const * | in | ) |
Definition at line 97 of file MicroStateService.cc.
References recoMuon::in, lock_, and microstate2_.
Referenced by FUShmDQMOutputService::postEndLumi().
{ boost::mutex::scoped_lock sl(lock_); microstate2_ = in; }
const std::string evf::MicroStateService::done [private] |
Definition at line 51 of file MicroStateService.h.
Referenced by postEndJob().
const std::string evf::MicroStateService::fwkovh [private] |
Definition at line 53 of file MicroStateService.h.
Referenced by postModule(), and postSource().
const std::string evf::MicroStateService::init [private] |
Definition at line 50 of file MicroStateService.h.
const std::string evf::MicroStateService::input [private] |
Definition at line 52 of file MicroStateService.h.
Referenced by postEventProcessing(), and preSource().
boost::mutex evf::MicroStateService::lock_ [private] |
Definition at line 55 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 49 of file MicroStateService.h.
Referenced by getMicroState1(), MicroStateService(), postBeginJob(), postEndJob(), and preEventProcessing().
const std::string* evf::MicroStateService::microstate2_ [private] |
Definition at line 54 of file MicroStateService.h.
Referenced by getMicroState2(), postEndJob(), postEventProcessing(), postModule(), postSource(), preModule(), preSource(), and setMicroState().