CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 // $Id: DTTFRSKeysOnlineProd.cc,v 1.1 2009/05/14 14:13:40 troco Exp $
17 //
18 //
19 
20 
21 // system include files
22 
23 // user include files
25 
27 
28 //
29 // class declaration
30 //
31 
33  public:
36 
37  virtual void fillObjectKeys( ReturnType pL1TriggerKey ) ;
38  private:
39  // ----------member data ---------------------------
40 };
41 
42 //
43 // constants, enums and typedefs
44 //
45 
46 //
47 // static data member definitions
48 //
49 
50 //
51 // constructors and destructor
52 //
54  : L1ObjectKeysOnlineProdBase( iConfig )
55 {}
56 
57 
59 {
60 
61  // do anything here that needs to be done at desctruction time
62  // (e.g. close files, deallocate resources etc.)
63 
64 }
65 
66 
67 //
68 // member functions
69 //
70 
71 // ------------ method called to produce the data ------------
72 void
74 {
75  // SELECT HW_SETTINGS FROM CMS_DT_TF.DTTF_SETTINGS_KEY_CURRENT
76  l1t::OMDSReader::QueryResults rsKeyResults =
77  m_omdsReader.basicQuery( "HW_SETTINGS",
78  "CMS_DT_TF",
79  "DTTF_SETTINGS_KEY_CURRENT" );
80 
81  if( rsKeyResults.queryFailed() ||
82  rsKeyResults.numberRows() != 1 ) // check query successful
83  {
84  edm::LogError( "L1-O2O" ) << "Problem with DTTF RS key." ;
85  return ;
86  }
87 
88  std::string rsKey ;
89  rsKeyResults.fillVariable( rsKey ) ;
90 
91  pL1TriggerKey->add( "L1MuDTTFMasksRcd",
92  "L1MuDTTFMasks",
93  rsKey ) ;
94 }
95 
96 //define this as a plug-in
virtual void fillObjectKeys(ReturnType pL1TriggerKey)
bool fillVariable(const std::string &columnName, T &outputVariable) const
Definition: OMDSReader.h:311
DTTFRSKeysOnlineProd(const edm::ParameterSet &)
boost::shared_ptr< L1TriggerKey > ReturnType
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="") const
Definition: OMDSReader.cc:87
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:56