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
 
const std::string & 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

◆ MicroStateServiceClassic()

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

◆ ~MicroStateServiceClassic()

evf::MicroStateServiceClassic::~MicroStateServiceClassic ( )
override

Definition at line 21 of file MicroStateServiceClassic.cc.

21 {}

Member Function Documentation

◆ getMicroState1()

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

Reimplemented from evf::MicroStateService.

Definition at line 64 of file MicroStateServiceClassic.cc.

64  {
65  boost::mutex::scoped_lock sl(lock_);
66  return microstate1_;
67  }

References lock_, and microstate1_.

◆ getMicroState2()

std::string const & evf::MicroStateServiceClassic::getMicroState2 ( )
overridevirtual

Reimplemented from evf::MicroStateService.

Definition at line 69 of file MicroStateServiceClassic.cc.

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

References lock_, and microstate2_.

◆ postBeginJob()

void evf::MicroStateServiceClassic::postBeginJob ( )

Definition at line 23 of file MicroStateServiceClassic.cc.

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

References lock_, and microstate1_.

Referenced by MicroStateServiceClassic().

◆ postEndJob()

void evf::MicroStateServiceClassic::postEndJob ( )

Definition at line 28 of file MicroStateServiceClassic.cc.

28  {
29  boost::mutex::scoped_lock sl(lock_);
30  microstate1_ = "EJ";
31  microstate2_ = &done;
32  }

References done, lock_, microstate1_, and microstate2_.

Referenced by MicroStateServiceClassic().

◆ postEventProcessing()

void evf::MicroStateServiceClassic::postEventProcessing ( const edm::Event e,
const edm::EventSetup  
)

Definition at line 39 of file MicroStateServiceClassic.cc.

39  {
40  boost::mutex::scoped_lock sl(lock_);
42  }

References input, lock_, and microstate2_.

Referenced by MicroStateServiceClassic().

◆ postModule()

void evf::MicroStateServiceClassic::postModule ( const edm::ModuleDescription desc)

Definition at line 59 of file MicroStateServiceClassic.cc.

59  {
60  boost::mutex::scoped_lock sl(lock_);
62  }

References fwkovh, lock_, and microstate2_.

Referenced by MicroStateServiceClassic().

◆ postSourceEvent()

void evf::MicroStateServiceClassic::postSourceEvent ( edm::StreamID  )

Definition at line 49 of file MicroStateServiceClassic.cc.

49  {
50  boost::mutex::scoped_lock sl(lock_);
52  }

References fwkovh, lock_, and microstate2_.

Referenced by MicroStateServiceClassic().

◆ preEventProcessing()

void evf::MicroStateServiceClassic::preEventProcessing ( const edm::EventID iID,
const edm::Timestamp iTime 
)

Definition at line 34 of file MicroStateServiceClassic.cc.

34  {
35  boost::mutex::scoped_lock sl(lock_);
36  microstate1_ = "PRO";
37  }

References lock_, and microstate1_.

Referenced by MicroStateServiceClassic().

◆ preModule()

void evf::MicroStateServiceClassic::preModule ( const edm::ModuleDescription desc)

Definition at line 54 of file MicroStateServiceClassic.cc.

54  {
55  boost::mutex::scoped_lock sl(lock_);
56  microstate2_ = &(desc.moduleLabel());
57  }

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

Referenced by MicroStateServiceClassic().

◆ preSourceEvent()

void evf::MicroStateServiceClassic::preSourceEvent ( edm::StreamID  )

Definition at line 44 of file MicroStateServiceClassic.cc.

44  {
45  boost::mutex::scoped_lock sl(lock_);
47  }

References input, lock_, and microstate2_.

Referenced by MicroStateServiceClassic().

◆ setMicroState()

void evf::MicroStateServiceClassic::setMicroState ( MicroStateService::Microstate  m)
overridevirtual

Member Data Documentation

◆ done

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

Definition at line 47 of file MicroStateServiceClassic.h.

Referenced by postEndJob().

◆ fwkovh

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

Definition at line 49 of file MicroStateServiceClassic.h.

Referenced by postModule(), and postSourceEvent().

◆ init

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

Definition at line 46 of file MicroStateServiceClassic.h.

◆ input

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

Definition at line 48 of file MicroStateServiceClassic.h.

Referenced by postEventProcessing(), and preSourceEvent().

◆ lock_

boost::mutex evf::MicroStateServiceClassic::lock_
private

