CMS 3D CMS Logo

L1RPCBxOrConfigOnlineProd.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: L1RPCBxOrConfigOnlineProd
4 // Class: L1RPCBxOrConfigOnlineProd
5 //
14 // system include files
15 
16 // user include files
18 
20 
23 
24 //
25 // class declaration
26 //
27 
28 class L1RPCBxOrConfigOnlineProd : public L1ConfigOnlineProdBase<L1RPCBxOrConfigRcd, L1RPCBxOrConfig> {
29 public:
31  ~L1RPCBxOrConfigOnlineProd() override;
32 
33  std::unique_ptr<L1RPCBxOrConfig> newObject(const std::string& objectKey) override;
34 
35 private:
36  // ----------member data ---------------------------
37 };
38 
39 //
40 // constants, enums and typedefs
41 //
42 
43 //
44 // static data member definitions
45 //
46 
47 //
48 // constructors and destructor
49 //
52  //the following line is needed to tell the framework what
53  // data is being produced
54 
55  //now do what ever other initialization is needed
56 }
57 
59  // do anything here that needs to be done at desctruction time
60  // (e.g. close files, deallocate resources etc.)
61 }
62 
63 std::unique_ptr<L1RPCBxOrConfig> L1RPCBxOrConfigOnlineProd::newObject(const std::string& objectKey) {
64  edm::LogError("L1-O2O") << "L1RPCBxOrConfig object with key " << objectKey << " not in ORCON!";
65  auto pBxOrConfig = std::make_unique<L1RPCBxOrConfig>();
66  pBxOrConfig->setFirstBX(0);
67  pBxOrConfig->setLastBX(0);
68  return pBxOrConfig;
69 }
70 
71 //
72 // member functions
73 //
74 
75 // ------------ method called to produce the data ------------
76 
77 //define this as a plug-in
L1RPCBxOrConfig.h
MessageLogger.h
L1RPCBxOrConfigOnlineProd::~L1RPCBxOrConfigOnlineProd
~L1RPCBxOrConfigOnlineProd() override
Definition: L1RPCBxOrConfigOnlineProd.cc:58
L1RPCBxOrConfigOnlineProd
Definition: L1RPCBxOrConfigOnlineProd.cc:28
L1ConfigOnlineProdBase
Definition: L1ConfigOnlineProdBase.h:52
L1RPCBxOrConfigOnlineProd::L1RPCBxOrConfigOnlineProd
L1RPCBxOrConfigOnlineProd(const edm::ParameterSet &)
Definition: L1RPCBxOrConfigOnlineProd.cc:50
L1RPCBxOrConfigRcd.h
edm::ParameterSet
Definition: ParameterSet.h:47
L1RPCBxOrConfigRcd
Definition: L1RPCBxOrConfigRcd.h:23
L1RPCBxOrConfig
Definition: L1RPCBxOrConfig.h:26
edm::LogError
Log< level::Error, false > LogError
Definition: MessageLogger.h:123
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
DEFINE_FWK_EVENTSETUP_MODULE
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
L1RPCBxOrConfigOnlineProd::newObject
std::unique_ptr< L1RPCBxOrConfig > newObject(const std::string &objectKey) override
Definition: L1RPCBxOrConfigOnlineProd.cc:63
L1ConfigOnlineProdBase.h