test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | Public Member Functions | Private Member Functions
l1t::OMDSReader Class Reference

#include <OMDSReader.h>

Inheritance diagram for l1t::OMDSReader:
l1t::DataManager

Classes

class  QueryResults
 

Public Member Functions

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 QueryResults basicQuery (const std::string &columnName, const std::string &schemaName, const std::string &tableName, const std::string &conditionLHS="", const QueryResults conditionRHS=QueryResults(), const std::string &conditionRHSName="")
 
template<class T >
const QueryResults basicQueryGenericKey (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="")
 
template<class T >
const QueryResults basicQueryGenericKey (const std::string &columnName, const std::string &schemaName, const std::string &tableName, const std::string &conditionLHS="", const QueryResults conditionRHS=QueryResults(), const std::string &conditionRHSName="")
 
const QueryResults basicQueryView (const std::vector< std::string > &columnNames, const std::string &schemaName, const std::string &viewName, const std::string &conditionLHS="", const QueryResults conditionRHS=QueryResults(), const std::string &conditionRHSName="")
 
const QueryResults basicQueryView (const std::string &columnName, const std::string &schemaName, const std::string &viewName, const std::string &conditionLHS="", const QueryResults conditionRHS=QueryResults(), const std::string &conditionRHSName="")
 
std::vector< std::string > columnNames (const std::string &schemaName, const std::string &tableName)
 
std::vector< std::string > columnNamesView (const std::string &schemaName, const std::string &viewName)
 
void connect (const std::string &connectString, const std::string &authenticationPath)
 
 OMDSReader ()
 
 OMDSReader (const std::string &connectString, const std::string &authenticationPath)
 
template<class T >
const QueryResults singleAttribute (const T &data) const
 
virtual ~OMDSReader ()
 
- Public Member Functions inherited from l1t::DataManager
void connect (const std::string &connectString, const std::string &authenticationPath, bool isOMDS=false)
 
 DataManager ()
 
 DataManager (const std::string &connectString, const std::string &authenticationPath, bool isOMDS=false)
 
cond::persistency::Session dbSession ()
 
void setDebug (bool debug)
 
virtual ~DataManager ()
 

Private Member Functions

 OMDSReader (const OMDSReader &)
 
const OMDSReaderoperator= (const OMDSReader &)
 

Additional Inherited Members

- Protected Member Functions inherited from l1t::DataManager
edm::eventsetup::TypeTag findType (const std::string &type)
 
- Protected Attributes inherited from l1t::DataManager
cond::persistency::Session session
 

Detailed Description

Definition at line 44 of file OMDSReader.h.

Constructor & Destructor Documentation

OMDSReader::OMDSReader ( )

Definition at line 37 of file OMDSReader.cc.

38  : DataManager()
39  {}
OMDSReader::OMDSReader ( const std::string &  connectString,
const std::string &  authenticationPath 
)

Definition at line 41 of file OMDSReader.cc.

References l1t::DataManager::session, cond::persistency::Transaction::start(), and cond::persistency::Session::transaction().

43  : DataManager( connectString, authenticationPath, true )
44  {
45  session.transaction().start( true ) ;
46  }
void start(bool readOnly=true)
Definition: Session.cc:22
Transaction & transaction()
Definition: Session.cc:66
cond::persistency::Session session
Definition: DataManager.h:40
OMDSReader::~OMDSReader ( )
virtual

Definition at line 61 of file OMDSReader.cc.

62 {
63 }
l1t::OMDSReader::OMDSReader ( const OMDSReader )
private

Member Function Documentation

const OMDSReader::QueryResults OMDSReader::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 at line 86 of file OMDSReader.cc.

References l1t::OMDSReader::QueryResults::attributeLists(), l1t::OMDSReader::QueryResults::columnNames(), cond::persistency::Session::coralSession(), end, l1t::OMDSReader::QueryResults::fillVariable(), l1t::OMDSReader::QueryResults::numberRows(), o2o::query, dataDML::schema, l1t::DataManager::session, AlCaHLTBitMon_QueryRunRegistry::string, TableParser::table, and tmp.

