EventFilter
Utilities
interface
MicroStateService.h
Go to the documentation of this file.
1
#ifndef EvFMicroStateService_H
2
#define EvFMicroStateService_H 1
3
4
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
5
#include "
FWCore/ServiceRegistry/interface/ActivityRegistry.h
"
6
#include "
DataFormats/Provenance/interface/EventID.h
"
7
#include "
DataFormats/Provenance/interface/Timestamp.h
"
8
#include "
DataFormats/Provenance/interface/ModuleDescription.h
"
9
#include "
DataFormats/Provenance/interface/ParameterSetID.h
"
10
//#include "FWCore/ServiceRegistry/interface/StreamContext.h"
11
12
//#include "boost/thread/thread.hpp"
13
14
#include <string>
15
#include <vector>
16
17
namespace
evf
{
18
19
class
MicroStateService
{
20
public
:
21
enum
Microstate
{
22
mInvalid
= 0,
23
mIdle
,
24
mFwkOvhSrc
,
25
mFwkOvhMod
,
26
mFwkEoL
,
27
mInput
,
28
mDqm
,
29
mBoL
,
30
mEoL
,
31
mGlobEoL
,
32
mCOUNT
33
};
34
// the names of the states - some of them are never reached in an online app
35
static
const
edm::ModuleDescription
reservedMicroStateNames
[
mCOUNT
];
36
MicroStateService
(
const
edm::ParameterSet
&,
edm::ActivityRegistry
&);
37
virtual
~MicroStateService
();
38
39
virtual
std::string
getMicroState1
() {
return
default_return_
; }
40
41
virtual
std::string
const
&
getMicroState2
() {
return
default_return_
; }
42
43
virtual
void
setMicroState
(
Microstate
m
) = 0;
44
virtual
void
setMicroState
(
edm::StreamID
sid,
Microstate
m
) = 0;
45
46
protected
:
47
static
const
std::string
default_return_
;
48
//boost::mutex lock_;
49
};
50
51
}
// namespace evf
52
53
#endif
evf::MicroStateService::mGlobEoL
Definition:
MicroStateService.h:31
edm::StreamID
Definition:
StreamID.h:30
evf::MicroStateService::mCOUNT
Definition:
MicroStateService.h:32
evf::MicroStateService::getMicroState1
virtual std::string getMicroState1()
Definition:
MicroStateService.h:39
evf::MicroStateService::mFwkOvhSrc
Definition:
MicroStateService.h:24
evf::MicroStateService::default_return_
static const std::string default_return_
Definition:
MicroStateService.h:47
evf::MicroStateService::mDqm
Definition:
MicroStateService.h:28
evf::MicroStateService::mInput
Definition:
MicroStateService.h:27
evf::MicroStateService::mFwkEoL
Definition:
MicroStateService.h:26
evf::MicroStateService::mEoL
Definition:
MicroStateService.h:30
edm::ModuleDescription
Definition:
ModuleDescription.h:21
evf::MicroStateService::mInvalid
Definition:
MicroStateService.h:22
ModuleDescription.h
ActivityRegistry.h
evf::MicroStateService::mIdle
Definition:
MicroStateService.h:23
evf::MicroStateService::getMicroState2
virtual const std::string & getMicroState2()
Definition:
MicroStateService.h:41
visualization-live-secondInstance_cfg.m
m
Definition:
visualization-live-secondInstance_cfg.py:72
EventID.h
edm::ActivityRegistry
Definition:
ActivityRegistry.h:132
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
evf::MicroStateService::MicroStateService
MicroStateService(const edm::ParameterSet &, edm::ActivityRegistry &)
Definition:
MicroStateService.cc:19
edm::ParameterSet
Definition:
ParameterSet.h:36
Timestamp.h
evf::MicroStateService::mFwkOvhMod
Definition:
MicroStateService.h:25
evf::MicroStateService::mBoL
Definition:
MicroStateService.h:29
evf::MicroStateService::setMicroState
virtual void setMicroState(Microstate m)=0
evf
Definition:
fillJson.h:27
ParameterSetID.h
evf::MicroStateService::Microstate
Microstate
Definition:
MicroStateService.h:21
ParameterSet.h
evf::MicroStateService::~MicroStateService
virtual ~MicroStateService()
Definition:
MicroStateService.cc:21
evf::MicroStateService
Definition:
MicroStateService.h:19
evf::MicroStateService::reservedMicroStateNames
static const edm::ModuleDescription reservedMicroStateNames[mCOUNT]
Definition:
MicroStateService.h:35
Generated for CMSSW Reference Manual by
1.8.16