CMS 3D CMS Logo

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, L1RPCHsbConfig> {
29 public:
31  ~L1RPCHsbConfigOnlineProd() override;
32 
33  std::unique_ptr<L1RPCHsbConfig> 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<L1RPCHsbConfig> L1RPCHsbConfigOnlineProd::newObject(const std::string& objectKey) {
64  edm::LogError("L1-O2O") << "L1RPCHsbConfig object with key " << objectKey << " not in ORCON!";
65  auto pHsbConfig = std::make_unique<L1RPCHsbConfig>();
66  std::vector<int> hsbconf;
67  int mask = 3;
68  // XX was: i<9, corrected
69  hsbconf.reserve(8);
70  for (int i = 0; i < 8; i++)
71  hsbconf.push_back(mask);
72  pHsbConfig->setHsbMask(0, hsbconf);
73  pHsbConfig->setHsbMask(1, hsbconf);
74  return pHsbConfig;
75 }
76 
77 //
78 // member functions
79 //
80 
81 // ------------ method called to produce the data ------------
82 
83 //define this as a plug-in
Log< level::Error, false > LogError
constexpr uint32_t mask
Definition: gpuClustering.h:26
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:61
L1RPCHsbConfigOnlineProd(const edm::ParameterSet &)
std::unique_ptr< L1RPCHsbConfig > newObject(const std::string &objectKey) override