15 cout <<
"BesGeoSelector: " << fname <<
" start number " << startno << endl;
17 sort(fgeom.begin(), fgeom.end());
28 int absno = (run_no >= 0 ? run_no : -run_no);
29 for (vector<GeomFileInfo>::reverse_iterator i = fgeom.rbegin(); i != fgeom.rend(); ++i)
31 if (absno >= i->startno)
33 return i->filename.c_str();
36 cout <<
"BesGeoSelector Error: There is no suitable detector geometry!" << endl;
43 string filename(fname);
44 for (vector<GeomFileInfo>::iterator i = fgeom.begin(); i != fgeom.end(); ++i)
46 if (filename == i->filename)
return true;
const char * getGeomFileNameFromRunNo(int run_no)
bool hasGeomFile(const char *fname)
void addGeomFile(const char *fname, int startno)