ATLAS Offline Software
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
TrigConf::TrigDBMenuLoader Class Reference

Loader of trigger menu configurations from the database. More...

#include <TrigDBMenuLoader.h>

Inheritance diagram for TrigConf::TrigDBMenuLoader:
Collaboration diagram for TrigConf::TrigDBMenuLoader:

Public Member Functions

 TrigDBMenuLoader (const std::string &connection)
 Constructor. More...
 
virtual ~TrigDBMenuLoader () override
 Destructor - cannot be defined here because QueryDefinition is an incomplete type. More...
 
bool loadL1Menu (unsigned int smk, boost::property_tree::ptree &l1menu, const std::string &outFileName="") const
 Load L1 menu content from the Trigger DB into a ptree for a given SuperMasterKey (SMK) More...
 
bool loadHLTMenu (unsigned int smk, boost::property_tree::ptree &hltmenu, const std::string &outFileName="") const
 Load HLT menu content from the Trigger DB into two ptrees for a given SuperMasterKey (SMK) More...
 
bool loadL1Menu (unsigned int smk, L1Menu &l1menu, const std::string &outFileName="") const
 Load content from the Trigger DB into an L1Menu for a given SuperMasterKey (SMK) More...
 
bool loadHLTMenu (unsigned int smk, HLTMenu &hltmenu, const std::string &outFileName="") const
 Load content from the Trigger DB into an HLTMenu for a given SuperMasterKey (SMK) More...
 
size_t schemaVersion (coral::ISessionProxy *session) const
 access to TriggerDB schema version More...
 
bool writeRawFile (const coral::Blob &data, const std::string &outFileName) const
 write data blob into file This can be used to write the DB content to file without going through a ptree More...
 
void setLevel (MSGTC::Level lvl)
 
MSGTC::Level outputLevel () const
 
bool msgLvl (const MSGTC::Level lvl) const
 Test the output level. More...
 
MsgStreamTCmsg () const
 The standard message stream. More...
 
MsgStreamTCmsg (const MSGTC::Level lvl) const
 The standard message stream. More...
 

Protected Member Functions

std::unique_ptr< coral::ISessionProxy > createDBSession () const
 create (if needed) DB session and return the session proxy More...
 
QueryDefinition getQueryDefinition (size_t schemaVersion, const std::map< size_t, QueryDefinition > &queries) const
 return query for given schemaVersion from possible queries More...
 

Private Attributes

std::map< size_t, QueryDefinitionm_l1queries
 
std::map< size_t, QueryDefinitionm_hltqueries
 
std::string m_connection {"TRIGGERDB"}
 
int m_retrialPeriod {0}
 
int m_retrialTimeout {0}
 
int m_connectionTimeout {0}
 
boost::thread_specific_ptr< MsgStreamTCm_msg_tls
 MsgStreamTC instance (a std::cout like with print-out levels) More...
 
std::string m_name
 

Detailed Description

Loader of trigger menu configurations from the database.

Definition at line 30 of file TrigDBMenuLoader.h.

Constructor & Destructor Documentation

◆ TrigDBMenuLoader()

TrigConf::TrigDBMenuLoader::TrigDBMenuLoader ( const std::string &  connection)

Constructor.

Definition at line 6 of file TrigDBMenuLoader.cxx.

