Classes | |
struct | InputRawInit |
struct | InputRootInit |
struct | SimulationInit |
Functions | |
int | funcInputRaw (ISvcLocator *svcLct) |
int | getRunFromFileList (const std::string &flist) |
int | funcInputRoot (ISvcLocator *svcLct) |
int | funcSimulation (ISvcLocator *svcLct) |
Variables | |
int(*) | pf_helper (ISvcLocator *) |
int(*) | pf_helper (ISvcLocator *) |
InputRawInit | init |
int(*) | pf_helper (ISvcLocator *) |
InputRootInit | init |
int(*) | pf_helper (ISvcLocator *) |
SimulationInit | init |
int DetVerSvcPack::funcInputRaw | ( | ISvcLocator * | svcLct | ) |
Definition at line 7 of file JobInputRaw.cxx.
Referenced by DetVerSvcPack::InputRawInit::InputRawInit().
00008 { 00009 IRawDataInputSvc* iSvc = 0; 00010 StatusCode sc = svcLct->service("RawDataInputSvc", iSvc, false); 00011 if ( sc.isSuccess() ) { 00012 RawDataInputSvc* svc = dynamic_cast<RawDataInputSvc*>(iSvc); 00013 if ( svc != 0 ) { 00014 return svc->runNo(); 00015 } 00016 } 00017 return -1; 00018 }
int DetVerSvcPack::getRunFromFileList | ( | const std::string & | flist | ) |
Definition at line 11 of file JobInputRoot.cxx.
References abs, file, and deljobs::string.
Referenced by funcInputRoot().
00012 { 00013 std::string::size_type p1 = flist.find('"') + 1; 00014 std::string::size_type p2 = flist.find('"', p1); 00015 std::string fn = flist.substr(p1, p2-p1); 00016 00017 TFile file(fn.c_str()); 00018 TTree* tree = (TTree*)file.Get("Event"); 00019 tree->SetMakeClass(1); 00020 int run; 00021 tree->SetBranchAddress("m_runId", &run); 00022 tree->GetEntry(0); 00023 00024 return abs(run); 00025 }
int DetVerSvcPack::funcInputRoot | ( | ISvcLocator * | svcLct | ) |
Definition at line 27 of file JobInputRoot.cxx.
References deljobs::end, and getRunFromFileList().
Referenced by DetVerSvcPack::InputRootInit::InputRootInit().
00028 { 00029 SmartIF<IJobOptionsSvc> iSvc(svcLct->service("JobOptionsSvc")); 00030 if ( iSvc.isValid() ) { 00031 const std::vector<const Property*>* ps = iSvc->getProperties("EventCnvSvc"); 00032 std::vector<const Property*>::const_iterator it, end = ps->end(); 00033 for ( it = ps->begin(); it != end; ++it ) { 00034 if ( (*it)->name() == "digiRootInputFile" ) { 00035 return getRunFromFileList( (*it)->toString() ); 00036 } 00037 } 00038 } 00039 return -1; 00040 }
int DetVerSvcPack::funcSimulation | ( | ISvcLocator * | svcLct | ) |
Definition at line 9 of file JobSimulation.cxx.
References abs.
Referenced by DetVerSvcPack::SimulationInit::SimulationInit().
00010 { 00011 IRealizationSvc* iSvc = 0; 00012 StatusCode sc = svcLct->service("RealizationSvc", iSvc, false); 00013 if ( sc.isSuccess() ) { 00014 RealizationSvc* svc = dynamic_cast<RealizationSvc*>(iSvc); 00015 if ( svc != 0 ) { 00016 return abs(svc->getRunId()); 00017 } 00018 } 00019 return -1; 00020 }
int(*) DetVerSvcPack::pf_helper(ISvcLocator *) |
Definition at line 9 of file DetVerSvc.cxx.
Referenced by DetVerSvcPack::InputRawInit::InputRawInit(), DetVerSvcPack::InputRootInit::InputRootInit(), DetVerSvc::phase(), and DetVerSvcPack::SimulationInit::SimulationInit().
int(*) DetVerSvcPack::pf_helper(ISvcLocator *) |
Definition at line 9 of file DetVerSvc.cxx.
Definition at line 29 of file JobInputRaw.cxx.
int(*) DetVerSvcPack::pf_helper(ISvcLocator *) |
Definition at line 9 of file DetVerSvc.cxx.
Definition at line 51 of file JobInputRoot.cxx.
int(*) DetVerSvcPack::pf_helper(ISvcLocator *) |
Definition at line 9 of file DetVerSvc.cxx.
Referenced by DetVerSvcPack::InputRawInit::InputRawInit(), DetVerSvcPack::InputRootInit::InputRootInit(), DetVerSvc::phase(), and DetVerSvcPack::SimulationInit::SimulationInit().
Definition at line 31 of file JobSimulation.cxx.