CMS 3D CMS Logo

DTTFRSKeysOnlineProd.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: L1TriggerConfig
4 // Class: DTTFRSKeysOnlineProd
5 //
13 //
14 // Original Author: J. Troconiz - UAM Madrid
15 // Created: Thu Oct 2 21:43:50 CEST 2008
16 //
17 //
18 
19 // system include files
20 
21 // user include files
23 
25 
26 //
27 // class declaration
28 //
29 
31 public:
33  ~DTTFRSKeysOnlineProd() override;
34 
35  void fillObjectKeys(FillType) 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 //
53 
55  // do anything here that needs to be done at desctruction time
56  // (e.g. close files, deallocate resources etc.)
57 }
58 
59 //
60 // member functions
61 //
62 
63 // ------------ method called to produce the data ------------
65  // SELECT HW_SETTINGS FROM CMS_DT_TF.DTTF_SETTINGS_KEY_CURRENT
66  l1t::OMDSReader::QueryResults rsKeyResults =
67  m_omdsReader.basicQuery("HW_SETTINGS", "CMS_DT_TF", "DTTF_SETTINGS_KEY_CURRENT");
68 
69  if (rsKeyResults.queryFailed() || rsKeyResults.numberRows() != 1) // check query successful
70  {
71  edm::LogError("L1-O2O") << "Problem with DTTF RS key.";
72  return;
73  }
74 
76  rsKeyResults.fillVariable(rsKey);
77 
78  pL1TriggerKey->add("L1MuDTTFMasksRcd", "L1MuDTTFMasks", rsKey);
79 }
80 
81 //define this as a plug-in
std::unique_ptr< L1TriggerKey >::pointer FillType
DTTFRSKeysOnlineProd(const edm::ParameterSet &)
void fillObjectKeys(FillType) override
Log< level::Error, false > LogError
const QueryResults basicQuery(const std::vector< std::string > &columnNames, const std::string &schemaName, const std::string &tableName, const std::string &conditionLHS="", const QueryResults conditionRHS=QueryResults(), const std::string &conditionRHSName="")
Definition: OMDSReader.cc:75
bool fillVariable(const std::string &columnName, T &outputVariable) const
Definition: OMDSReader.h:274
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:61