6  :
7  TrigDBLoader("TrigDBMenuLoader", connection)
8 {
9  /*
10  L1 menu queries
11  */
12  { // for schema version 1
13  auto & q = m_l1queries[1];
14  // tables
15  q.addToTableList ( "SUPER_MASTER_TABLE", "SMT" );
16  q.addToTableList ( "L1_MASTER_TABLE", "L1MT" );
17  // bind vars
18  q.extendBinding<int>("smk");
19  // conditions
20  q.extendCondition("SMT.SMT_ID = :smk");
21  q.extendCondition(" AND SMT.SMT_L1_MASTER_TABLE_ID = L1MT.L1MT_ID");
22  // attributes
23  q.extendOutput<std::string>( "SMT.SMT_NAME" );
24  q.extendOutput<int> ( "SMT.SMT_L1_MASTER_TABLE_ID" );
25  q.extendOutput<coral::Blob>( "L1MT.L1MT_MENU" );
26  // the field with the data
27  q.setDataName("L1MT.L1MT_MENU");
28  }
29  { // for schema version 2
30  auto & q = m_l1queries[2];
31  // tables
32  q.addToTableList ( "SUPER_MASTER_TABLE", "SMT" );
33  q.addToTableList ( "L1_MENU", "L1TM" );
34  // bind vars
35  q.extendBinding<int>("smk");
36  // conditions
37  q.extendCondition("SMT.SMT_ID = :smk");
38  q.extendCondition(" AND SMT.SMT_L1_MENU_ID = L1TM.L1TM_ID");
39  // attributes
40  q.extendOutput<std::string>( "SMT.SMT_NAME" );
41  q.extendOutput<int> ( "SMT.SMT_VERSION" );
42  q.extendOutput<int> ( "SMT.SMT_L1_MENU_ID" );
43  q.extendOutput<coral::Blob>( "L1TM.L1TM_DATA" );
44  // the field with the data
45  q.setDataName("L1TM.L1TM_DATA");
46  }
47 
48  /*
49  HLT menu queries
50  */
51  { // for schema version 1
52  auto & q = m_hltqueries[1];
53  // tables
54  q.addToTableList ( "SUPER_MASTER_TABLE", "SMT" );
55  q.addToTableList ( "HLT_MASTER_TABLE", "HMT" );
56  // bind vars
57  q.extendBinding<int>("smk");
58  // conditions
59  q.extendCondition("SMT.SMT_ID = :smk");
60  q.extendCondition(" AND SMT.SMT_HLT_MASTER_TABLE_ID = HMT.HMT_ID");
61  // attributes
62  q.extendOutput<std::string>( "SMT.SMT_NAME" );
63  q.extendOutput<int> ( "SMT.SMT_HLT_MASTER_TABLE_ID" );
64  q.extendOutput<coral::Blob>( "HMT.HMT_MENU" );
65  // the field with the data
66  q.setDataName("HMT.HMT_MENU");
67  }
68  { // for schema version 2
69  auto & q = m_hltqueries[2];
70  // tables
71  q.addToTableList ( "SUPER_MASTER_TABLE", "SMT" );
72  q.addToTableList ( "HLT_MENU", "HTM" );
73  // bind vars
74  q.extendBinding<int>("smk");
75  // conditions
76  q.extendCondition("SMT.SMT_ID = :smk");
77  q.extendCondition(" AND SMT.SMT_HLT_MENU_ID = HTM.HTM_ID");
78  // attributes
79  q.extendOutput<std::string>( "SMT.SMT_NAME" );
80  q.extendOutput<int> ( "SMT.SMT_VERSION" );
81  q.extendOutput<int> ( "SMT.SMT_HLT_MENU_ID" );
82  q.extendOutput<coral::Blob>( "HTM.HTM_DATA" );
83  // the field with the data
84  q.setDataName("HTM.HTM_DATA");
85  }
86 }

◆ ~TrigDBMenuLoader()

TrigConf::TrigDBMenuLoader::~TrigDBMenuLoader ( )
overridevirtualdefault

Destructor - cannot be defined here because QueryDefinition is an incomplete type.

Member Function Documentation

◆ createDBSession()

std::unique_ptr< coral::ISessionProxy > TrigConf::TrigDBLoader::createDBSession ( ) const
protectedinherited

create (if needed) DB session and return the session proxy

Definition at line 94 of file TrigDBLoader.cxx.

