3#include "GaudiKernel/SmartIF.h"
4#include "GaudiKernel/Property.h"
5#include "GaudiKernel/IJobOptionsSvc.h"
6#include "GaudiKernel/ISvcLocator.h"
13 std::string::size_type p1 = flist.find(
'"') + 1;
14 std::string::size_type
p2 = flist.find(
'"', p1);
15 std::string fn = flist.substr(p1,
p2-p1);
17 TFile*
file = TFile::Open(fn.c_str(),
"READ");
18 TTree* tree = (TTree*)
file->Get(
"Event");
19 tree->SetMakeClass(1);
21 tree->SetBranchAddress(
"m_runId", &run);
29 SmartIF<IJobOptionsSvc> iSvc(svcLct->service(
"JobOptionsSvc"));
30 if ( iSvc.isValid() ) {
31 const std::vector<const Property*>* ps = iSvc->getProperties(
"EventCnvSvc");
32 std::vector<const Property*>::const_iterator it, end = ps->end();
33 for ( it = ps->begin(); it != end; ++it ) {
34 if ( (*it)->name() ==
"digiRootInputFile" ) {
int funcInputRoot(ISvcLocator *svcLct)
int getRunFromFileList(const std::string &flist)
int(* pf_helper)(ISvcLocator *)