CMS 3D CMS Logo

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
23 
25 
26 //
27 // class declaration
28 //
29 
31 public:
33  ~RPCObjectKeysOnlineProd() override;
34 
35  void fillObjectKeys(FillType pL1TriggerKey) override;
36 
37 private:
38  // ----------member data ---------------------------
43 };
44 
45 //
46 // constants, enums and typedefs
47 //
48 
49 //
50 // static data member definitions
51 //
52 
53 //
54 // constructors and destructor
55 //
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 
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 ------------
74  std::string rpcKey = pL1TriggerKey->subsystemKey(L1TriggerKey::kRPC);
75 
76  if (!rpcKey.empty()) {
77  if (m_enableL1RPCConfig) {
78  pL1TriggerKey->add("L1RPCConfigRcd", "L1RPCConfig", rpcKey);
79  }
81  pL1TriggerKey->add("L1RPCConeDefinitionRcd", "L1RPCConeDefinition", rpcKey);
82  }
84  pL1TriggerKey->add("L1RPCHsbConfigRcd", "L1RPCHsbConfig", rpcKey);
85  }
87  pL1TriggerKey->add("L1RPCBxOrConfigRcd", "L1RPCBxOrConfig", rpcKey);
88  }
89  }
90 }
91 
92 //define this as a plug-in
RPCObjectKeysOnlineProd::m_enableL1RPCBxOrConfig
bool m_enableL1RPCBxOrConfig
Definition: RPCObjectKeysOnlineProd.cc:42
electrons_cff.bool
bool
Definition: electrons_cff.py:366
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
RPCObjectKeysOnlineProd
Definition: RPCObjectKeysOnlineProd.cc:30
L1ObjectKeysOnlineProdBase
Definition: L1ObjectKeysOnlineProdBase.h:39
edm::ParameterSet
Definition: ParameterSet.h:47
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
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