Referenced by L1GtPsbSetupConfigOnlineProd::addPsbFromDb(), basicQuery(), basicQueryView(), L1TMuonEndcapObjectKeysOnlineProd::fillObjectKeys(), L1TMuonOverlapObjectKeysOnlineProd::fillObjectKeys(), L1TUtmTriggerMenuObjectKeysOnlineProd::fillObjectKeys(), CSCTFObjectKeysOnlineProd::fillObjectKeys(), L1GctRSObjectKeysOnlineProd::fillObjectKeys(), L1GctTSCObjectKeysOnlineProd::fillObjectKeys(), L1MuGMTRSKeysOnlineProd::fillObjectKeys(), L1MuGMTParametersKeysOnlineProd::fillObjectKeys(), L1MuTriggerScaleKeysOnlineProd::fillObjectKeys(), DTTFRSKeysOnlineProd::fillObjectKeys(), DTTFTSCObjectKeysOnlineProd::fillObjectKeys(), RCTObjectKeysOnlineProd::fillObjectKeys(), L1RCT_RSKeysOnlineProd::fillObjectKeys(), L1GtTscObjectKeysOnlineProd::keyL1GtParameters(), L1GtRsObjectKeysOnlineProd::keyL1GtTriggerMaskAlgoTrig(), L1GtRsObjectKeysOnlineProd::keyL1GtTriggerMaskTechTrig(), L1GtRsObjectKeysOnlineProd::keyL1GtTriggerMaskVetoTechTrig(), L1GtTscObjectKeysOnlineProd::keyL1GtTriggerMenu(), CSCTFAlignmentOnlineProd::newObject(), L1MuCSCPtLutConfigOnlineProd::newObject(), L1MuGMTChannelMaskOnlineProducer::newObject(), L1GctChannelMaskOnlineProd::newObject(), L1GctJetFinderParamsOnlineProd::newObject(), CSCTFConfigOnlineProd::newObject(), L1TMuonGlobalParamsOnlineProd::newObject(), L1TGlobalPrescalesVetosOnlineProd::newObject(), L1TMuonBarrelParamsOnlineProd::newObject(), L1TCaloParamsOnlineProd::newObject(), L1TUtmTriggerMenuOnlineProd::newObject(), L1MuTriggerPtScaleOnlineProducer::newObject(), L1EmEtScaleOnlineProd::newObject(), DTTFMasksOnlineProd::newObject(), DTTFParametersOnlineProd::newObject(), L1HfRingEtScaleOnlineProd::newObject(), L1HtMissScaleOnlineProd::newObject(), L1JetEtScaleOnlineProd::newObject(), L1MuTriggerScalesOnlineProducer::newObject(), L1RCTParametersOnlineProd::newObject(), L1CaloEcalScaleConfigOnlineProd::newObject(), L1RCTChannelMaskOnlineProd::newObject(), L1GtTriggerMaskAlgoTrigConfigOnlineProd::newObject(), L1GtParametersConfigOnlineProd::newObject(), L1GtTriggerMaskVetoTechTrigConfigOnlineProd::newObject(), L1GtPrescaleFactorsTechTrigConfigOnlineProd::newObject(), L1GtTriggerMaskTechTrigConfigOnlineProd::newObject(), L1GtPrescaleFactorsAlgoTrigConfigOnlineProd::newObject(), L1CaloHcalScaleConfigOnlineProd::newObject(), L1GtPsbSetupConfigOnlineProd::newObject(), L1SubsystemKeysOnlineProdExt::produce(), and L1SubsystemKeysOnlineProd::produce().

