StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
StMuDbReader Class Reference

#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 StMuDbReaderinstance ()
 
static StMuDbReaderInstance ()
 

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
 

Detailed Description

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.

Member Function Documentation

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.

References addDb(), and entries().


The documentation for this class was generated from the following files: