7 #ifndef StMuDbReader_hh
8 #define StMuDbReader_hh
24 int createDB(
const char* dbFile,
const char* inputList);
25 int addDb(
const char* dbFile);
37 vector< pair<string,int> >
mDb;
38 vector< pair<string,int> >::iterator iter;
int entriesDb()
number of entries in internal data base
int addDb(const char *dbFile)
add entries in dbFile to internal data base ( mDb ), will call sortDb(), returns number of entries in...
int entries(const char *file)
scan internal data base for file, if found return number of entries, otherwise return 0; ...
StMuDbReader()
Attention: constructor not public, this is a singleton.
void showDb()
show all entries in internal data base
void sortDb()
sort all entries in internal data base according to file name
vector< pair< string, int > > mDb
the internal database, a vector containing pairs of file names and number of events */ ...
int createDB(const char *dbFile, const char *inputList)
scan the files in inputList for the number of events add add them to the dbFile file. Create dbFile file if not existent returns number of entries in mDb