CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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
Log< level::Error, false > LogError
L1RPCBxOrConfigOnlineProd(const edm::ParameterSet &)
std::unique_ptr< L1RPCBxOrConfig > newObject(const std::string &objectKey) override
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:61