#include <ASCIICondDbSvc.h>
Definition at line 21 of file ASCIICondDbSvc.h.
 
◆ registry_t
◆ ASCIICondDbSvc()
      
        
          | ASCIICondDbSvc::ASCIICondDbSvc | ( | const std::string & | name, | 
        
          |  |  | ISvcLocator * | svc | 
        
          |  | ) |  |  | 
      
 
 
◆ ~ASCIICondDbSvc()
  
  | 
        
          | ASCIICondDbSvc::~ASCIICondDbSvc | ( |  | ) |  |  | default | 
 
 
◆ dump() [1/2]
  
  | 
        
          | void ASCIICondDbSvc::dump | ( |  | ) | const |  | overridevirtual | 
 
 
◆ dump() [2/2]
      
        
          | void ASCIICondDbSvc::dump | ( | std::ostringstream & | ost | ) | const | 
      
 
 
◆ finalize()
  
  | 
        
          | StatusCode ASCIICondDbSvc::finalize | ( |  | ) |  |  | overridevirtual | 
 
Definition at line 148 of file ASCIICondDbSvc.cxx.
  153     std::ostringstream 
ost;
 
  160     for ( 
auto ie : 
e.second ) {
 
  167   return StatusCode::SUCCESS;
 
 
 
 
◆ getRange()
Definition at line 240 of file ASCIICondDbSvc.cxx.
  245   registry_t::const_iterator itr = 
m_registry.find(dbKey);
 
  248     error() << 
"getRange: no dbKey " << dbKey << 
" found in registry"  
  250     return StatusCode::FAILURE;
 
  254     debug() << 
"compare " << 
e.range() << 
" with " << ctx.eventID()
 
  256     if (
e.range().isInRange(EventIDBase(ctx.eventID()))) {
 
  259       return StatusCode::SUCCESS;
 
  263   error() << 
"getRange: no range for Time " << ctx.eventID() 
 
  264           << 
" found for dbKey "  << dbKey << 
endmsg;
 
  266   return StatusCode::FAILURE;
 
 
 
 
◆ initialize()
  
  | 
        
          | StatusCode ASCIICondDbSvc::initialize | ( |  | ) |  |  | overridevirtual | 
 
Definition at line 32 of file ASCIICondDbSvc.cxx.
   36   msg().setLevel( m_outputLevel.value() );
 
   38   if (!
sc.isSuccess()) {
 
   39     warning () << 
"Base class could not be initialized" << 
endmsg;
 
   40     return StatusCode::FAILURE;
 
   45     return StatusCode::SUCCESS;
 
   49     return StatusCode::FAILURE;
 
   52   std::ostringstream 
ost;
 
   53   ost << 
" Printing CondDB registry";
 
   55     ost << std::endl << 
"  - id: " << 
e.first << 
"  r:";
 
   57       ost << 
"  " << 
r.range() << 
" :: " << *
r.objPtr();
 
   63   return StatusCode::SUCCESS;
 
 
 
 
◆ parse() [1/2]
  
  | 
        
          | bool ASCIICondDbSvc::parse | ( | EventIDRange & | t, |  
          |  |  | const std::string & | s |  
          |  | ) |  |  |  | private | 
 
Definition at line 174 of file ASCIICondDbSvc.cxx.
  177   boost::regex_match(
s,
m,
rr);
 
  183   if (
m.size() != 5) { 
return false; }
 
  186   EventIDBase 
start(std::stoi(
m[1]), EventIDBase::UNDEFEVT, std::stoi(
m[2]));
 
  187   EventIDBase   
end(std::stoi(
m[3]), EventIDBase::UNDEFEVT, std::stoi(
m[4]));
 
 
 
 
◆ parse() [2/2]
Definition at line 201 of file ASCIICondDbSvc.cxx.
  204   boost::regex_match(
s,
m,
ref);
 
  206   if (
m.size() != 6) { 
return false; }
 
  215   EventIDBase 
start(0, EventIDBase::UNDEFEVT,
 
  217   EventIDBase   
end(EventIDBase::UNDEFNUM, EventIDBase::UNDEFEVT,
 
  219   start.set_lumi_block(std::stoi(
m[1]));
 
  220   end.set_lumi_block(std::stoi(
m[3]));
 
 
 
 
◆ readDbFile()
  
  | 
        
          | StatusCode ASCIICondDbSvc::readDbFile | ( | const std::string & | fname | ) |  |  | private | 
 
Definition at line 69 of file ASCIICondDbSvc.cxx.
   75   std::ifstream ifs (
fname);
 
   79     typedef boost::tokenizer<boost::char_separator<char> > tokenizer;
 
   80     boost::char_separator<char> 
sep(
" ");
 
   84     while( getline (ifs, 
line) ) {
 
   87       size_t fh = 
line.find(
"#");
 
   88       if(
fh != std::string::npos) 
 
   90       if (
line.length() == 0) 
continue;
 
   95       std::string dbKey = *
it;
 
  103           error() << 
"while reading " << 
fname << 
" problem parsing " << *
it  
  105           sc = StatusCode::FAILURE;
 
  113     sc = StatusCode::FAILURE;
 
 
 
 
◆ m_file
  
  | 
        
          | Gaudi::Property<std::string> ASCIICondDbSvc::m_file {this, "CondFile", "", "cond db file name"} |  | private | 
 
 
◆ m_lbn
  
  | 
        
          | Gaudi::Property<unsigned int> ASCIICondDbSvc::m_lbn {this, "LBN", 1, "explicit lumi block number"} |  | private | 
 
 
◆ m_lock
  
  | 
        
          | std::mutex ASCIICondDbSvc::m_lock |  | mutableprivate | 
 
 
◆ m_registry
The documentation for this class was generated from the following files: