CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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(const edm::ParameterSet &)
std::unique_ptr< L1TriggerKey >::pointer FillType
void fillObjectKeys(FillType pL1TriggerKey) override
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60