94  {
95 
96  coral::ConnectionService connSvc;
97  coral::IConnectionServiceConfiguration& csc = connSvc.configuration();
98  csc.setConnectionRetrialPeriod( m_retrialPeriod );
99  csc.setConnectionRetrialTimeOut( m_retrialTimeout );
100  csc.setConnectionTimeOut( m_connectionTimeout );
101 
102  /* TODO
103  if(csc.replicaSortingAlgorithm() == nullptr) { // likely to be standalone, create our own
104  TRG_MSG_INFO("Create own ReplicaSortingAlgorithm");
105  m_replicaSorter = new TrigConf::ReplicaSorter();
106  csc.setReplicaSortingAlgorithm(*m_replicaSorter);
107  }
108  */
109 
110  TRG_MSG_INFO("Connecting to " << m_connection);
111 
112  auto proxy = std::unique_ptr<coral::ISessionProxy>( connSvc.connect(m_connection, coral::AccessMode::ReadOnly) );
113 
114  TRG_MSG_INFO("Opened session " << m_connection << " with retrialPeriod/retrialTimeout/connectionTimeout: "
115  << m_retrialPeriod << "/" << m_retrialTimeout << "/" << m_connectionTimeout);
116 
117  return proxy;
118 }

◆ getQueryDefinition()

TrigConf::QueryDefinition TrigConf::TrigDBLoader::getQueryDefinition ( size_t  schemaVersion,
const std::map< size_t, QueryDefinition > &  queries 
) const
protectedinherited

return query for given schemaVersion from possible queries

Definition at line 122 of file TrigDBLoader.cxx.

124 {
125  // find the largest version key in the map of defined queries that is <= the schemaVersion
126  size_t maxDefVersion = 0;
127  for(auto & entry : queries) {
128  size_t vkey = entry.first;
129  if(vkey>maxDefVersion and vkey<=schemaVersion) {
130  maxDefVersion = vkey;
131  }
132  }
133  // if nothing found, throw an error
134  if( maxDefVersion==0 ) {
135  TRG_MSG_ERROR("No query for schema version " << schemaVersion << " defined" );
136  throw TrigConf::NoQueryException( "No query available for schema version" + std::to_string(schemaVersion) );
137  }
138  return queries.at(maxDefVersion);
139 }

◆ loadHLTMenu() [1/2]

bool TrigConf::TrigDBMenuLoader::loadHLTMenu ( unsigned int  smk,
boost::property_tree::ptree hltmenu,
const std::string &  outFileName = "" 
) const

Load HLT menu content from the Trigger DB into two ptrees for a given SuperMasterKey (SMK)

Parameters
smk[in] the SMK that should be loaded
hltmenu[out] the loaded HLT menu
Returns
true if loading was successfull

Definition at line 123 of file TrigDBMenuLoader.cxx.

126 {
127  auto session = createDBSession();
128  session->transaction().start( /*bool readonly=*/ true);
129  const size_t sv = schemaVersion(session.get());
130  QueryDefinition qdef = getQueryDefinition(sv, m_hltqueries);
131  try {
132  qdef.setBoundValue<int>("smk", smk);
133  auto q = qdef.createQuery( session.get() );
134  auto & cursor = q->execute();
135  if ( ! cursor.next() ) {
136  TRG_MSG_ERROR("Tried reading HLT menu, but SuperMasterKey " << smk << " is not available" );
137  throw TrigConf::NoSMKException("TrigDBMenuLoader (HLTMenu): SMK " + std::to_string(smk) + " not available");
138  }
139  const coral::AttributeList& row = cursor.currentRow();
140  const coral::Blob& dataBlob = row[qdef.dataName()].data<coral::Blob>();
141  writeRawFile( dataBlob, outFileName );
142  blobToPtree( dataBlob, hltmenu );
143  }
144  catch(coral::QueryException & ex) {
145  TRG_MSG_ERROR("When reading HLT menu for SMK " << smk << " a coral::QueryException was caught ( " << ex.what() <<" )" );
146  throw TrigConf::QueryException("TrigDBMenuLoader (HLTMenu): " + std::string(ex.what()));
147  }
148  return true;
149 }

◆ loadHLTMenu() [2/2]

bool TrigConf::TrigDBMenuLoader::loadHLTMenu ( unsigned int  smk,
HLTMenu hltmenu,
const std::string &  outFileName = "" 
) const

Load content from the Trigger DB into an HLTMenu for a given SuperMasterKey (SMK)