◆ microstate1_

std::string evf::MicroStateServiceClassic::microstate1_
private

◆ microstate2_

const std::string* evf::MicroStateServiceClassic::microstate2_
private
edm::ActivityRegistry::watchPostModule
void watchPostModule(PostModule::slot_type const &iSlot)
Definition: ActivityRegistry.h:877
edm::ModuleDescription::moduleLabel
std::string const & moduleLabel() const
Definition: ModuleDescription.h:43
evf::MicroStateServiceClassic::fwkovh
const std::string fwkovh
Definition: MicroStateServiceClassic.h:49
evf::MicroStateServiceClassic::postBeginJob
void postBeginJob()
Definition: MicroStateServiceClassic.cc:23
evf::MicroStateService::mInvalid
Definition: MicroStateService.h:22
evf::MicroStateServiceClassic::preModule
void preModule(const edm::ModuleDescription &)
Definition: MicroStateServiceClassic.cc:54
edm::ActivityRegistry::watchPostSourceEvent
void watchPostSourceEvent(PostSourceEvent::slot_type const &iSlot)
Definition: ActivityRegistry.h:188
evf::MicroStateServiceClassic::done
const std::string done
Definition: MicroStateServiceClassic.h:47
edm::ActivityRegistry::watchPostEndJob
void watchPostEndJob(PostEndJob::slot_type const &iSlot)
Definition: ActivityRegistry.h:168
evf::MicroStateServiceClassic::postSourceEvent
void postSourceEvent(edm::StreamID)
Definition: MicroStateServiceClassic.cc:49
evf::MicroStateServiceClassic::microstate1_
std::string microstate1_
Definition: MicroStateServiceClassic.h:45
evf::MicroStateServiceClassic::postEventProcessing
void postEventProcessing(const edm::Event &, const edm::EventSetup &)
Definition: MicroStateServiceClassic.cc:39
visualization-live-secondInstance_cfg.m
m
Definition: visualization-live-secondInstance_cfg.py:72
evf::MicroStateServiceClassic::preEventProcessing
void preEventProcessing(const edm::EventID &, const edm::Timestamp &)
Definition: MicroStateServiceClassic.cc:34
edm::ActivityRegistry::watchPostBeginJob
void watchPostBeginJob(PostBeginJob::slot_type const &iSlot)
convenience function for attaching to signal
Definition: ActivityRegistry.h:156
evf::MicroStateServiceClassic::preSourceEvent
void preSourceEvent(edm::StreamID)
Definition: MicroStateServiceClassic.cc:44
evf::MicroStateServiceClassic::lock_
boost::mutex lock_
Definition: MicroStateServiceClassic.h:51
evf::MicroStateService::MicroStateService
MicroStateService(const edm::ParameterSet &, edm::ActivityRegistry &)
Definition: MicroStateService.cc:19
evf::MicroStateServiceClassic::postModule
void postModule(const edm::ModuleDescription &)
Definition: MicroStateServiceClassic.cc:59
edm::ActivityRegistry::watchPreModule
void watchPreModule(PreModule::slot_type const &iSlot)
Definition: ActivityRegistry.h:870
evf::MicroStateServiceClassic::microstate2_
const std::string * microstate2_
Definition: MicroStateServiceClassic.h:50
evf::MicroStateServiceClassic::input
const std::string input
Definition: MicroStateServiceClassic.h:48
evf::MicroStateServiceClassic::postEndJob
void postEndJob()
Definition: MicroStateServiceClassic.cc:28
edm::ActivityRegistry::watchPreSourceEvent
void watchPreSourceEvent(PreSourceEvent::slot_type const &iSlot)
Definition: ActivityRegistry.h:182
edm::ActivityRegistry::watchPreProcessEvent
void watchPreProcessEvent(PreProcessEvent::slot_type const &iSlot)
Definition: ActivityRegistry.h:452
edm::ActivityRegistry::watchPostProcessEvent
void watchPostProcessEvent(PostProcessEvent::slot_type const &iSlot)
Definition: ActivityRegistry.h:459
HerwigMaxPtPartonFilter_cfi.moduleLabel
moduleLabel
Definition: HerwigMaxPtPartonFilter_cfi.py:4
evf::MicroStateService::reservedMicroStateNames
static const edm::ModuleDescription reservedMicroStateNames[mCOUNT]
Definition: MicroStateService.h:35