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 
75  std::string rsKey;
76  rsKeyResults.fillVariable(rsKey);
77 
78  pL1TriggerKey->add("L1MuDTTFMasksRcd", "L1MuDTTFMasks", rsKey);
79 }
80 
81 //define this as a plug-in
l1t::OMDSReader::QueryResults
Definition: OMDSReader.h:49
MessageLogger.h
L1ObjectKeysOnlineProdBase::m_omdsReader
l1t::OMDSReader m_omdsReader
Definition: L1ObjectKeysOnlineProdBase.h:54
DTTFRSKeysOnlineProd::DTTFRSKeysOnlineProd
DTTFRSKeysOnlineProd(const edm::ParameterSet &)
Definition: DTTFRSKeysOnlineProd.cc:52
DTTFRSKeysOnlineProd
Definition: DTTFRSKeysOnlineProd.cc:30
l1t::OMDSReader::QueryResults::fillVariable
bool fillVariable(const std::string &columnName, T &outputVariable) const
Definition: OMDSReader.h:274
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
L1ObjectKeysOnlineProdBase
Definition: L1ObjectKeysOnlineProdBase.h:39
edm::ParameterSet
Definition: ParameterSet.h:47
l1t::OMDSReader::QueryResults::numberRows
int numberRows() const
Definition: OMDSReader.h:60
l1t::OMDSReader::basicQuery
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
edm::LogError
Log< level::Error, false > LogError
Definition: MessageLogger.h:123
DTTFRSKeysOnlineProd::~DTTFRSKeysOnlineProd
~DTTFRSKeysOnlineProd() override
Definition: DTTFRSKeysOnlineProd.cc:54
DEFINE_FWK_EVENTSETUP_MODULE
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
DTTFRSKeysOnlineProd::fillObjectKeys
void fillObjectKeys(FillType) override
Definition: DTTFRSKeysOnlineProd.cc:64
l1t::OMDSReader::QueryResults::queryFailed
bool queryFailed() const
Definition: OMDSReader.h:59
L1ObjectKeysOnlineProdBase.h
L1ObjectKeysOnlineProdBase::FillType
std::unique_ptr< L1TriggerKey >::pointer FillType
Definition: L1ObjectKeysOnlineProdBase.h:45