CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
evf::MicroStateServiceClassic Class Reference

#include <MicroStateServiceClassic.h>

Inheritance diagram for evf::MicroStateServiceClassic:
evf::MicroStateService

Public Member Functions

std::string getMicroState1 () override
 
std::string const & getMicroState2 () override
 
 MicroStateServiceClassic (const edm::ParameterSet &, edm::ActivityRegistry &)
 
void postBeginJob ()
 
void postEndJob ()
 
void postEventProcessing (const edm::Event &, const edm::EventSetup &)
 
void postModule (const edm::ModuleDescription &)
 
void postSourceEvent (edm::StreamID)
 
void preEventProcessing (const edm::EventID &, const edm::Timestamp &)
 
void preModule (const edm::ModuleDescription &)
 
void preSourceEvent (edm::StreamID)
 
void setMicroState (MicroStateService::Microstate m) override
 
 ~MicroStateServiceClassic () override
 
- Public Member Functions inherited from evf::MicroStateService
 MicroStateService (const edm::ParameterSet &, edm::ActivityRegistry &)
 
virtual void setMicroState (edm::StreamID sid, Microstate m)=0
 
virtual ~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_
 

Additional Inherited Members

- Public Types inherited from evf::MicroStateService
enum  Microstate {
  mInvalid = 0, mIdle, mFwkOvhSrc, mFwkOvhMod,
  mFwkEoL, mInput, mDqm, mBoL,
  mEoL, mGlobEoL, mCOUNT
}
 
- Static Public Attributes inherited from evf::MicroStateService
static const edm::ModuleDescription reservedMicroStateNames [mCOUNT]
 
- Static Protected Attributes inherited from evf::MicroStateService
static const std::string default_return_ = "NotImplemented"
 

Detailed Description

Definition at line 20 of file MicroStateServiceClassic.h.

Constructor & Destructor Documentation

evf::MicroStateServiceClassic::MicroStateServiceClassic ( const edm::ParameterSet iPS,
edm::ActivityRegistry reg 
)

Definition at line 5 of file MicroStateServiceClassic.cc.

References microstate1_, postBeginJob(), postEndJob(), postEventProcessing(), postModule(), postSourceEvent(), preEventProcessing(), preModule(), preSourceEvent(), edm::ActivityRegistry::watchPostBeginJob(), edm::ActivityRegistry::watchPostEndJob(), edm::ActivityRegistry::watchPostModule(), edm::ActivityRegistry::watchPostProcessEvent(), edm::ActivityRegistry::watchPostSourceEvent(), edm::ActivityRegistry::watchPreModule(), edm::ActivityRegistry::watchPreProcessEvent(), and edm::ActivityRegistry::watchPreSourceEvent().

6  : MicroStateService(iPS, reg),
10 
15 
18  microstate1_ = "BJ";
19  }
static const edm::ModuleDescription reservedMicroStateNames[mCOUNT]
void preModule(const edm::ModuleDescription &)
void watchPostEndJob(PostEndJob::slot_type const &iSlot)
void watchPostModule(PostModule::slot_type const &iSlot)
void watchPreProcessEvent(PreProcessEvent::slot_type const &iSlot)
void watchPostSourceEvent(PostSourceEvent::slot_type const &iSlot)
void watchPreModule(PreModule::slot_type const &iSlot)
void watchPostProcessEvent(PostProcessEvent::slot_type const &iSlot)
MicroStateService(const edm::ParameterSet &, edm::ActivityRegistry &)
void postModule(const edm::ModuleDescription &)
void postEventProcessing(const edm::Event &, const edm::EventSetup &)
void preEventProcessing(const edm::EventID &, const edm::Timestamp &)
void watchPreSourceEvent(PreSourceEvent::slot_type const &iSlot)
void watchPostBeginJob(PostBeginJob::slot_type const &iSlot)
convenience function for attaching to signal
evf::MicroStateServiceClassic::~MicroStateServiceClassic ( )
override

Definition at line 21 of file MicroStateServiceClassic.cc.

21 {}

Member Function Documentation

std::string evf::MicroStateServiceClassic::getMicroState1 ( )
overridevirtual

Reimplemented from evf::MicroStateService.

Definition at line 64 of file MicroStateServiceClassic.cc.

References lock_, and microstate1_.

