7#include "GaudiKernel/Bootstrap.h"
18 cout <<
"BesGeoSelector: " << fname <<
" start phase " << startno << endl;
20 sort(fgeom.begin(), fgeom.end());
31 DetVerSvc dvs(
"DetVerSvc", Gaudi::svcLocator());
33 int absno = (run_no >= 0 ? run_no : -run_no);
35 for (vector<GeomFileInfo>::reverse_iterator i = fgeom.rbegin(); i != fgeom.rend(); ++i)
44 if (phase >= i->startno)
46 return i->filename.c_str();
49 cout <<
"BesGeoSelector Error: There is no suitable detector geometry!" << endl;
56 string filename(fname);
57 for (vector<GeomFileInfo>::iterator i = fgeom.begin(); i != fgeom.end(); ++i)
59 if (filename == i->filename)
return true;
const char * getGeomFileNameFromRunNo(int run_no)
bool hasGeomFile(const char *fname)
void addGeomFile(const char *fname, int startno)
int fromRun(unsigned int run)
virtual StatusCode initialize()