Parameters
smk[in] the SMK that should be loaded
hltmenu[out] the loaded HLT menu
outFileName[in] if set, an outputfile with the raw data blob is written
Returns
true if loading was successfull

Definition at line 172 of file TrigDBMenuLoader.cxx.

174 {
176  loadHLTMenu( smk, pthlt, outFileName );
177  try {
178  hltmenu.setData(std::move(pthlt));
179  hltmenu.setSMK(smk);
180  }
181  catch(std::exception & ex) {
182  hltmenu.clear();
183  TRG_MSG_ERROR("When reading HLT menu for SMK " << smk << " a parsing error occured ( " << ex.what() <<" )" );
184  throw TrigConf::ParsingException("TrigDBMenuLoader: parsing error " + std::string(ex.what()));
185  }
186  return true;
187 }

◆ loadL1Menu() [1/2]

bool TrigConf::TrigDBMenuLoader::loadL1Menu ( unsigned int  smk,
boost::property_tree::ptree l1menu,
const std::string &  outFileName = "" 
) const

Load L1 menu content from the Trigger DB into a ptree for a given SuperMasterKey (SMK)

Parameters
smk[in] the SMK that should be loaded
l1menu[out] the loaded L1 menu
Returns
true if loading was successfull

Definition at line 93 of file TrigDBMenuLoader.cxx.

96 {
97  auto session = createDBSession();
98  session->transaction().start( /*bool readonly=*/ true);
99  const size_t sv = schemaVersion(session.get());
100  QueryDefinition qdef = getQueryDefinition(sv, m_l1queries);
101  try {
102  qdef.setBoundValue<int>("smk", smk);
103  auto q = qdef.createQuery( session.get() );
104  auto & cursor = q->execute();
105  if ( ! cursor.next() ) {
106  TRG_MSG_ERROR("Tried reading L1 menu, but SuperMasterKey " << smk << " is not available" );
107  throw TrigConf::NoSMKException("TrigDBMenuLoader (L1Menu): SMK " + std::to_string(smk) + " not available");
108  }
109  const coral::AttributeList& row = cursor.currentRow();
110  const coral::Blob& dataBlob = row[qdef.dataName()].data<coral::Blob>();
111  writeRawFile( dataBlob, outFileName );
112  blobToPtree( dataBlob, l1menu );
113  }
114  catch(coral::QueryException & ex) {
115  TRG_MSG_ERROR("When reading L1 menu for SMK " << smk << " a coral::QueryException was caught ( " << ex.what() <<" )" );
116  throw TrigConf::QueryException("TrigDBMenuLoader (L1Menu): " + std::string(ex.what()));
117  }
118  return true;
119 }

◆ loadL1Menu() [2/2]

bool TrigConf::TrigDBMenuLoader::loadL1Menu ( unsigned int  smk,
L1Menu l1menu,
const std::string &  outFileName = "" 
) const

Load content from the Trigger DB into an L1Menu for a given SuperMasterKey (SMK)

Parameters
smk[in] the SMK that should be loaded
l1menu[out] the loaded L1 menu
outFileName[in] if set, an outputfile with the raw data blob is written
Returns
true if loading was successfull

Definition at line 153 of file TrigDBMenuLoader.cxx.

155 {
157  loadL1Menu( smk, ptl1, outFileName );
158  try {
159  l1menu.setData(std::move(ptl1));
160  l1menu.setSMK(smk);
161  }
162  catch(std::exception & ex) {
163  l1menu.clear();
164  TRG_MSG_ERROR("When reading L1 menu for SMK " << smk << " a parsing error occured ( " << ex.what() <<" )" );
165  throw TrigConf::ParsingException("TrigDBMenuLoader: parsing error " + std::string(ex.what()));
166  }
167  return true;
168 }

◆ msg() [1/2]

MsgStreamTC & TrigConf::TrigConfMessaging::msg ( ) const
inlineinherited

The standard message stream.

Returns a reference to the message stream May not be invoked before sysInitialize() has been invoked.

Definition at line 81 of file TrigConfMessaging.h.

82  {
83  MsgStreamTC* ms = m_msg_tls.get();
84  if (!ms) {
85  ms = new MsgStreamTC(m_name);
86  m_msg_tls.reset(ms);
87  }
88  return *ms;
89  }

