CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 ()
 
std::string const & getMicroState2 ()
 
 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)
 
 ~MicroStateServiceClassic ()
 
- 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, mFwkOvh, mIdle, mInput,
  mInputDone, mDqm, mEoL, 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 23 of file MicroStateServiceClassic.h.

Constructor & Destructor Documentation

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

Definition at line 7 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().

8  :
9  MicroStateService(iPS,reg)
11  {
12 
15 
20 
23  microstate1_ = "BJ";
24  }
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 ( )

Definition at line 27 of file MicroStateServiceClassic.cc.

28  {
29  }

Member Function Documentation

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

Reimplemented from evf::MicroStateService.

Definition at line 81 of file MicroStateServiceClassic.cc.

References lock_, and microstate1_.

82  {
83  boost::mutex::scoped_lock sl(lock_);
84  return microstate1_;
85  }
std::string const & evf::MicroStateServiceClassic::getMicroState2 ( )
virtual

Reimplemented from evf::MicroStateService.

Definition at line 87 of file MicroStateServiceClassic.cc.

References lock_, and microstate2_.

88  {
89  boost::mutex::scoped_lock sl(lock_);
90  return *microstate2_;
91  }
void evf::MicroStateServiceClassic::postBeginJob ( )

Definition at line 31 of file MicroStateServiceClassic.cc.

References lock_, and microstate1_.

Referenced by MicroStateServiceClassic().

32  {
33  boost::mutex::scoped_lock sl(lock_);
34  microstate1_ = "BJD";
35  }
void evf::MicroStateServiceClassic::postEndJob ( )

Definition at line 37 of file MicroStateServiceClassic.cc.

References done, lock_, microstate1_, and microstate2_.

Referenced by MicroStateServiceClassic().

38  {
39  boost::mutex::scoped_lock sl(lock_);
40  microstate1_ = "EJ";
41  microstate2_ = &done;
42  }
void evf::MicroStateServiceClassic::postEventProcessing ( const edm::Event e,
const edm::EventSetup  
)

Definition at line 51 of file MicroStateServiceClassic.cc.

References input, lock_, and microstate2_.

Referenced by MicroStateServiceClassic().

52  {
53  boost::mutex::scoped_lock sl(lock_);
55  }
void evf::MicroStateServiceClassic::postModule ( const edm::ModuleDescription desc)

Definition at line 75 of file MicroStateServiceClassic.cc.

References fwkovh, lock_, and microstate2_.

Referenced by MicroStateServiceClassic().

76  {
77  boost::mutex::scoped_lock sl(lock_);
79  }
void evf::MicroStateServiceClassic::postSourceEvent ( edm::StreamID  )

Definition at line 63 of file MicroStateServiceClassic.cc.

References fwkovh, lock_, and microstate2_.

Referenced by MicroStateServiceClassic().

64  {
65  boost::mutex::scoped_lock sl(lock_);
67  }
void evf::MicroStateServiceClassic::preEventProcessing ( const edm::EventID iID,
const edm::Timestamp iTime 
)

Definition at line 44 of file MicroStateServiceClassic.cc.

References lock_, and microstate1_.

Referenced by MicroStateServiceClassic().

46  {
47  boost::mutex::scoped_lock sl(lock_);
48  microstate1_ = "PRO";
49  }
void evf::MicroStateServiceClassic::preModule ( const edm::ModuleDescription desc)

Definition at line 69 of file MicroStateServiceClassic.cc.

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

Referenced by MicroStateServiceClassic().

70  {
71  boost::mutex::scoped_lock sl(lock_);
72  microstate2_ = &(desc.moduleLabel());
73  }
std::string const & moduleLabel() const
void evf::MicroStateServiceClassic::preSourceEvent ( edm::StreamID  )

Definition at line 57 of file MicroStateServiceClassic.cc.

References input, lock_, and microstate2_.

Referenced by MicroStateServiceClassic().

58  {
59  boost::mutex::scoped_lock sl(lock_);
61  }
void evf::MicroStateServiceClassic::setMicroState ( MicroStateService::Microstate  m)
virtual

Member Data Documentation

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

Definition at line 52 of file MicroStateServiceClassic.h.

Referenced by postEndJob().

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

Definition at line 54 of file MicroStateServiceClassic.h.

Referenced by postModule(), and postSourceEvent().

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

Definition at line 51 of file MicroStateServiceClassic.h.

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

Definition at line 53 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