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,
29  L1RPCBxOrConfig > {
30  public:
32  ~L1RPCBxOrConfigOnlineProd() override;
33 
34  std::shared_ptr< L1RPCBxOrConfig > newObject(
35  const std::string& objectKey ) override ;
36 
37  private:
38  // ----------member data ---------------------------
39 };
40 
41 //
42 // constants, enums and typedefs
43 //
44 
45 //
46 // static data member definitions
47 //
48 
49 //
50 // constructors and destructor
51 //
54 {
55  //the following line is needed to tell the framework what
56  // data is being produced
57 
58  //now do what ever other initialization is needed
59 }
60 
61 
63 {
64 
65  // do anything here that needs to be done at desctruction time
66  // (e.g. close files, deallocate resources etc.)
67 
68 }
69 
70 std::shared_ptr< L1RPCBxOrConfig >
72 {
73  edm::LogError( "L1-O2O" ) << "L1RPCBxOrConfig object with key "
74  << objectKey << " not in ORCON!" ;
75  auto pBxOrConfig = std::make_shared< L1RPCBxOrConfig >();
76  pBxOrConfig->setFirstBX(0);
77  pBxOrConfig->setLastBX(0);
78  return pBxOrConfig;
79 // return std::shared_ptr< L1RPCBxOrConfig >() ;
80 }
81 
82 //
83 // member functions
84 //
85 
86 
87 // ------------ method called to produce the data ------------
88 
89 
90 //define this as a plug-in
L1RPCBxOrConfigOnlineProd(const edm::ParameterSet &)
std::shared_ptr< L1RPCBxOrConfig > newObject(const std::string &objectKey) override
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60