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::MicroStateService Class Reference

#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_
 

Detailed Description

Definition at line 21 of file MicroStateService.h.

Constructor & Destructor Documentation

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().

10  :
11  init("INIT")
12  ,done("done")
13  ,input("INPUT")
14  ,fwkovh("FWKOVH")
16  {
17 
20 
25 
28  microstate1_ = "BJ";
29  }
const std::string init
void watchPostEndJob(PostEndJob::slot_type const &iSlot)
void watchPostModule(PostModule::slot_type const &iSlot)
void watchPreProcessEvent(PreProcessEvent::slot_type const &iSlot)
const std::string fwkovh
void preModule(const edm::ModuleDescription &)
void watchPreModule(PreModule::slot_type const &iSlot)
void watchPostProcessEvent(PostProcessEvent::slot_type const &iSlot)
void watchPreSource(PreSource::slot_type const &iSlot)
void preEventProcessing(const edm::EventID &, const edm::Timestamp &)
const std::string * microstate2_
const std::string input
const std::string done
void watchPostSource(PostSource::slot_type const &iSlot)
void postEventProcessing(const edm::Event &, const edm::EventSetup &)
void postModule(const edm::ModuleDescription &)
void watchPostBeginJob(PostBeginJob::slot_type const &iSlot)
convenience function for attaching to signal
evf::MicroStateService::~MicroStateService ( )

Definition at line 32 of file MicroStateService.cc.

33  {
34  }

Member Function Documentation

std::string evf::MicroStateService::getMicroState1 ( )

Definition at line 85 of file MicroStateService.cc.

References lock_, and microstate1_.

86  {
87  boost::mutex::scoped_lock sl(lock_);
88  return microstate1_;
89  }
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().

92  {
93  boost::mutex::scoped_lock sl(lock_);
94  return *microstate2_;
95  }
const std::string * microstate2_
void evf::MicroStateService::postBeginJob ( )

Definition at line 36 of file MicroStateService.cc.

References lock_, and microstate1_.

Referenced by MicroStateService().

37  {
38  boost::mutex::scoped_lock sl(lock_);
39  microstate1_ = "BJD";
40  }
void evf::MicroStateService::postEndJob ( )

Definition at line 42 of file MicroStateService.cc.

References done, lock_, microstate1_, and microstate2_.

Referenced by MicroStateService().

43  {
44  boost::mutex::scoped_lock sl(lock_);
45  microstate1_ = "EJ";
46  microstate2_ = &done;
47  }
const std::string * microstate2_
const std::string 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().

57  {
58  boost::mutex::scoped_lock sl(lock_);
60  }
const std::string * microstate2_
const std::string 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().

80  {
81  boost::mutex::scoped_lock sl(lock_);
83  }
const std::string fwkovh
const std::string * microstate2_
void evf::MicroStateService::postSource ( )

Definition at line 67 of file MicroStateService.cc.

References fwkovh, lock_, and microstate2_.

Referenced by MicroStateService().

68  {
69  boost::mutex::scoped_lock sl(lock_);
71  }
const std::string fwkovh
const std::string * microstate2_
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().

51  {
52  boost::mutex::scoped_lock sl(lock_);
53  microstate1_ = "PRO";
54  }
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().

74  {
75  boost::mutex::scoped_lock sl(lock_);
76  microstate2_ = &(desc.moduleLabel());
77  }
std::string const & moduleLabel() const
const std::string * microstate2_
void evf::MicroStateService::preSource ( )

Definition at line 61 of file MicroStateService.cc.

References input, lock_, and microstate2_.

Referenced by MicroStateService().

62  {
63  boost::mutex::scoped_lock sl(lock_);
65  }
const std::string * microstate2_
const std::string 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().

98  {
99  boost::mutex::scoped_lock sl(lock_);
100  microstate2_ = in;
101  }
const std::string * microstate2_

Member Data Documentation

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
std::string evf::MicroStateService::microstate1_
private
const std::string* evf::MicroStateService::microstate2_
private