CMS 3D CMS Logo

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
 
 ~OMDSReader () override
 
- 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 &)=delete
 
const OMDSReaderoperator= (const OMDSReader &)=delete
 

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 43 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 ( )
override

Definition at line 61 of file OMDSReader.cc.

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

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(), das::query(), dataDML::schema, l1t::DataManager::session, AlCaHLTBitMon_QueryRunRegistry::string, and tmp.

Referenced by L1GtPsbSetupConfigOnlineProd::addPsbFromDb(), basicQuery(), basicQueryView(), l1t::OnlineDBqueryHelper::fetch(), 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(), CSCTFConfigOnlineProd::newObject(), L1GctChannelMaskOnlineProd::newObject(), L1GctJetFinderParamsOnlineProd::newObject(), L1TUtmTriggerMenuOnlineProd::newObject(), L1TGlobalPrescalesVetosOnlineProd::newObject(), L1MuTriggerPtScaleOnlineProducer::newObject(), L1HfRingEtScaleOnlineProd::newObject(), DTTFMasksOnlineProd::newObject(), L1JetEtScaleOnlineProd::newObject(), L1EmEtScaleOnlineProd::newObject(), L1HtMissScaleOnlineProd::newObject(), DTTFParametersOnlineProd::newObject(), L1MuTriggerScalesOnlineProducer::newObject(), L1RCTParametersOnlineProd::newObject(), L1RCTChannelMaskOnlineProd::newObject(), L1CaloEcalScaleConfigOnlineProd::newObject(), L1GtParametersConfigOnlineProd::newObject(), L1GtTriggerMaskTechTrigConfigOnlineProd::newObject(), L1GtTriggerMaskAlgoTrigConfigOnlineProd::newObject(), L1GtPrescaleFactorsTechTrigConfigOnlineProd::newObject(), L1GtTriggerMaskVetoTechTrigConfigOnlineProd::newObject(), L1GtPrescaleFactorsAlgoTrigConfigOnlineProd::newObject(), L1GtPsbSetupConfigOnlineProd::newObject(), L1CaloHcalScaleConfigOnlineProd::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  }
def query(query_str, verbose=False)
Definition: das.py:5
Definition: query.py:1
std::vector< std::string > columnNames(const std::string &schemaName, const std::string &tableName)
Definition: OMDSReader.cc:165
#define end
Definition: vmac.h:39
coral::ISessionProxy & coralSession()
Definition: Session.cc:228
std::vector< std::vector< double > > tmp
Definition: MVATrainer.cc:100
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 216 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(), das::query(), l1t::OMDSReader::QueryResults::QueryResults(), dataDML::schema, l1t::DataManager::session, and tmp.

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

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

References l1t::OMDSReader::QueryResults::columnNames().

287  {
288  std::vector< std::string > columnNames ;
289  columnNames.push_back( columnName ) ;
290  return basicQueryGenericKey< T >( columnNames, schemaName, tableName,
291  conditionLHS, conditionRHS, conditionRHSName);
292  }
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(), das::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  }
def query(query_str, verbose=False)
Definition: das.py:5
Definition: query.py:1
std::vector< std::string > columnNames(const std::string &schemaName, const std::string &tableName)
Definition: OMDSReader.cc:165
coral::ISessionProxy & coralSession()
Definition: Session.cc:228
std::vector< std::vector< double > > tmp
Definition: MVATrainer.cc:100
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(), mps_fire::i, cscdqm::h::names, dataDML::schema, and l1t::DataManager::session.

Referenced by basicQuery(), basicQueryView(), L1GtTriggerMaskTechTrigConfigOnlineProd::newObject(), L1GtTriggerMaskAlgoTrigConfigOnlineProd::newObject(), L1GtTriggerMaskVetoTechTrigConfigOnlineProd::newObject(), L1GtPrescaleFactorsTechTrigConfigOnlineProd::newObject(), L1GtPrescaleFactorsAlgoTrigConfigOnlineProd::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  }
static const HistoName names[]
coral::ISessionProxy & coralSession()
Definition: Session.cc:228
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(), mps_fire::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  }
static const HistoName names[]
coral::ISessionProxy & coralSession()
Definition: Session.cc:228
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(), o2o_db_cfgmap.DbManagerDAQ::update_hashmap(), 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 )
privatedelete
template<class T >
const OMDSReader::QueryResults OMDSReader::singleAttribute ( const T data) const

Definition at line 295 of file OMDSReader.h.

References cscdqm::h::names, and l1t::OMDSReader::QueryResults::QueryResults().

Referenced by L1GtPsbSetupConfigOnlineProd::addPsbFromDb(), l1t::OnlineDBqueryHelper::fetch(), CSCTFObjectKeysOnlineProd::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(), L1TUtmTriggerMenuOnlineProd::newObject(), L1TGlobalPrescalesVetosOnlineProd::newObject(), L1MuTriggerPtScaleOnlineProducer::newObject(), L1HfRingEtScaleOnlineProd::newObject(), DTTFParametersOnlineProd::newObject(), L1HtMissScaleOnlineProd::newObject(), L1JetEtScaleOnlineProd::newObject(), L1EmEtScaleOnlineProd::newObject(), DTTFMasksOnlineProd::newObject(), L1MuTriggerScalesOnlineProducer::newObject(), L1RCTParametersOnlineProd::newObject(), L1RCTChannelMaskOnlineProd::newObject(), L1CaloEcalScaleConfigOnlineProd::newObject(), L1GtTriggerMaskAlgoTrigConfigOnlineProd::newObject(), L1GtPrescaleFactorsTechTrigConfigOnlineProd::newObject(), L1GtTriggerMaskVetoTechTrigConfigOnlineProd::newObject(), L1GtPrescaleFactorsAlgoTrigConfigOnlineProd::newObject(), L1GtTriggerMaskTechTrigConfigOnlineProd::newObject(), L1GtParametersConfigOnlineProd::newObject(), L1GtPsbSetupConfigOnlineProd::newObject(), L1CaloHcalScaleConfigOnlineProd::newObject(), L1SubsystemKeysOnlineProdExt::produce(), L1SubsystemKeysOnlineProd::produce(), L1GtTriggerMenuConfigOnlineProd::tableMenuAlgoCondFromDB(), L1GtTriggerMenuConfigOnlineProd::tableMenuAlgoFromDB(), L1GtTriggerMenuConfigOnlineProd::tableMenuCondFromDB(), L1GtTriggerMenuConfigOnlineProd::tableMenuGeneralFromDB(), L1GtTriggerMenuConfigOnlineProd::tableMenuObjectParametersFromDB(), and L1GtTriggerMenuConfigOnlineProd::tableMenuTechTrigFromDB().

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