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 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 
)
evf::MicroStateService::~MicroStateService ( )

Definition at line 32 of file MicroStateService.cc.

  {
  }

Member Function Documentation

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

Definition at line 85 of file MicroStateService.cc.

References lock_, and microstate1_.

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

  { 
        boost::mutex::scoped_lock sl(lock_);
        return *microstate2_;
  }
void evf::MicroStateService::postBeginJob ( )

Definition at line 36 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 42 of file MicroStateService.cc.

References done, 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 56 of file MicroStateService.cc.

References input, 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 79 of file MicroStateService.cc.

References fwkovh, lock_, and microstate2_.

Referenced by MicroStateService().

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

Definition at line 67 of file MicroStateService.cc.

References fwkovh, 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 49 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 73 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 61 of file MicroStateService.cc.

References input, lock_, and microstate2_.

Referenced by MicroStateService().

  {
    boost::mutex::scoped_lock sl(lock_);
    microstate2_ = &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().

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

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

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