1#include "Gaudi/Interfaces/IOptionsSvc.h"
2#include "GaudiKernel/Bootstrap.h"
3#include "GaudiKernel/ISvcLocator.h"
4#include "GaudiKernel/Parsers.h"
5using Gaudi::Interfaces::IOptionsSvc;
7#include "RawDataCnv/EventManagement/Builder.h"
14 m_buf =
new uint32_t[32768];
18 auto optSvc = Gaudi::svcLocator()->service<IOptionsSvc>(
"JobOptionsSvc" );
19 Gaudi::Parsers::parse(
m_confFile, optSvc->get(
"Builder.RawDataCnvConfFile" ) ).ignore();
20 Gaudi::Parsers::parse(
m_status, optSvc->get(
"Builder.Status",
"4294967295" ) ).ignore();
29 cerr <<
"Error: file " << fname <<
" is bad" << endl;
33 if ( str == msg )
return true;
35 cerr <<
"Error: expected `" << msg <<
"|" << str <<
"` in " << fname << endl;
41 if ( !
expect(
f, msg, fname ) ||
f.bad() )
return false;
47 if ( !
expect(
f, msg, fname ) ||
f.bad() )
return false;
55 cerr <<
"Error: file " << fname <<
" bad checked" << endl;
63 if ( str == msg )
return true;
71 uint32_t run_no = re->
run_no();
72 uint32_t lvl1_id = re->
lvl1_id();
TFile f("ana_bhabha660a_dqa_mcPat_zy_old.root")
eformat::write::FullEventFragment WriteRawEvent
void append2event(WriteRawEvent *&re, uint32_t source_id, uint32_t size, uint32_t shift=0)
static bool find(ifstream &f, string msg, string fname)
static bool expect(ifstream &f, string msg, string fname)
static bool expectLong(ifstream &f, string msg, string fname, uint64_t &val)
static bool expectInt(ifstream &f, string msg, string fname, uint32_t &val1, uint32_t &val2)