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 //
17 //
18 
19 
20 // system include files
21 
22 // user include files
24 
26 
27 //
28 // class declaration
29 //
30 
32  public:
35 
36  virtual void fillObjectKeys( ReturnType pL1TriggerKey ) override ;
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  : L1ObjectKeysOnlineProdBase( iConfig )
54 {}
55 
56 
58 {
59 
60  // do anything here that needs to be done at desctruction time
61  // (e.g. close files, deallocate resources etc.)
62 
63 }
64 
65 
66 //
67 // member functions
68 //
69 
70 // ------------ method called to produce the data ------------
71 void
73 {
74  // SELECT HW_SETTINGS FROM CMS_DT_TF.DTTF_SETTINGS_KEY_CURRENT
75  l1t::OMDSReader::QueryResults rsKeyResults =
76  m_omdsReader.basicQuery( "HW_SETTINGS",
77  "CMS_DT_TF",
78  "DTTF_SETTINGS_KEY_CURRENT" );
79 
80  if( rsKeyResults.queryFailed() ||
81  rsKeyResults.numberRows() != 1 ) // check query successful
82  {
83  edm::LogError( "L1-O2O" ) << "Problem with DTTF RS key." ;
84  return ;
85  }
86 
87  std::string rsKey ;
88  rsKeyResults.fillVariable( rsKey ) ;
89 
90  pL1TriggerKey->add( "L1MuDTTFMasksRcd",
91  "L1MuDTTFMasks",
92  rsKey ) ;
93 }
94 
95 //define this as a plug-in
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
virtual void fillObjectKeys(ReturnType pL1TriggerKey) override
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
return(e1-e2)*(e1-e2)+dp *dp