ATLAS Offline Software
TrigConfCoolWriter.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TrigConf_TrigConfCoolWriter
6 #define TrigConf_TrigConfCoolWriter
7 
8 #include "CoolApplication/Application.h"
9 #include "CoolKernel/DatabaseId.h"
10 #include "CoolKernel/Exception.h"
11 #include "CoolKernel/IDatabaseSvc.h"
12 #include "CoolKernel/IDatabase.h"
13 
14 #include <string>
15 #include <iostream>
16 #include <vector>
17 #include <map>
18 
19 namespace TrigConf {
20 
21  class ThresholdConfig;
22  class CTPConfig;
23  class Menu;
24  class PIT;
25  class TIP;
26  class CaloInfo;
27  class HLTFrame;
28  class PrescaleSet;
29  class HLTPrescaleSet;
30  class BunchGroupSet;
31  class TriggerItem;
32  class TriggerThreshold;
33  class ThresholdMonitor;
34 
35 
36  typedef std::pair<unsigned int,unsigned int> RunRange;
37  typedef std::vector<RunRange> RunRangeVec;
38 
39  class ValidityRange {
40  public:
41  ValidityRange(unsigned int run) {
42  // highest bit==1 indicates infinite run range to be set (would not give valid iov anyway)
43  bool infiniteRange = (run & 0x80000000) != 0;
44  if(infiniteRange) {
45  m_range.first = cool::ValidityKeyMin;
46  m_range.second = cool::ValidityKeyMax;
47  } else {
48  m_range.first = run; m_range.first <<= 32;
49  m_range.second = run+1; m_range.second <<= 32;
50  }
51  }
52 
53  // from run/lb to end of run
54  ValidityRange(unsigned int run, unsigned int lb) {
55  m_range.first = run; m_range.first <<= 32; m_range.first += lb;
56  m_range.second = run+1; m_range.second <<= 32;
57  }
58 
59  ValidityRange(cool::ValidityKey since, cool::ValidityKey until) {
60  m_range.first = since;
61  m_range.second = until;
62  }
63 
65  int firstRN = rr.first;
66  int lastRN = rr.second;
67  // highest bit==1 indicates infinite run range to be set (would not give valid iov anyway)
68  bool infiniteRange = (firstRN & 0x80000000) != 0;
69  if(infiniteRange) {
70  m_range.first = cool::ValidityKeyMin;
71  m_range.second = cool::ValidityKeyMax;
72  } else {
73  m_range.first = firstRN; m_range.first <<= 32;
74  m_range.second = lastRN+1; m_range.second <<= 32;
75  }
76  }
77  cool::ValidityKey& since() { return m_range.first; }
78  cool::ValidityKey& until() { return m_range.second; }
79  private:
80  std::pair<cool::ValidityKey,cool::ValidityKey> m_range;
81  };
82 
83  class TrigConfCoolWriter;
84  class AutoDBOpen {
85  public:
86  AutoDBOpen(TrigConfCoolWriter *writer, bool readOnly);
87  ~AutoDBOpen();
90  bool m_ro;
91  };
92 
93 
96  public:
97 
103  TrigConfCoolWriter(const std::string& dbId, std::ostream & o = std::cout) :
104  m_dbId(cool::DatabaseId(dbId)),
106  m_ostream(o)
107  {}
108 
111 
113  void createSchema(int schemaVersion=0);
114 
116  void recreateSchema(int schemaVersion=0);
117 
122  void printSchema(std::ostream &o);
123 
128  void printSchemaVersion(std::ostream &o);
129 
130 
131  void writeL1Payload( ValidityRange vr, const CTPConfig& ctpConfig);
132 
134  const HLTFrame& hltFrame,
135  const std::string& configSource);
136 
138  unsigned int mck,
139  std::string& release,
140  std::string& info);
141 
142 
154  void writeRunPayload( unsigned int runNumber,
155  unsigned int masterConfigKey,
156  unsigned int hltPrescaleKey,
157  const TrigConf::ThresholdConfig & lvl1Thr,
158  const TrigConf::CTPConfig & ctpConfig,
159  const TrigConf::CaloInfo & caloInfo,
160  const TrigConf::HLTFrame & hltFrame,
161  const std::string & configSource);
162  void writeRunPayload( const RunRangeVec& runRanges,
163  unsigned int masterConfigKey,
164  unsigned int hltPrescaleKey,
165  const TrigConf::ThresholdConfig & lvl1Thr,
166  const TrigConf::CTPConfig & ctpConfig,
167  const TrigConf::CaloInfo & caloInfo,
168  const TrigConf::HLTFrame & hltFrame,
169  const std::string & configSource);
170 
176  void writeL1MenuPayload( ValidityRange vr, const TrigConf::Menu& lvl1Menu);
177  void writeL1MenuPayload( const RunRangeVec& runRanges, const TrigConf::Menu& lvl1Menu);
178 
179  void writeL1CTPCoreInputMapping( ValidityRange vr, const Menu& lvl1Menu);
180 
181 
187  void writeL1MonPayload( unsigned int runNumber, const TrigConf::Menu * lvl1Menu);
188  void writeL1MonPayload( const RunRangeVec& runRanges, const TrigConf::Menu * lvl1Menu);
189 
195  void writeL1BunchGroupLBPayload( const RunRangeVec& runRanges,
196  unsigned int bgKey,
197  const BunchGroupSet& bgs);
199  unsigned int bgKey,
200  const BunchGroupSet& bgs);
201 
202 
210  const Menu& lvl1Menu,
211  const BunchGroupSet& bgs);
212  void writeL1BunchGroupRunPayload( const RunRangeVec& runRanges,
213  const TrigConf::Menu& lvl1Menu,
214  const TrigConf::BunchGroupSet& bgs);
215 
223  void writeHltPrescalePayload( unsigned int runNumber,
224  unsigned int lumiblockNumber,
225  const TrigConf::HLTPrescaleSet & pss);
226  void writeHltPrescalePayload( const RunRangeVec& runRanges,
227  const TrigConf::HLTPrescaleSet & pss);
228  void writeHltPrescalePayload( cool::ValidityKey since,
229  cool::ValidityKey until,
230  const TrigConf::HLTPrescaleSet & pss);
231 
232 
240  void writeL1PrescalePayload( unsigned int runNumber,
241  unsigned int lumiblockNumber,
242  unsigned int lvl1PrescaleKey,
243  const TrigConf::PrescaleSet & prescale);
244  void writeL1PrescalePayload( const RunRangeVec& runRanges,
245  unsigned int lvl1PrescaleKey,
246  const TrigConf::PrescaleSet & prescale);
247  void writeL1PrescalePayload( cool::ValidityKey since,
248  cool::ValidityKey until,
249  unsigned int lvl1PrescaleKey,
250  const TrigConf::PrescaleSet & prescaleSet);
251 
252 
253 
262  void readRunPayload( unsigned int runNumber,
263  TrigConf::HLTFrame & hltFrame,
264  unsigned int & masterConfigKey,
265  unsigned int & hltPrescaleKey,
266  std::string & configSource );
267 
268  void readHLTPayload( unsigned int run,
269  HLTFrame & hltFrame);
270 
271  void readL1Payload( unsigned int run,
272  CTPConfig & ctpc);
273 
274 
281  void readHltPrescalePayload( unsigned int runNumber,
282  unsigned int lumiblockNumber,
284 
285 
293  void readL1BunchGroupLBPayload( unsigned int runNumber,
294  unsigned int lumiblockNumber,
295  int& bgKey,
297 
305  std::pair<std::vector<std::string>, std::map<unsigned int,unsigned char> >
306  readL1BunchGroupRunPayload( unsigned int runNumber);
307 
308 
316  void readL1PrescalePayload( unsigned int runNumber,
317  unsigned int lumiblockNumber,
318  unsigned int& lvl1PrescaleKey,
319  TrigConf::PrescaleSet & prescale);
320 
326  void readL1InputMapPayload( unsigned int runNumber,
327  std::vector<TrigConf::PIT*>& pits,
328  std::vector<TrigConf::TIP*>& tips);
329 
336  void readL1MonMapPayload(unsigned int runNumber,
337  std::vector<TrigConf::ThresholdMonitor*>& mons);
338 
345  void readL1Items(unsigned int runNumber,
346  std::vector<TrigConf::TriggerItem*>& items);
347 
354  void readL1Thresholds(unsigned int runNumber,
355  std::vector<TrigConf::TriggerThreshold*>& thrs);
356 
365  void readL1ItemDef(unsigned int runNumber,
366  const std::vector<TrigConf::TriggerItem*>& items,
367  const std::vector<TrigConf::TriggerThreshold*>& thrs);
368 
374  void readL1Menu(unsigned int runNumber, CTPConfig & ctpc);
375 
376  std::vector<std::string> checkPayloadSize(unsigned int run, unsigned int lb, int displayMode, bool openend, unsigned int lbend);
377 
378  void addWriteFolder(const std::string& fname) { m_writeFolderList.push_back( fname ); }
379 
380  void setVerbosityLevel(unsigned int level) { m_verbosityLevel = level; }
381  unsigned int verbosityLevel() const { return m_verbosityLevel; }
382 
383  bool checkDbConnection(bool readonly);
384 
386 
388 
389  private:
390  friend class AutoDBOpen;
391 
394  m_ostream(std::cout)
395  {};
396 
399  m_ostream(orig.m_ostream)
400  {};
401 
402 
405  cool::IDatabaseSvc& databaseService();
406 
410  cool::IDatabasePtr openDb( bool readOnly = true );
411 
414  bool dbIsOpen();
415 
417  void dropDb();
418 
420  void closeDb(cool::IDatabasePtr& db);
421  void closeDb(); // to be used
422 
424  cool::IDatabasePtr createDb();
425 
427  cool::IDatabasePtr recreateDb();
428 
429  void rangeInfo(const std::string& content, cool::ValidityKey since, cool::ValidityKey until);
430 
432  bool shouldFolderBeUpdated(const std::string & foldername) {
433  if( m_writeFolderList.size()==0 ) return true; // nothing specified --> write everything (default)
435  }
436 
437  // data members
438  // DB connection string: oracle://<server>;schema=<acc_name>;dbname=<db_name>;user=<acc_name>;password=<pwd>
439  cool::DatabaseId m_dbId;
440  cool::IDatabasePtr m_dbPtr;
441  cool::Application m_coolApp;
442 
443  std::vector<std::string> m_writeFolderList;
444  std::ostream & m_ostream;
445 
447  };
448 
449 }
450 
451 #endif
grepfile.info
info
Definition: grepfile.py:38
TrigConf::ValidityRange::ValidityRange
ValidityRange(unsigned int run, unsigned int lb)
Definition: TrigConfCoolWriter.h:54
TrigConf::TrigConfCoolWriter::readL1ItemDef
void readL1ItemDef(unsigned int runNumber, const std::vector< TrigConf::TriggerItem * > &items, const std::vector< TrigConf::TriggerThreshold * > &thrs)
Read run-wise L1 item defintions (conditions) from COOL database.
Definition: TrigConfCoolWriter.cxx:1452
TrigConf::BunchGroupSet
Definition: BunchGroupSet.h:19
TrigConf::TrigConfCoolWriter::writeL1MonPayload
void writeL1MonPayload(unsigned int runNumber, const TrigConf::Menu *lvl1Menu)
Writing L1 run-wise monitoring configuration to COOL.
Definition: TrigConfCoolWriter.cxx:500
TrigConf::ThresholdConfig
Definition: ThresholdConfig.h:17
TrigConf::TrigConfCoolWriter::~TrigConfCoolWriter
~TrigConfCoolWriter()
destructor
Definition: TrigConfCoolWriter.h:110
TrigConf::ValidityRange::ValidityRange
ValidityRange(unsigned int run)
Definition: TrigConfCoolWriter.h:41
TrigConf::TrigConfCoolWriter::readL1BunchGroupRunPayload
std::pair< std::vector< std::string >, std::map< unsigned int, unsigned char > > readL1BunchGroupRunPayload(unsigned int runNumber)
Reading bunch group configuration information from COOL database.
Definition: TrigConfCoolWriter.cxx:1557
TrigConf::PrescaleSet
Definition: PrescaleSet.h:22
TrigConf::TrigConfCoolWriter::readHLTPayload
void readHLTPayload(unsigned int run, HLTFrame &hltFrame)
Definition: TrigConfCoolWriter.cxx:1252
TrigConf::RunRangeVec
std::vector< RunRange > RunRangeVec
Definition: TrigConfCoolWriter.h:37
TrigConf::TrigConfCoolWriter::rangeInfo
void rangeInfo(const std::string &content, cool::ValidityKey since, cool::ValidityKey until)
Definition: TrigConfCoolWriter.cxx:265
TrigConf::AutoDBOpen::~AutoDBOpen
~AutoDBOpen()
Definition: TrigConfCoolWriter.cxx:77
TrigConf::TrigConfCoolWriter::m_verbosityLevel
int m_verbosityLevel
Definition: TrigConfCoolWriter.h:446
TrigConf::AutoDBOpen
Definition: TrigConfCoolWriter.h:84
TrigConf::TrigConfCoolWriter::m_dbId
cool::DatabaseId m_dbId
db connection string
Definition: TrigConfCoolWriter.h:439
TrigConf::TrigConfCoolWriter::readL1Thresholds
void readL1Thresholds(unsigned int runNumber, std::vector< TrigConf::TriggerThreshold * > &thrs)
Read run-wise L1 threshold vector from COOL database.
Definition: TrigConfCoolWriter.cxx:1436
TrigConf::TrigConfCoolWriter::checkPayloadSize
std::vector< std::string > checkPayloadSize(unsigned int run, unsigned int lb, int displayMode, bool openend, unsigned int lbend)
Definition: TrigConfCoolWriter.cxx:1704
CaloCondBlobAlgs_fillNoiseFromASCII.db
db
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:43
TrigConf::TrigConfCoolWriter::readL1MonMapPayload
void readL1MonMapPayload(unsigned int runNumber, std::vector< TrigConf::ThresholdMonitor * > &mons)
Read run-wise LVL1 monitoring configuration from COOL database.
Definition: TrigConfCoolWriter.cxx:1358
python.checkUPD1.foldername
foldername
Definition: checkUPD1.py:77
run
int run(int argc, char *argv[])
Definition: ttree2hdf5.cxx:28
TrigConf::TrigConfCoolWriter::recreateDb
cool::IDatabasePtr recreateDb()
create a new COOL database with prior deletion of the old one
TrigConf::TrigConfCoolWriter::shouldFolderBeUpdated
bool shouldFolderBeUpdated(const std::string &foldername)
check if foldername is in list of writeable folders
Definition: TrigConfCoolWriter.h:432
TrigConf::TrigConfCoolWriter::readL1Menu
void readL1Menu(unsigned int runNumber, CTPConfig &ctpc)
Read L1 menu from COOL database.
Definition: TrigConfCoolWriter.cxx:1473
TrigConf::ValidityRange::until
cool::ValidityKey & until()
Definition: TrigConfCoolWriter.h:78
TrigConf::TrigConfCoolWriter::readL1PrescalePayload
void readL1PrescalePayload(unsigned int runNumber, unsigned int lumiblockNumber, unsigned int &lvl1PrescaleKey, TrigConf::PrescaleSet &prescale)
Reading luminosityblock-wise configuration information the COOL database.
Definition: TrigConfCoolWriter.cxx:1639
TrigConf::AutoDBOpen::AutoDBOpen
AutoDBOpen(TrigConfCoolWriter *writer, bool readOnly)
Definition: TrigConfCoolWriter.cxx:64
TrigConf::TrigConfCoolWriter::readL1Items
void readL1Items(unsigned int runNumber, std::vector< TrigConf::TriggerItem * > &items)
Read run-wise L1 item vector from COOL database.
Definition: TrigConfCoolWriter.cxx:1398
TrigConf::TrigConfCoolWriter::printSchema
void printSchema(std::ostream &o)
Prints the schema in the COOL database.
Definition: TrigConfCoolWriter.cxx:214
TrigConf::TrigConfCoolWriter::writeL1MenuPayload
void writeL1MenuPayload(ValidityRange vr, const TrigConf::Menu &lvl1Menu)
Writing L1 run-wise configuration information to the COOL database.
Definition: TrigConfCoolWriter.cxx:746
TrigConf::TrigConfCoolWriter::writeMCKPayload
void writeMCKPayload(ValidityRange vr, unsigned int mck, std::string &release, std::string &info)
Definition: TrigConfCoolWriter.cxx:428
TrigConf::AutoDBOpen::m_neededToOpen
bool m_neededToOpen
Definition: TrigConfCoolWriter.h:89
TrigConf::TrigConfCoolWriter::recreateSchema
void recreateSchema(int schemaVersion=0)
Create a new schema in the COOL database with prior deletion of the old one.
Definition: TrigConfCoolWriter.cxx:235
XMLtoHeader.count
count
Definition: XMLtoHeader.py:85
TrigConf::TrigConfCoolWriter::readHltPrescalePayload
void readHltPrescalePayload(unsigned int runNumber, unsigned int lumiblockNumber, TrigConf::HLTPrescaleSet &pss)
Reading luminosityblock-wise configuration information the COOL database.
Definition: TrigConfCoolWriter.cxx:1118
cool
Definition: CoolTagInfo.h:12
TrigConf::RunRange
std::pair< unsigned int, unsigned int > RunRange
Definition: TrigConfCoolWriter.h:33
python.iconfTool.models.loaders.level
level
Definition: loaders.py:20
TrigConf::TrigConfCoolWriter::verbosityLevel
unsigned int verbosityLevel() const
Definition: TrigConfCoolWriter.h:381
dq_defect_copy_defect_database.since
def since
Definition: dq_defect_copy_defect_database.py:54
TrigConf
Forward iterator to traverse the main components of the trigger configuration.
Definition: Config.h:22
dq_defect_copy_defect_database.until
def until
Definition: dq_defect_copy_defect_database.py:55
grepfile.content
string content
Definition: grepfile.py:56
TrigConf::TrigConfCoolWriter::TrigConfCoolWriter
TrigConfCoolWriter(const TrigConfCoolWriter &orig)
copy constructor
Definition: TrigConfCoolWriter.h:398
TrigConf::TrigConfCoolWriter::m_dbPtr
cool::IDatabasePtr m_dbPtr
COOL database pointer.
Definition: TrigConfCoolWriter.h:440
TrigConf::Menu
Definition: Menu.h:49
TrigConf::TrigConfCoolWriter::readRunPayload
void readRunPayload(unsigned int runNumber, TrigConf::HLTFrame &hltFrame, unsigned int &masterConfigKey, unsigned int &hltPrescaleKey, std::string &configSource)
Reading run-wise configuration information from COOL database.
Definition: TrigConfCoolWriter.cxx:1293
TrigConf::TrigConfCoolWriter::dbIsOpen
bool dbIsOpen()
check if db is open
Definition: TrigConfCoolWriter.cxx:100
python.BunchSpacingUtils.lb
lb
Definition: BunchSpacingUtils.py:88
TrigConf::TrigConfCoolWriter::writeHltPrescalePayload
void writeHltPrescalePayload(cool::ValidityKey since, cool::ValidityKey until, const TrigConf::HLTPrescaleSet &pss)
TrigConf::TrigConfCoolWriter::clearWriteFolder
void clearWriteFolder()
Definition: TrigConfCoolWriter.h:387
TrigConf::TrigConfCoolWriter::addWriteFolder
void addWriteFolder(const std::string &fname)
Definition: TrigConfCoolWriter.h:378
TrigConf::TrigConfCoolWriter::writeL1BunchGroupRunPayload
void writeL1BunchGroupRunPayload(ValidityRange vr, const Menu &lvl1Menu, const BunchGroupSet &bgs)
Writing run-wise L1 bunch group names and item to bunch group mapping to COOL.
Definition: TrigConfCoolWriter.cxx:945
TrigConf::TrigConfCoolWriter::dropDb
void dropDb()
delete the COOL database
Definition: TrigConfCoolWriter.cxx:241
TrigConf::TrigConfCoolWriter::writeL1BunchGroupLBPayload
void writeL1BunchGroupLBPayload(const RunRangeVec &runRanges, unsigned int bgKey, const BunchGroupSet &bgs)
Writing LB-wise L1 bunch group definition to the COOL database.
Definition: TrigConfCoolWriter.cxx:979
TrigConf::CaloInfo
Definition: CaloInfo.h:35
TrigConf::TrigConfCoolWriter::databaseService
cool::IDatabaseSvc & databaseService()
get COOL db service
Definition: TrigConfCoolWriter.cxx:84
TrigConf::TrigConfCoolWriter::writeRunPayload
void writeRunPayload(unsigned int runNumber, unsigned int masterConfigKey, unsigned int hltPrescaleKey, const TrigConf::ThresholdConfig &lvl1Thr, const TrigConf::CTPConfig &ctpConfig, const TrigConf::CaloInfo &caloInfo, const TrigConf::HLTFrame &hltFrame, const std::string &configSource)
Writing run-wise configuration information the COOL database.
Definition: TrigConfCoolWriter.cxx:458
TrigConf::ValidityRange::ValidityRange
ValidityRange(cool::ValidityKey since, cool::ValidityKey until)
Definition: TrigConfCoolWriter.h:59
TrigConf::TrigConfCoolWriter::closeDb
void closeDb()
Definition: TrigConfCoolWriter.cxx:158
TrigConf::ValidityRange
Definition: TrigConfCoolWriter.h:39
run
Definition: run.py:1
TrigConf::TrigConfCoolWriter::readL1InputMapPayload
void readL1InputMapPayload(unsigned int runNumber, std::vector< TrigConf::PIT * > &pits, std::vector< TrigConf::TIP * > &tips)
Read run-wise PIT configuration from COOL database.
Definition: TrigConfCoolWriter.cxx:1319
TrigConf::TrigConfCoolWriter::readL1BunchGroupLBPayload
void readL1BunchGroupLBPayload(unsigned int runNumber, unsigned int lumiblockNumber, int &bgKey, TrigConf::BunchGroupSet &bgs)
Reading lb-wise bunch group configuration information from COOL database.
Definition: TrigConfCoolWriter.cxx:1579
TrigConf::ValidityRange::since
cool::ValidityKey & since()
Definition: TrigConfCoolWriter.h:77
TrigConf::HLTPrescaleSet
HLT chain configuration information.
Definition: HLTPrescaleSet.h:31
TrigConf::TrigConfCoolWriter::writeL1Payload
void writeL1Payload(ValidityRange vr, const CTPConfig &ctpConfig)
Definition: TrigConfCoolWriter.cxx:307
TrigConf::TrigConfCoolWriter::setVerbosityLevel
void setVerbosityLevel(unsigned int level)
Definition: TrigConfCoolWriter.h:380
TrigConf::TrigConfCoolWriter::writeHltPrescalePayload
void writeHltPrescalePayload(unsigned int runNumber, unsigned int lumiblockNumber, const TrigConf::HLTPrescaleSet &pss)
Writing luminosityblock-wise configuration information the COOL database.
Definition: TrigConfCoolWriter.cxx:1040
TrigConf::TrigConfCoolWriter::m_coolApp
cool::Application m_coolApp
COOL application.
Definition: TrigConfCoolWriter.h:441
TrigConf::TrigConfCoolWriter::m_writeFolderList
std::vector< std::string > m_writeFolderList
list of folders to which writing is restricted
Definition: TrigConfCoolWriter.h:443
python.EventInfoMgtInit.release
release
Definition: EventInfoMgtInit.py:24
TrigConf::TrigConfCoolWriter::TrigConfCoolWriter
TrigConfCoolWriter()
default constructor
Definition: TrigConfCoolWriter.h:393
TrigConf::TrigConfCoolWriter::readL1Payload
void readL1Payload(unsigned int run, CTPConfig &ctpc)
Definition: TrigConfCoolWriter.cxx:1306
TrigJetMonitorAlgorithm.items
items
Definition: TrigJetMonitorAlgorithm.py:79
TrigConf::AutoDBOpen::m_ro
bool m_ro
Definition: TrigConfCoolWriter.h:90
TrigConf::TrigConfCoolWriter::createDb
cool::IDatabasePtr createDb()
create a new COOL database
Definition: TrigConfCoolWriter.cxx:248
TrigConf::TrigConfCoolWriter::m_ostream
std::ostream & m_ostream
output stream for all messages
Definition: TrigConfCoolWriter.h:444
TrigConf::HLTFrame
The HLT trigger menu,.
Definition: HLTFrame.h:33
python.AthDsoLogger.fname
string fname
Definition: AthDsoLogger.py:67
DeMoAtlasDataLoss.runNumber
string runNumber
Definition: DeMoAtlasDataLoss.py:64
TrigConf::TrigConfCoolWriter::checkDbConnection
bool checkDbConnection(bool readonly)
Definition: TrigConfCoolWriter.cxx:91
TrigConf::TrigConfCoolWriter
Reading/Writing of trigger configuration data from/to COOL.
Definition: TrigConfCoolWriter.h:95
TrigConf::TrigConfCoolWriter::writeHLTPayload
void writeHLTPayload(ValidityRange vr, const HLTFrame &hltFrame, const std::string &configSource)
Definition: TrigConfCoolWriter.cxx:326
TrigConf::AutoDBOpen::m_writer
TrigConfCoolWriter * m_writer
Definition: TrigConfCoolWriter.h:88
TrigConf::ValidityRange::m_range
std::pair< cool::ValidityKey, cool::ValidityKey > m_range
Definition: TrigConfCoolWriter.h:80
TrigConf::CTPConfig
Definition: CTPConfig.h:27
TrigConf::TrigConfCoolWriter::openDb
cool::IDatabasePtr openDb(bool readOnly=true)
open COOL db connection
Definition: TrigConfCoolWriter.cxx:109
rr
const boost::regex rr(r_r)
TrigConf::ValidityRange::ValidityRange
ValidityRange(const RunRange &rr)
Definition: TrigConfCoolWriter.h:64
python.StandardJetMods.vr
vr
Definition: StandardJetMods.py:276
TrigConf::TrigConfCoolWriter::printSchemaVersion
void printSchemaVersion(std::ostream &o)
Prints the schema in the COOL database.
Definition: TrigConfCoolWriter.cxx:224
example.writer
writer
show summary of content
Definition: example.py:36
TrigConf::TrigConfCoolWriter::TrigConfCoolWriter
TrigConfCoolWriter(const std::string &dbId, std::ostream &o=std::cout)
constructor
Definition: TrigConfCoolWriter.h:103
LikeEnum::Menu
Menu
Definition: LikelihoodEnums.h:10
TrigConf::TrigConfCoolWriter::createSchema
void createSchema(int schemaVersion=0)
Create a new schema in the COOL database.
Definition: TrigConfCoolWriter.cxx:175
TrigConf::TrigConfCoolWriter::writeL1PrescalePayload
void writeL1PrescalePayload(unsigned int runNumber, unsigned int lumiblockNumber, unsigned int lvl1PrescaleKey, const TrigConf::PrescaleSet &prescale)
Writing luminosityblock-wise configuration information the COOL database.
Definition: TrigConfCoolWriter.cxx:1187
TrigConf::TrigConfCoolWriter::HLTPrescaleFolderExists
bool HLTPrescaleFolderExists()
Definition: TrigConfCoolWriter.cxx:1686
TrigConf::TrigConfCoolWriter::writeL1CTPCoreInputMapping
void writeL1CTPCoreInputMapping(ValidityRange vr, const Menu &lvl1Menu)
Definition: TrigConfCoolWriter.cxx:894