BOSS 8.0.0
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 std::string filename;
16
18 GeomFileInfo( const char* fname, int sno ) : filename( fname ), startno( sno ) {}
19
20 bool operator>=( const GeomFileInfo& rval ) const { return ( startno >= rval.startno ); }
21 bool operator<=( const GeomFileInfo& rval ) const { return ( startno <= rval.startno ); }
22 bool operator>( const GeomFileInfo& rval ) const { return ( startno > rval.startno ); }
23 bool operator<( const GeomFileInfo& rval ) const { return ( startno < rval.startno ); }
24};
25
26// BesGeoSelector class
28private:
29 std::vector<GeomFileInfo> fgeom;
30
31public:
33 void addGeomFile( const char* fname, int startno );
34 void clear();
35 const char* getGeomFileNameFromRunNo( int run_no );
36 bool hasGeomFile( const char* fname );
37};
38
39#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