64  {
65  boost::mutex::scoped_lock sl(lock_);
66  return microstate1_;
67  }
std::string const & evf::MicroStateServiceClassic::getMicroState2 ( )
overridevirtual

Reimplemented from evf::MicroStateService.

Definition at line 69 of file MicroStateServiceClassic.cc.

References lock_, and microstate2_.

69  {
70  boost::mutex::scoped_lock sl(lock_);
71  return *microstate2_;
72  }
void evf::MicroStateServiceClassic::postBeginJob ( )

Definition at line 23 of file MicroStateServiceClassic.cc.

References lock_, and microstate1_.

Referenced by MicroStateServiceClassic().

23  {
24  boost::mutex::scoped_lock sl(lock_);
25  microstate1_ = "BJD";
26  }
void evf::MicroStateServiceClassic::postEndJob ( )

Definition at line 28 of file MicroStateServiceClassic.cc.

References done, lock_, microstate1_, and microstate2_.

Referenced by MicroStateServiceClassic().

28  {
29  boost::mutex::scoped_lock sl(lock_);
30  microstate1_ = "EJ";
31  microstate2_ = &done;
32  }
void evf::MicroStateServiceClassic::postEventProcessing ( const edm::Event e,
const edm::EventSetup  
)

Definition at line 39 of file MicroStateServiceClassic.cc.

References input, lock_, and microstate2_.

Referenced by MicroStateServiceClassic().

39  {
40  boost::mutex::scoped_lock sl(lock_);
42  }
void evf::MicroStateServiceClassic::postModule ( const edm::ModuleDescription desc)

Definition at line 59 of file MicroStateServiceClassic.cc.

References fwkovh, lock_, and microstate2_.

Referenced by MicroStateServiceClassic().

59  {
60  boost::mutex::scoped_lock sl(lock_);
62  }
void evf::MicroStateServiceClassic::postSourceEvent ( edm::StreamID  )

Definition at line 49 of file MicroStateServiceClassic.cc.

References fwkovh, lock_, and microstate2_.

Referenced by MicroStateServiceClassic().

49  {
50  boost::mutex::scoped_lock sl(lock_);
52  }
void evf::MicroStateServiceClassic::preEventProcessing ( const edm::EventID iID,
const edm::Timestamp iTime 
)

Definition at line 34 of file MicroStateServiceClassic.cc.

References lock_, and microstate1_.

Referenced by MicroStateServiceClassic().

34  {
35  boost::mutex::scoped_lock sl(lock_);
36  microstate1_ = "PRO";
37  }
void evf::MicroStateServiceClassic::preModule ( const edm::ModuleDescription desc)

Definition at line 54 of file MicroStateServiceClassic.cc.

References lock_, microstate2_, and edm::ModuleDescription::moduleLabel().

Referenced by MicroStateServiceClassic().

54  {
55  boost::mutex::scoped_lock sl(lock_);
56  microstate2_ = &(desc.moduleLabel());
57  }
std::string const & moduleLabel() const
void evf::MicroStateServiceClassic::preSourceEvent ( edm::StreamID  )

Definition at line 44 of file MicroStateServiceClassic.cc.

References input, lock_, and microstate2_.

Referenced by MicroStateServiceClassic().

44  {
45  boost::mutex::scoped_lock sl(lock_);
47  }
void evf::MicroStateServiceClassic::setMicroState ( MicroStateService::Microstate  m)
overridevirtual

Member Data Documentation

const std::string evf::MicroStateServiceClassic::done
private

Definition at line 47 of file MicroStateServiceClassic.h.

Referenced by postEndJob().

const std::string evf::MicroStateServiceClassic::fwkovh
private

Definition at line 49 of file MicroStateServiceClassic.h.

Referenced by postModule(), and postSourceEvent().

const std::string evf::MicroStateServiceClassic::init
private

Definition at line 46 of file MicroStateServiceClassic.h.

const std::string evf::MicroStateServiceClassic::input
private

Definition at line 48 of file MicroStateServiceClassic.h.

Referenced by postEventProcessing(), and preSourceEvent().

boost::mutex evf::MicroStateServiceClassic::lock_
private
std::string evf::MicroStateServiceClassic::microstate1_
private
const std::string* evf::MicroStateServiceClassic::microstate2_
private