test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1RPCHsbConfigOnlineProd.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: L1RPCHsbConfigOnlineProd
4 // Class: L1RPCHsbConfigOnlineProd
5 //
14 // system include files
15 
16 // user include files
18 
20 
23 
24 //
25 // class declaration
26 //
27 
28 class L1RPCHsbConfigOnlineProd : public L1ConfigOnlineProdBase< L1RPCHsbConfigRcd,
29  L1RPCHsbConfig > {
30  public:
33 
34  virtual boost::shared_ptr< L1RPCHsbConfig > 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 boost::shared_ptr< L1RPCHsbConfig >
72 {
73  edm::LogError( "L1-O2O" ) << "L1RPCHsbConfig object with key "
74  << objectKey << " not in ORCON!" ;
75  boost::shared_ptr< L1RPCHsbConfig > pHsbConfig (new L1RPCHsbConfig());
76  std::vector<int> hsbconf;
77  int mask=3;
78  // XX was: i<9, corrected
79  for (int i=0; i<8; i++) hsbconf.push_back(mask);
80  pHsbConfig->setHsbMask(0, hsbconf);
81  pHsbConfig->setHsbMask(1, hsbconf);
82  return pHsbConfig;
83 // return boost::shared_ptr< L1RPCHsbConfig >() ;
84 }
85 
86 //
87 // member functions
88 //
89 
90 
91 // ------------ method called to produce the data ------------
92 
93 
94 //define this as a plug-in
int i
Definition: DBlmapReader.cc:9
L1RPCHsbConfigOnlineProd(const edm::ParameterSet &)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
virtual boost::shared_ptr< L1RPCHsbConfig > newObject(const std::string &objectKey) override