CMS 3D CMS Logo

Public Member Functions | Private Attributes

evf::MicroStateService Class Reference

#include <MicroStateService.h>

List of all members.

Public Member Functions

std::string getMicroState1 ()
std::string 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 &)
 ~MicroStateService ()

Private Attributes

boost::mutex lock_
std::string microstate1_
std::string microstate2_

Detailed Description

Definition at line 18 of file MicroStateService.h.


Constructor & Destructor Documentation

evf::MicroStateService::MicroStateService ( const edm::ParameterSet iPS,
edm::ActivityRegistry reg 
)
evf::MicroStateService::~MicroStateService ( )

Definition at line 28 of file MicroStateService.cc.

  {
  }

Member Function Documentation

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

Definition at line 81 of file MicroStateService.cc.

References lock_, and microstate1_.

  { 
        boost::mutex::scoped_lock sl(lock_);
        return microstate1_;
  }
std::string evf::MicroStateService::getMicroState2 ( )

Definition at line 87 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 32 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 38 of file MicroStateService.cc.

References 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 52 of file MicroStateService.cc.

References 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 75 of file MicroStateService.cc.

References lock_, and microstate2_.

Referenced by MicroStateService().

  {
    boost::mutex::scoped_lock sl(lock_);
    microstate2_ = "FWKOVH";
  }
void evf::MicroStateService::postSource ( )

Definition at line 63 of file MicroStateService.cc.

References 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 45 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 69 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 57 of file MicroStateService.cc.

References lock_, and microstate2_.

Referenced by MicroStateService().

  {
    boost::mutex::scoped_lock sl(lock_);
    microstate2_ = "INPUT";
  }
void evf::MicroStateService::setMicroState ( std::string &  in)

Definition at line 93 of file MicroStateService.cc.

References recoMuon::in, lock_, and microstate2_.

Referenced by FUShmDQMOutputService::postEndLumi().

  {
        boost::mutex::scoped_lock sl(lock_);
        microstate2_ = in;
  }

Member Data Documentation

std::string evf::MicroStateService::microstate1_ [private]
std::string evf::MicroStateService::microstate2_ [private]