93  {
94  coral::ISessionProxy& coralSession = session.coralSession();
95  coral::ISchema& schema = schemaName.empty() ?
96  coralSession.nominalSchema() :
97  coralSession.schema( schemaName ) ;
98 
99  coral::ITable& table = schema.tableHandle( tableName ) ;
100 
101  // Pointer is deleted automatically at end of function.
102  boost::shared_ptr< coral::IQuery > query( table.newQuery() ) ;
103 
104  // Construct query
105  std::vector< std::string >::const_iterator it = columnNames.begin() ;
106  std::vector< std::string >::const_iterator end = columnNames.end() ;
107  for( ; it != end ; ++it )
108  {
109  query->addToOutputList( *it ) ;
110  }
111 
112  // Only apply condition if RHS has one row.
113  if( !conditionLHS.empty() && conditionRHS.numberRows() == 1 )
114  {
115  if( !conditionRHSName.empty() )
116  {
117  // Assume all RHS types are strings.
118  coral::AttributeList attList ;
119  attList.extend( conditionRHSName, typeid( std::string ) ) ;
120  std::string tmp ;
121  conditionRHS.fillVariable( conditionRHSName, tmp ) ;
122  attList[ conditionRHSName ].data< std::string >() = tmp ;
123 
124  query->setCondition( conditionLHS + " = :" + conditionRHSName,
125  attList ) ;
126  }
127  else if( conditionRHS.columnNames().size() == 1 )
128  // check for only one column
129  {
130  query->setCondition( conditionLHS + " = :" +
131  conditionRHS.columnNames().front(),
132  conditionRHS.attributeLists().front() ) ;
133  }
134  }
135 
136  coral::ICursor& cursor = query->execute() ;
137 
138  // Copy AttributeLists for external use because the cursor is deleted
139  // when the query goes out of scope.
140  std::vector< coral::AttributeList > atts ;
141  while( cursor.next() )
142  {
143  atts.push_back( cursor.currentRow() ) ;
144  } ;
145 
146  return QueryResults( columnNames, atts ) ;
147  }
tuple schema
Definition: dataDML.py:2334
std::vector< std::string > columnNames(const std::string &schemaName, const std::string &tableName)
Definition: OMDSReader.cc:165
#define end
Definition: vmac.h:37
coral::ISessionProxy & coralSession()
Definition: Session.cc:207
std::vector< std::vector< double > > tmp
Definition: MVATrainer.cc:100
tuple query
Definition: o2o.py:269
cond::persistency::Session session
Definition: DataManager.h:40
const OMDSReader::QueryResults OMDSReader::basicQuery ( const std::string &  columnName,
const std::string &  schemaName,
const std::string &  tableName,
const std::string &  conditionLHS = "",
const QueryResults  conditionRHS = QueryResults(),
const std::string &  conditionRHSName = "" 
)

Definition at line 150 of file OMDSReader.cc.

References basicQuery(), and columnNames().

