BOSS 7.0.7
BESIII Offline Software System
Loading...
Searching...
No Matches
BesGeoSelector.h
Go to the documentation of this file.
1/*
2 * 2018/5/11 Long Peixun IHEP
3 * Geometry Selection for EventDisplay
4*/
5
6#ifndef BES_GEO_SELECTOR_H
7#define BES_GEO_SELECTOR_H
8
9#include <string>
10#include <vector>
11
12//Structure for saving geometry file info
14{
15 std::string filename;
17
19 GeomFileInfo(const char* fname, int sno)
20 : filename(fname), startno(sno) {}
21
22 bool operator >= (const GeomFileInfo& rval) const { return (startno >= rval.startno); }
23 bool operator <= (const GeomFileInfo& rval) const { return (startno <= rval.startno); }
24 bool operator > (const GeomFileInfo& rval) const { return (startno > rval.startno); }
25 bool operator < (const GeomFileInfo& rval) const { return (startno < rval.startno); }
26};
27
28//BesGeoSelector class
30{
31private:
32 std::vector<GeomFileInfo> fgeom;
33public:
35 void addGeomFile(const char* fname, int startno);
36 void clear();
37 const char* getGeomFileNameFromRunNo(int run_no);
38 bool hasGeomFile(const char* fname);
39};
40
41#endif
const char * getGeomFileNameFromRunNo(int run_no)
bool hasGeomFile(const char *fname)
void addGeomFile(const char *fname, int startno)
std::string filename
bool operator>(const GeomFileInfo &rval) const
GeomFileInfo(const char *fname, int sno)
bool operator<=(const GeomFileInfo &rval) const
bool operator>=(const GeomFileInfo &rval) const
bool operator<(const GeomFileInfo &rval) const