◆ msg() [2/2]

MsgStreamTC & TrigConf::TrigConfMessaging::msg ( const MSGTC::Level  lvl) const
inlineinherited

The standard message stream.

Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.

Definition at line 91 of file TrigConfMessaging.h.

92  {
93  return msg() << lvl;
94  }

◆ msgLvl()

bool TrigConf::TrigConfMessaging::msgLvl ( const MSGTC::Level  lvl) const
inlineinherited

Test the output level.

Parameters
lvlThe message level to test against
Returns
boolean Indicting if messages at given level will be printed
Return values
trueMessages at level "lvl" will be printed

Definition at line 70 of file TrigConfMessaging.h.

71  {
72  if (msg().level() <= lvl) {
73  msg() << lvl;
74  return true;
75  }
76  else {
77  return false;
78  }
79  }

◆ outputLevel()

MSGTC::Level TrigConf::TrigDBLoader::outputLevel ( ) const
inlineinherited

Definition at line 54 of file TrigDBLoader.h.

54 { return msg().level(); }

◆ schemaVersion()

size_t TrigConf::TrigDBLoader::schemaVersion ( coral::ISessionProxy *  session) const
inherited

access to TriggerDB schema version

Returns
version of the DB schema (0 - no version, >0 - schema version)

Definition at line 38 of file TrigDBLoader.cxx.

38  {
39 
40  static const std::string versionTagPrefix("Trigger-Run3-Schema-v");
41 
42  // if database has no schema version, then we return 0
43  if(! session->nominalSchema().existsTable("TRIGGER_SCHEMA") ) {
44  throw std::runtime_error( "Trigger schema has no schema version table" );
45  }
46 
48  // tables
49  qdef.addToTableList ( "TRIGGER_SCHEMA" );
50  // attributes
51  qdef.extendOutput<std::string>( "TS_TAG" );
52 
53  auto query = qdef.createQuery( session );
54  auto & cursor = query->execute();
55  if ( ! cursor.next() ) {
56  throw std::runtime_error( "Trigger schema has schema version table but it is empty" );
57  }
58 
59  const coral::AttributeList& row = cursor.currentRow();
60  std::string versionTag = row["TS_TAG"].data<std::string>();
61  if( ! startswith(versionTag, versionTagPrefix)) {
62  throw std::runtime_error( "Tag format error: Trigger schema version tag " + versionTag + "does not start with " + versionTagPrefix);
63  }
64 
65  std::string vstr = versionTag.substr(versionTagPrefix.size()); // the part of the string containing the version
66  size_t schemaVersion{0};
67  try {
68  schemaVersion = std::stoi(vstr);
69  }
70  catch (const std::invalid_argument& ia) {
71  TRG_MSG_ERROR("Invalid argument when interpreting the version part " << vstr << " of schema tag " << versionTag << ". " << ia.what());
72  throw;
73  }
74 
75  TRG_MSG_INFO("TriggerDB schema version: " << schemaVersion);
76  return schemaVersion;
77 }

◆ setLevel()

void TrigConf::TrigDBLoader::setLevel ( MSGTC::Level  lvl)
inlineinherited

Definition at line 52 of file TrigDBLoader.h.

52 { msg().setLevel(lvl); }

◆ writeRawFile()

bool TrigConf::TrigDBLoader::writeRawFile ( const coral::Blob &  data,
const std::string &  outFileName 
) const
inherited

write data blob into file This can be used to write the DB content to file without going through a ptree

Definition at line 80 of file TrigDBLoader.cxx.

81 {
82  if( outFileName.empty() ) {
83  return true;
84  }
85  std::ofstream outFile;
86  outFile.open( outFileName, std::ofstream::binary );
87  outFile.write( static_cast<const char*> ( data.startingAddress()), data.size() );
88  outFile.close();
89  TRG_MSG_INFO("Wrote file " << outFileName);
90  return true;
91 }

Member Data Documentation

◆ m_connection

