60 if ( m_phase < 1 || m_phase > 3 )
62 if ( serviceLocator()->existsService(
"RawDataInputSvc" ) )
65 SmartIF<IRawDataInputSvc> raw_svc = service<IRawDataInputSvc>(
"RawDataInputSvc" );
68 error() <<
"Failed to get RawDataInputSvc" << endmsg;
71 m_phase =
fromRun( raw_svc->runNo() );
73 else if ( serviceLocator()->existsService(
"EventCnvSvc" ) )
83 SmartIF<IOptionsSvc> opt_svc = service<IOptionsSvc>(
"JobOptionsSvc" );
86 error() <<
"Failed to get JobOptionsSvc" << endmsg;
89 std::vector<std::string> digi_inputs;
90 Gaudi::Parsers::parse( digi_inputs,
91 opt_svc->get(
"EventCnvSvc.digiRootInputFile",
"" ) );
92 if ( digi_inputs.size() == 0 )
94 error() <<
"Failed to get digiRootInputFile" << endmsg;
98 debug() <<
"Match result: " << digi_inputs[0] << std::endl;
101 TFile*
file = TFile::Open( digi_inputs[0].c_str(),
"READ" );
102 TTree* tree = (TTree*)
file->Get(
"Event" );
103 tree->SetMakeClass( 1 );
105 tree->SetBranchAddress(
"m_runId", &run );
110 else if ( serviceLocator()->existsService(
"RealizationSvc" ) )
113 SmartIF<IRealizationSvc> real_svc = service<IRealizationSvc>(
"RealizationSvc" );
116 error() <<
"Failed to get RealizationSvc" << endmsg;
119 m_phase =
fromRun(
abs( real_svc->getRunId() ) );
123 debug() <<
"m_phase: " << m_phase << std::endl;
126 if ( m_phase < 1 || m_phase > 3 )
128 error() <<
"Phase is not in {1, 2, 3}" << endmsg;