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  for (int i = 0; i < 8; i++)
70  hsbconf.push_back(mask);
71  pHsbConfig->setHsbMask(0, hsbconf);
72  pHsbConfig->setHsbMask(1, hsbconf);
73  return pHsbConfig;
74 }
75 
76 //
77 // member functions
78 //
79 
80 // ------------ method called to produce the data ------------
81 
82 //define this as a plug-in
L1RPCHsbConfigOnlineProd::newObject
std::unique_ptr< L1RPCHsbConfig > newObject(const std::string &objectKey) override
Definition: L1RPCHsbConfigOnlineProd.cc:63
L1RPCHsbConfigRcd
Definition: L1RPCHsbConfigRcd.h:23
mps_fire.i
i
Definition: mps_fire.py:355
MessageLogger.h
L1RPCHsbConfigOnlineProd
Definition: L1RPCHsbConfigOnlineProd.cc:28
L1ConfigOnlineProdBase
Definition: L1ConfigOnlineProdBase.h:52
L1RPCHsbConfigOnlineProd::~L1RPCHsbConfigOnlineProd
~L1RPCHsbConfigOnlineProd() override
Definition: L1RPCHsbConfigOnlineProd.cc:58
L1RPCHsbConfigRcd.h
L1RPCHsbConfigOnlineProd::L1RPCHsbConfigOnlineProd
L1RPCHsbConfigOnlineProd(const edm::ParameterSet &)
Definition: L1RPCHsbConfigOnlineProd.cc:50
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet
Definition: ParameterSet.h:36
edm::LogError
Definition: MessageLogger.h:183
L1RPCHsbConfig
Definition: L1RPCHsbConfig.h:26
DEFINE_FWK_EVENTSETUP_MODULE
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
L1ConfigOnlineProdBase.h
L1RPCHsbConfig.h