StRoot
1
|
#include <StMuDbReader.h>
Public Member Functions | |
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 More... | |
int | addDb (const char *dbFile) |
add entries in dbFile to internal data base ( mDb ), will call sortDb(), returns number of entries in mDb | |
void | showDb () |
show all entries in internal data base | |
void | sortDb () |
sort all entries in internal data base according to file name | |
int | entriesDb () |
number of entries in internal data base | |
int | entries (const char *file) |
scan internal data base for file, if found return number of entries, otherwise return 0; | |
Static Public Member Functions | |
static StMuDbReader * | instance () |
static StMuDbReader * | Instance () |
Protected Member Functions | |
StMuDbReader () | |
Attention: constructor not public, this is a singleton. | |
Protected Attributes | |
vector< pair< string, int > > | mDb |
the internal database, a vector containing pairs of file names and number of events */ | |
vector< pair< string, int > >::iterator | iter |
Static Protected Attributes | |
static StMuDbReader * | _instance =0 |
Singleton class to create and read a poor man's database holding the number of events per MuDst.root file
Definition at line 19 of file StMuDbReader.h.
int StMuDbReader::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
fill db into list
Definition at line 140 of file StMuDbReader.cxx.