157  {
158  std::vector< std::string > columnNames ;
159  columnNames.push_back( columnName ) ;
160  return basicQuery( columnNames, schemaName, tableName,
161  conditionLHS, conditionRHS, conditionRHSName ) ;
162  }
std::vector< std::string > columnNames(const std::string &schemaName, const std::string &tableName)
Definition: OMDSReader.cc:165
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:86
template<class T >
const OMDSReader::QueryResults OMDSReader::basicQueryGenericKey ( 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 at line 217 of file OMDSReader.h.

References l1t::OMDSReader::QueryResults::attributeLists(), l1t::OMDSReader::QueryResults::columnNames(), cond::persistency::Session::coralSession(), end, l1t::OMDSReader::QueryResults::fillVariable(), l1t::OMDSReader::QueryResults::numberRows(), o2o::query, dataDML::schema, l1t::DataManager::session, TableParser::table, and tmp.

Referenced by L1GtRsObjectKeysOnlineProd::keyL1GtPrescaleFactorsAlgoTrig(), L1GtRsObjectKeysOnlineProd::keyL1GtPrescaleFactorsTechTrig(), L1GtRsObjectKeysOnlineProd::keyL1GtTriggerMaskAlgoTrig(), L1GtRsObjectKeysOnlineProd::keyL1GtTriggerMaskTechTrig(), and L1GtRsObjectKeysOnlineProd::keyL1GtTriggerMaskVetoTechTrig().

224  {
225  coral::ISessionProxy& coralSession = session.coralSession();
226  coral::ISchema& schema = schemaName.empty() ?
227  coralSession.nominalSchema() :
228  coralSession.schema( schemaName ) ;
229 
230  coral::ITable& table = schema.tableHandle( tableName ) ;
231 
232  // Pointer is deleted automatically at end of function.
233  boost::shared_ptr< coral::IQuery > query( table.newQuery() ) ;
234 
235  // Construct query
236  std::vector< std::string >::const_iterator it = columnNames.begin() ;
237  std::vector< std::string >::const_iterator end = columnNames.end() ;
238  for( ; it != end ; ++it )
239  {
240  query->addToOutputList( *it ) ;
241  }
242 
243  // Only apply condition if RHS has one row.
244  if( !conditionLHS.empty() && conditionRHS.numberRows() == 1 )
245  {
246  if( !conditionRHSName.empty() )
247  {
248  // Use type of dummyVariable to determine type of condition RHS
249  coral::AttributeList attList ;
250  attList.extend( conditionRHSName, typeid( T ) ) ;
251  T tmp = T();
252  conditionRHS.fillVariable( conditionRHSName, tmp ) ;
253  attList[ conditionRHSName ].data< T >() = tmp ;
254 
255  query->setCondition( conditionLHS + " = :" + conditionRHSName,
256  attList ) ;
257  }
258  else if( conditionRHS.columnNames().size() == 1 )
259  // check for only one column
260  {
261  query->setCondition( conditionLHS + " = :" +
262  conditionRHS.columnNames().front(),
263  conditionRHS.attributeLists().front() ) ;
264  }
265  }
266 
267  coral::ICursor& cursor = query->execute() ;
268 
269  // Copy AttributeLists for external use because the cursor is deleted
270  // when the query goes out of scope.
271  std::vector< coral::AttributeList > atts ;
272  while( cursor.next() )
273  {
274  atts.push_back( cursor.currentRow() ) ;
275  } ;
276 
277  return QueryResults( columnNames, atts ) ;
278  }
tuple schema
Definition: dataDML.py:2334
std::vector< std::string > columnNames(const std::string &schemaName, const std::string &tableName)
Definition: OMDSReader.cc:165
#define end
Definition: vmac.h:37
coral::ISessionProxy & coralSession()
Definition: Session.cc:207
std::vector< std::vector< double > > tmp
Definition: MVATrainer.cc:100
tuple query
Definition: o2o.py:269
long double T
cond::persistency::Session session
Definition: DataManager.h:40
template<class T >
const OMDSReader::QueryResults OMDSReader::basicQueryGenericKey ( const std::string &  columnName,
const std::string &  schemaName,
const std::string &  tableName,
const std::string &  conditionLHS = "",
const QueryResults  conditionRHS = QueryResults(),
const std::string &  conditionRHSName = "" 
)

Definition at line 281 of file OMDSReader.h.

References columnNames(), and HLT_25ns10e33_v2_cff::tableName.

288  {
289  std::vector< std::string > columnNames ;
290  columnNames.push_back( columnName ) ;
291  return basicQueryGenericKey< T >( columnNames, schemaName, tableName,
292  conditionLHS, conditionRHS, conditionRHSName);
293  }
std::vector< std::string > columnNames(const std::string &schemaName, const std::string &tableName)
Definition: OMDSReader.cc:165
const OMDSReader::QueryResults OMDSReader::basicQueryView ( const std::vector< std::string > &  columnNames,
const std::string &  schemaName,
const std::string &  viewName,
const std::string &  conditionLHS = "",
const QueryResults  conditionRHS = QueryResults(),
const std::string &  conditionRHSName = "" 
)

Definition at line 192 of file OMDSReader.cc.

References l1t::OMDSReader::QueryResults::attributeLists(), l1t::OMDSReader::QueryResults::columnNames(), cond::persistency::Session::coralSession(), l1t::OMDSReader::QueryResults::fillVariable(), l1t::OMDSReader::QueryResults::numberRows(), o2o::query, dataDML::schema, l1t::DataManager::session, AlCaHLTBitMon_QueryRunRegistry::string, and tmp.

Referenced by L1GtPrescaleFactorsAlgoTrigConfigOnlineProd::newObject(), L1GtPrescaleFactorsTechTrigConfigOnlineProd::newObject(), L1CaloHcalScaleConfigOnlineProd::newObject(), L1GtTriggerMenuConfigOnlineProd::tableMenuAlgoCondFromDB(), L1GtTriggerMenuConfigOnlineProd::tableMenuAlgoFromDB(), L1GtTriggerMenuConfigOnlineProd::tableMenuCondFromDB(), L1GtTriggerMenuConfigOnlineProd::tableMenuGeneralFromDB(), L1GtTriggerMenuConfigOnlineProd::tableMenuObjectParametersFromDB(), and L1GtTriggerMenuConfigOnlineProd::tableMenuTechTrigFromDB().

199  {
200  coral::ISessionProxy& coralSession = session.coralSession();
201  coral::ISchema& schema = schemaName.empty() ?
202  coralSession.nominalSchema() :
203  coralSession.schema( schemaName ) ;
204 
205  // coral::IView& view = schema.viewHandle( viewName ) ;
206 
207  // Pointer is deleted automatically at end of function.
208  coral::IQuery* query = schema.newQuery(); ;
209 
210  // Construct query
211  for (std::vector<std::string>::const_iterator constIt = columnNames.begin(); constIt
212  != columnNames.end(); ++constIt) {
213  query->addToOutputList(*constIt);
214  }
215 
216  query->addToTableList(viewName);
217 
218  // Only apply condition if RHS has one row.
219  if (!conditionLHS.empty() && conditionRHS.numberRows() == 1) {
220 
221  if (!conditionRHSName.empty()) {
222  // Assume all RHS types are strings.
223  coral::AttributeList attList;
224  attList.extend(conditionRHSName, typeid(std::string));
226  conditionRHS.fillVariable(conditionRHSName, tmp);
227  attList[conditionRHSName].data<std::string> () = tmp;
228 
229  query->setCondition(conditionLHS + " = :" + conditionRHSName, attList);
230  } else if (conditionRHS.columnNames().size() == 1)
231  // check for only one column
232  {
233  query->setCondition(
234  conditionLHS + " = :" + conditionRHS.columnNames().front(),
235  conditionRHS.attributeLists().front());
236  }
237  }
238 
239  coral::ICursor& cursor = query->execute();
240 
241  // Copy AttributeLists for external use because the cursor is deleted
242  // when the query goes out of scope.
243  std::vector<coral::AttributeList> atts;
244  while (cursor.next()) {
245  atts.push_back(cursor.currentRow());
246  };
247 
248  delete query;
249 
250 // // Run a wildcard query on the view
251 // coral::IQuery* query2 = workingSchema.newQuery();
252 // query2->addToTableList(V0);
253 // coral::ICursor& cursor2 = query2->execute();
254 // while ( cursor2.next() ) {
255 // cursor2.currentRow().toOutputStream( std::cout ) << std::endl;
256 // }
257 // delete query2;
258 
259 
260 
261  return QueryResults(columnNames, atts);
262  }
tuple schema
Definition: dataDML.py:2334
std::vector< std::string > columnNames(const std::string &schemaName, const std::string &tableName)
Definition: OMDSReader.cc:165
coral::ISessionProxy & coralSession()
Definition: Session.cc:207
std::vector< std::vector< double > > tmp
Definition: MVATrainer.cc:100
tuple query
Definition: o2o.py:269
cond::persistency::Session session
Definition: DataManager.h:40
const OMDSReader::QueryResults OMDSReader::basicQueryView ( const std::string &  columnName,
const std::string &  schemaName,
const std::string &  viewName,
const std::string &  conditionLHS = "",
const QueryResults  conditionRHS = QueryResults(),
const std::string &  conditionRHSName = "" 
)

Definition at line 265 of file OMDSReader.cc.

References basicQuery(), and columnNames().

272  {
273  std::vector< std::string > columnNames ;
274  columnNames.push_back( columnName ) ;
275  return basicQuery( columnNames, schemaName, viewName,
276  conditionLHS, conditionRHS, conditionRHSName ) ;
277  }
std::vector< std::string > columnNames(const std::string &schemaName, const std::string &tableName)
Definition: OMDSReader.cc:165
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:86
std::vector< std::string > OMDSReader::columnNames ( const std::string &  schemaName,
const std::string &  tableName 
)

Definition at line 165 of file OMDSReader.cc.

References cond::persistency::Session::coralSession(), i, cscdqm::h::names, dataDML::schema, l1t::DataManager::session, and TableParser::table.

Referenced by basicQuery(), basicQueryGenericKey(), basicQueryView(), L1GtTriggerMaskAlgoTrigConfigOnlineProd::newObject(), L1GtTriggerMaskVetoTechTrigConfigOnlineProd::newObject(), L1GtPrescaleFactorsTechTrigConfigOnlineProd::newObject(), L1GtPrescaleFactorsAlgoTrigConfigOnlineProd::newObject(), L1GtTriggerMaskTechTrigConfigOnlineProd::newObject(), and L1GtPsbSetupConfigOnlineProd::newObject().

168  {
169  coral::ISessionProxy& coralSession = session.coralSession();
170  coral::ISchema& schema = schemaName.empty() ?
171  coralSession.nominalSchema() :
172  coralSession.schema( schemaName ) ;
173 
174  coral::ITable& table = schema.tableHandle( tableName ) ;
175  const coral::ITableDescription& tableDesc = table.description() ;
176 
177  std::vector< std::string > names ;
178  int nCols = tableDesc.numberOfColumns() ;
179 
180  for( int i = 0 ; i < nCols ; ++i )
181  {
182  const coral::IColumn& column = tableDesc.columnDescription( i ) ;
183  names.push_back( column.name() ) ;
184  }
185 
186  return names ;
187  }
int i
Definition: DBlmapReader.cc:9
static const HistoName names[]
tuple schema
Definition: dataDML.py:2334
coral::ISessionProxy & coralSession()
Definition: Session.cc:207
cond::persistency::Session session
Definition: DataManager.h:40
std::vector< std::string > OMDSReader::columnNamesView ( const std::string &  schemaName,
const std::string &  viewName 
)

Definition at line 280 of file OMDSReader.cc.

References cond::persistency::Session::coralSession(), i, cscdqm::h::names, dataDML::schema, and l1t::DataManager::session.

Referenced by L1GtTriggerMenuConfigOnlineProd::tableMenuAlgoCondFromDB(), L1GtTriggerMenuConfigOnlineProd::tableMenuAlgoFromDB(), L1GtTriggerMenuConfigOnlineProd::tableMenuCondFromDB(), L1GtTriggerMenuConfigOnlineProd::tableMenuGeneralFromDB(), L1GtTriggerMenuConfigOnlineProd::tableMenuObjectParametersFromDB(), and L1GtTriggerMenuConfigOnlineProd::tableMenuTechTrigFromDB().

283  {
284  coral::ISessionProxy& coralSession = session.coralSession();
285  coral::ISchema& schema = schemaName.empty() ?
286  coralSession.nominalSchema() :
287  coralSession.schema( schemaName ) ;
288 
289  std::set< std::string > views = schema.listViews ();
290  std::vector< std::string > names ;
291 
292  if (schema.existsView (viewName)) {
293 
294  coral::IView& view = schema.viewHandle( viewName ) ;
295 
296  int nCols = view.numberOfColumns() ;
297 
298  for (int i = 0; i < nCols; ++i) {
299  const coral::IColumn& column = view.column(i);
300  names.push_back(column.name());
301  }
302 
303  return names ;
304 
305  }
306 
307  return names ;
308 
309  }
int i
Definition: DBlmapReader.cc:9
static const HistoName names[]
tuple schema
Definition: dataDML.py:2334
coral::ISessionProxy & coralSession()
Definition: Session.cc:207
cond::persistency::Session session
Definition: DataManager.h:40
void OMDSReader::connect ( const std::string &  connectString,
const std::string &  authenticationPath 
)

Definition at line 49 of file OMDSReader.cc.

References l1t::DataManager::connect(), l1t::DataManager::session, cond::persistency::Transaction::start(), and cond::persistency::Session::transaction().

Referenced by Vispa.Gui.ZoomableScrollArea.ZoomableScrollArea::__init__(), Vispa.Views.PropertyView.BooleanProperty::__init__(), Vispa.Gui.FindDialog.FindDialog::_addScript(), Vispa.Gui.FindDialog.FindDialog::_addStringProperty(), Vispa.Main.Application.Application::_connectSignals(), Vispa.Plugins.ConfigEditor.CodeTableView.CodeTableView::_createItem(), Vispa.Gui.BoxContentDialog.BoxContentDialog::addButton(), Vispa.Gui.ToolBoxContainer.ToolBoxContainer::addWidget(), Vispa.Views.PropertyView.PropertyView::append(), Vispa.Views.PropertyView.PropertyView::appendAddRow(), Vispa.Main.Application.Application::createAction(), Vispa.Views.PropertyView.TextEditWithButtonProperty::createButton(), Vispa.Views.LineDecayView.LineDecayView::createLineDecayContainer(), Vispa.Views.PropertyView.TextEditWithButtonProperty::createLineEdit(), Vispa.Views.LineDecayView.LineDecayContainer::createObject(), Vispa.Views.PropertyView.TextEditWithButtonProperty::createTextEdit(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::filterDialog(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::find(), L1ConfigOnlineProdBase< TRcd, TData >::L1ConfigOnlineProdBase(), L1ConfigOnlineProdBaseExt< TRcd, TData >::L1ConfigOnlineProdBaseExt(), Vispa.Gui.PortWidget.PortWidget::mouseMoveEvent(), Vispa.Views.PropertyView.BooleanProperty::setChecked(), Vispa.Main.SplitterTab.SplitterTab::setController(), Vispa.Plugins.Browser.BrowserTab.BrowserTab::setController(), Vispa.Views.PropertyView.BooleanProperty::setReadOnly(), Vispa.Views.PropertyView.DropDownProperty::setReadOnly(), Vispa.Views.PropertyView.TextEditWithButtonProperty::setReadOnly(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::setTab(), Vispa.Views.PropertyView.IntegerProperty::setValue(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::switchCenterView(), Vispa.Plugins.EdmBrowser.EdmBrowserTabController.EdmBrowserTabController::updateViewMenu(), and Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController::updateViewMenu().

51  {
52  DataManager::connect( connectString, authenticationPath, true ) ;
53  session.transaction().start( true ) ;
54  }
void start(bool readOnly=true)
Definition: Session.cc:22
Transaction & transaction()
Definition: Session.cc:66
void connect(const std::string &connectString, const std::string &authenticationPath, bool isOMDS=false)
Definition: DataManager.cc:24
cond::persistency::Session session
Definition: DataManager.h:40
const OMDSReader& l1t::OMDSReader::operator= ( const OMDSReader )
private
template<class T >
const OMDSReader::QueryResults OMDSReader::singleAttribute ( const T data) const

Definition at line 296 of file OMDSReader.h.

References cscdqm::h::names.

Referenced by L1GtPsbSetupConfigOnlineProd::addPsbFromDb(), CSCTFObjectKeysOnlineProd::fillObjectKeys(), L1TMuonEndcapObjectKeysOnlineProd::fillObjectKeys(), L1TMuonOverlapObjectKeysOnlineProd::fillObjectKeys(), L1TUtmTriggerMenuObjectKeysOnlineProd::fillObjectKeys(), L1GctTSCObjectKeysOnlineProd::fillObjectKeys(), L1MuGMTParametersKeysOnlineProd::fillObjectKeys(), L1MuTriggerScaleKeysOnlineProd::fillObjectKeys(), DTTFTSCObjectKeysOnlineProd::fillObjectKeys(), RCTObjectKeysOnlineProd::fillObjectKeys(), L1GtTscObjectKeysOnlineProd::keyL1GtParameters(), L1GtRsObjectKeysOnlineProd::keyL1GtPrescaleFactorsAlgoTrig(), L1GtRsObjectKeysOnlineProd::keyL1GtPrescaleFactorsTechTrig(), L1GtRsObjectKeysOnlineProd::keyL1GtTriggerMaskAlgoTrig(), L1GtRsObjectKeysOnlineProd::keyL1GtTriggerMaskTechTrig(), L1GtRsObjectKeysOnlineProd::keyL1GtTriggerMaskVetoTechTrig(), L1GtTscObjectKeysOnlineProd::keyL1GtTriggerMenu(), CSCTFAlignmentOnlineProd::newObject(), L1GctChannelMaskOnlineProd::newObject(), CSCTFConfigOnlineProd::newObject(), L1GctJetFinderParamsOnlineProd::newObject(), L1MuCSCPtLutConfigOnlineProd::newObject(), L1MuGMTChannelMaskOnlineProducer::newObject(), L1TMuonGlobalParamsOnlineProd::newObject(), L1TGlobalPrescalesVetosOnlineProd::newObject(), L1TMuonBarrelParamsOnlineProd::newObject(), L1TCaloParamsOnlineProd::newObject(), L1TUtmTriggerMenuOnlineProd::newObject(), L1MuTriggerPtScaleOnlineProducer::newObject(), L1HtMissScaleOnlineProd::newObject(), DTTFParametersOnlineProd::newObject(), L1EmEtScaleOnlineProd::newObject(), L1HfRingEtScaleOnlineProd::newObject(), L1JetEtScaleOnlineProd::newObject(), DTTFMasksOnlineProd::newObject(), L1MuTriggerScalesOnlineProducer::newObject(), L1RCTParametersOnlineProd::newObject(), L1CaloEcalScaleConfigOnlineProd::newObject(), L1RCTChannelMaskOnlineProd::newObject(), L1GtTriggerMaskAlgoTrigConfigOnlineProd::newObject(), L1GtPrescaleFactorsTechTrigConfigOnlineProd::newObject(), L1GtParametersConfigOnlineProd::newObject(), L1GtPrescaleFactorsAlgoTrigConfigOnlineProd::newObject(), L1GtTriggerMaskTechTrigConfigOnlineProd::newObject(), L1GtTriggerMaskVetoTechTrigConfigOnlineProd::newObject(), L1CaloHcalScaleConfigOnlineProd::newObject(), L1GtPsbSetupConfigOnlineProd::newObject(), L1SubsystemKeysOnlineProdExt::produce(), L1SubsystemKeysOnlineProd::produce(), L1GtTriggerMenuConfigOnlineProd::tableMenuAlgoCondFromDB(), L1GtTriggerMenuConfigOnlineProd::tableMenuAlgoFromDB(), L1GtTriggerMenuConfigOnlineProd::tableMenuCondFromDB(), L1GtTriggerMenuConfigOnlineProd::tableMenuGeneralFromDB(), L1GtTriggerMenuConfigOnlineProd::tableMenuObjectParametersFromDB(), and L1GtTriggerMenuConfigOnlineProd::tableMenuTechTrigFromDB().

297  {
298  std::vector< std::string > names ;
299  names.push_back( "dummy" ) ;
300 
301  coral::AttributeList attList ;
302  attList.extend( "dummy", typeid( T ) ) ;
303  attList[ "dummy" ].data< T >() = data ;
304 
305  std::vector< coral::AttributeList > atts ;
306  atts.push_back( attList ) ;
307 
308  return QueryResults( names, atts ) ;
309  }
static const HistoName names[]
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
long double T