std::string TrigConf::TrigDBLoader::m_connection {"TRIGGERDB"}
privateinherited

Definition at line 68 of file TrigDBLoader.h.

◆ m_connectionTimeout

int TrigConf::TrigDBLoader::m_connectionTimeout {0}
privateinherited

Definition at line 71 of file TrigDBLoader.h.

◆ m_hltqueries

std::map<size_t, QueryDefinition> TrigConf::TrigDBMenuLoader::m_hltqueries
private

Definition at line 82 of file TrigDBMenuLoader.h.

◆ m_l1queries

std::map<size_t, QueryDefinition> TrigConf::TrigDBMenuLoader::m_l1queries
private

Definition at line 81 of file TrigDBMenuLoader.h.

◆ m_msg_tls

boost::thread_specific_ptr<MsgStreamTC> TrigConf::TrigConfMessaging::m_msg_tls
mutableprivateinherited

MsgStreamTC instance (a std::cout like with print-out levels)

Definition at line 66 of file TrigConfMessaging.h.

◆ m_name

std::string TrigConf::TrigConfMessaging::m_name
privateinherited

Definition at line 67 of file TrigConfMessaging.h.

◆ m_retrialPeriod

int TrigConf::TrigDBLoader::m_retrialPeriod {0}
privateinherited

Definition at line 69 of file TrigDBLoader.h.

◆ m_retrialTimeout

int TrigConf::TrigDBLoader::m_retrialTimeout {0}
privateinherited

Definition at line 70 of file TrigDBLoader.h.


