L1TriggerConfig
RPCTriggerConfig
src
RPCObjectKeysOnlineProd.cc
Go to the documentation of this file.
1
// -*- C++ -*-
2
//
3
// Package: L1TriggerConfig
4
// Class: RPCObjectKeysOnlineProd
5
//
13
//
14
// Original Author: Werner Man-Li Sun
15
// Created: Thu Oct 2 19:35:26 CEST 2008
16
//
17
//
18
19
// system include files
20
21
// user include files
22
#include "
CondTools/L1Trigger/interface/L1ObjectKeysOnlineProdBase.h
"
23
24
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
25
26
//
27
// class declaration
28
//
29
30
class
RPCObjectKeysOnlineProd
:
public
L1ObjectKeysOnlineProdBase
{
31
public
:
32
RPCObjectKeysOnlineProd
(
const
edm::ParameterSet
&);
33
~RPCObjectKeysOnlineProd
()
override
;
34
35
void
fillObjectKeys
(
FillType
pL1TriggerKey)
override
;
36
37
private
:
38
// ----------member data ---------------------------
39
bool
m_enableL1RPCConfig
;
40
bool
m_enableL1RPCConeDefinition
;
41
bool
m_enableL1RPCHsbConfig
;
42
bool
m_enableL1RPCBxOrConfig
;
43
};
44
45
//
46
// constants, enums and typedefs
47
//
48
49
//
50
// static data member definitions
51
//
52
53
//
54
// constructors and destructor
55
//
56
RPCObjectKeysOnlineProd::RPCObjectKeysOnlineProd
(
const
edm::ParameterSet
& iConfig)
57
:
L1ObjectKeysOnlineProdBase
(iConfig),
58
m_enableL1RPCConfig(iConfig.getParameter<
bool
>(
"enableL1RPCConfig"
)),
59
m_enableL1RPCConeDefinition(iConfig.getParameter<
bool
>(
"enableL1RPCConeDefinition"
)),
60
m_enableL1RPCHsbConfig(iConfig.getParameter<
bool
>(
"enableL1RPCHsbConfig"
)),
61
m_enableL1RPCBxOrConfig(iConfig.getParameter<
bool
>(
"enableL1RPCBxOrConfig"
)) {}
62
63
RPCObjectKeysOnlineProd::~RPCObjectKeysOnlineProd
() {
64
// do anything here that needs to be done at desctruction time
65
// (e.g. close files, deallocate resources etc.)
66
}
67
68
//
69
// member functions
70
//
71
72
// ------------ method called to produce the data ------------
73
void
RPCObjectKeysOnlineProd::fillObjectKeys
(
FillType
pL1TriggerKey) {
74
std::string
rpcKey = pL1TriggerKey->subsystemKey(
L1TriggerKey::kRPC
);
75
76
if
(!rpcKey.empty()) {
77
if
(
m_enableL1RPCConfig
) {
78
pL1TriggerKey->add(
"L1RPCConfigRcd"
,
"L1RPCConfig"
, rpcKey);
79
}
80
if
(
m_enableL1RPCConeDefinition
) {
81
pL1TriggerKey->add(
"L1RPCConeDefinitionRcd"
,
"L1RPCConeDefinition"
, rpcKey);
82
}
83
if
(
m_enableL1RPCHsbConfig
) {
84
pL1TriggerKey->add(
"L1RPCHsbConfigRcd"
,
"L1RPCHsbConfig"
, rpcKey);
85
}
86
if
(
m_enableL1RPCBxOrConfig
) {
87
pL1TriggerKey->add(
"L1RPCBxOrConfigRcd"
,
"L1RPCBxOrConfig"
, rpcKey);
88
}
89
}
90
}
91
92
//define this as a plug-in
93
DEFINE_FWK_EVENTSETUP_MODULE
(
RPCObjectKeysOnlineProd
);
RPCObjectKeysOnlineProd::m_enableL1RPCBxOrConfig
bool m_enableL1RPCBxOrConfig
Definition:
RPCObjectKeysOnlineProd.cc:42
electrons_cff.bool
bool
Definition:
electrons_cff.py:393
L1TriggerKey::kRPC
Definition:
L1TriggerKey.h:27
RPCObjectKeysOnlineProd::m_enableL1RPCHsbConfig
bool m_enableL1RPCHsbConfig
Definition:
RPCObjectKeysOnlineProd.cc:41
MessageLogger.h
RPCObjectKeysOnlineProd::RPCObjectKeysOnlineProd
RPCObjectKeysOnlineProd(const edm::ParameterSet &)
Definition:
RPCObjectKeysOnlineProd.cc:56
RPCObjectKeysOnlineProd::~RPCObjectKeysOnlineProd
~RPCObjectKeysOnlineProd() override
Definition:
RPCObjectKeysOnlineProd.cc:63
RPCObjectKeysOnlineProd::m_enableL1RPCConfig
bool m_enableL1RPCConfig
Definition:
RPCObjectKeysOnlineProd.cc:39
RPCObjectKeysOnlineProd::m_enableL1RPCConeDefinition
bool m_enableL1RPCConeDefinition
Definition:
RPCObjectKeysOnlineProd.cc:40
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
RPCObjectKeysOnlineProd
Definition:
RPCObjectKeysOnlineProd.cc:30
L1ObjectKeysOnlineProdBase
Definition:
L1ObjectKeysOnlineProdBase.h:39
edm::ParameterSet
Definition:
ParameterSet.h:47
RPCObjectKeysOnlineProd::fillObjectKeys
void fillObjectKeys(FillType pL1TriggerKey) override
Definition:
RPCObjectKeysOnlineProd.cc:73
DEFINE_FWK_EVENTSETUP_MODULE
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition:
ModuleFactory.h:60
L1ObjectKeysOnlineProdBase.h
L1ObjectKeysOnlineProdBase::FillType
std::unique_ptr< L1TriggerKey >::pointer FillType
Definition:
L1ObjectKeysOnlineProdBase.h:45
Generated for CMSSW Reference Manual by
1.8.16