The documentation for this class was generated from the following files:
TRG_MSG_ERROR
#define TRG_MSG_ERROR(x)
Definition: Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStreamMacros.h:29
query_example.row
row
Definition: query_example.py:24
data
char data[hepevt_bytes_allocation_ATLAS]
Definition: HepEvt.cxx:11
StateLessPT_NewConfig.proxy
proxy
Definition: StateLessPT_NewConfig.py:392
TrigConf::TrigDBMenuLoader::m_l1queries
std::map< size_t, QueryDefinition > m_l1queries
Definition: TrigDBMenuLoader.h:81
TrigConf::TrigConfMessaging::m_msg_tls
boost::thread_specific_ptr< MsgStreamTC > m_msg_tls
MsgStreamTC instance (a std::cout like with print-out levels)
Definition: TrigConfMessaging.h:66
RunEBWeightsComputation.smk
smk
Definition: RunEBWeightsComputation.py:87
TrigConf::TrigDBMenuLoader::loadHLTMenu
bool loadHLTMenu(unsigned int smk, boost::property_tree::ptree &hltmenu, const std::string &outFileName="") const
Load HLT menu content from the Trigger DB into two ptrees for a given SuperMasterKey (SMK)
Definition: TrigDBMenuLoader.cxx:123
TrigConf::NoSMKException
Definition: Trigger/TrigConfiguration/TrigConfIO/TrigConfIO/Exceptions.h:31
TrigConf::TrigDBLoader::schemaVersion
size_t schemaVersion(coral::ISessionProxy *session) const
access to TriggerDB schema version
Definition: TrigDBLoader.cxx:38
TrigConf::TrigDBLoader::m_connection
std::string m_connection
Definition: TrigDBLoader.h:68
python.subdetectors.tile.Blob
Blob
Definition: tile.py:17
python.PyKernel.AttributeList
AttributeList
Definition: PyKernel.py:36
python.SystemOfUnits.ms
int ms
Definition: SystemOfUnits.py:132
TrigConf::QueryDefinition
Definition: TrigDBHelper.h:28
python.iconfTool.models.loaders.level
level
Definition: loaders.py:20
TrigConf::QueryDefinition::extendOutput
void extendOutput(const std::string &fieldName)
Definition: TrigDBHelper.h:65
query
Definition: query.py:1
DumpGeoConfig.outFileName
string outFileName
Definition: DumpGeoConfig.py:252
TrigConf::TrigConfMessaging::m_name
std::string m_name
Definition: TrigConfMessaging.h:67
TrigConf::TrigConfMessaging::msg
MsgStreamTC & msg() const
The standard message stream.
Definition: TrigConfMessaging.h:81
TrigConf::TrigDBMenuLoader::loadL1Menu
bool loadL1Menu(unsigned int smk, boost::property_tree::ptree &l1menu, const std::string &outFileName="") const
Load L1 menu content from the Trigger DB into a ptree for a given SuperMasterKey (SMK)
Definition: TrigDBMenuLoader.cxx:93
calibdata.exception
exception
Definition: calibdata.py:496
TrigConf::MsgStreamTC::level
MSGTC::Level level()
Return message level of stream.
Definition: Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h:53
TrigConf::QueryDefinition::createQuery
std::unique_ptr< coral::IQuery > createQuery(coral::ISessionProxy *session)
Definition: TrigDBHelper.cxx:10
TrigConf::NoQueryException
Definition: Trigger/TrigConfiguration/TrigConfIO/TrigConfIO/Exceptions.h:26
TRG_MSG_INFO
#define TRG_MSG_INFO(x)
Definition: Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStreamMacros.h:27
DQPostProcessTest.outFile
outFile
Comment Out Those You do not wish to run.
Definition: DQPostProcessTest.py:37
GetAllXsec.entry
list entry
Definition: GetAllXsec.py:132
TrigConf::TrigDBLoader::m_retrialTimeout
int m_retrialTimeout
Definition: TrigDBLoader.h:70
TrigConf::TrigDBLoader::m_connectionTimeout
int m_connectionTimeout
Definition: TrigDBLoader.h:71
TrigConf::ParsingException
Definition: Trigger/TrigConfiguration/TrigConfIO/TrigConfIO/Exceptions.h:51
ptree
boost::property_tree::ptree ptree
Definition: JsonFileLoader.cxx:16
TrigConf::QueryException
Definition: Trigger/TrigConfiguration/TrigConfIO/TrigConfIO/Exceptions.h:21
ActsTrk::to_string
std::string to_string(const DetectorType &type)
Definition: GeometryDefs.h:34
TrigConf::TrigDBMenuLoader::m_hltqueries
std::map< size_t, QueryDefinition > m_hltqueries
Definition: TrigDBMenuLoader.h:82
TrigConf::TrigDBLoader::m_retrialPeriod
int m_retrialPeriod
Definition: TrigDBLoader.h:69
query_example.cursor
cursor
Definition: query_example.py:21
TrigConf::blobToPtree
void blobToPtree(const coral::Blob &blob, boost::property_tree::ptree &pt)
Definition: TrigDBHelper.cxx:58
LArCellConditions.sv
bool sv
Definition: LArCellConditions.py:45
TrigConf::TrigDBLoader::writeRawFile
bool writeRawFile(const coral::Blob &data, const std::string &outFileName) const
write data blob into file This can be used to write the DB content to file without going through a pt...
Definition: TrigDBLoader.cxx:80
python.XMLReader.l1menu
l1menu
Definition: XMLReader.py:73
extractSporadic.q
list q
Definition: extractSporadic.py:98
TrigConf::MsgStreamTC::setLevel
void setLevel(MSGTC::Level lvl)
Set message level of stream.
Definition: Trigger/TrigConfiguration/TrigConfBase/Root/MsgStream.cxx:52
TrigConf::TrigDBLoader::createDBSession
std::unique_ptr< coral::ISessionProxy > createDBSession() const
create (if needed) DB session and return the session proxy
Definition: TrigDBLoader.cxx:94
TrigConf::QueryDefinition::addToTableList
void addToTableList(const std::string &table, const std::string &table_short="")
Definition: TrigDBHelper.cxx:42
TrigConf::TrigDBLoader::getQueryDefinition
QueryDefinition getQueryDefinition(size_t schemaVersion, const std::map< size_t, QueryDefinition > &queries) const
return query for given schemaVersion from possible queries
Definition: TrigDBLoader.cxx:122
TrigConf::TrigDBLoader::TrigDBLoader
TrigDBLoader(const std::string &loaderName, const std::string &connection)
Constructor.
Definition: TrigDBLoader.cxx:21