00001 /*************************************************************************** 00002 * 00003 * $Id: StMuDbReader.h,v 1.6 2004/05/02 04:10:13 perev Exp $ 00004 * Author: Frank Laue, BNL, laue@bnl.gov 00005 * 00006 ***************************************************************************/ 00007 #ifndef StMuDbReader_hh 00008 #define StMuDbReader_hh 00009 00010 #include <string> 00011 #include <vector> 00012 #include <list> 00013 00019 class StMuDbReader { 00020 public: 00021 static StMuDbReader* instance(); 00022 static StMuDbReader* Instance(); 00023 00024 int createDB(const char* dbFile, const char* inputList); 00025 int addDb(const char* dbFile); 00026 void showDb(); 00027 void sortDb(); 00028 int entriesDb(); 00029 int entries(const char* file); 00030 protected: 00031 StMuDbReader(); 00032 virtual ~StMuDbReader(); 00033 protected: 00034 static StMuDbReader* _instance; 00035 00037 vector< pair<string,int> > mDb; 00038 vector< pair<string,int> >::iterator iter; 00039 00040 ClassDef(StMuDbReader,0) 00041 }; 00042 00043 #endif 00044 00045 00046 /*************************************************************************** 00047 * 00048 * $Log: StMuDbReader.h,v $ 00049 * Revision 1.6 2004/05/02 04:10:13 perev 00050 * private => protected 00051 * 00052 * Revision 1.5 2003/04/15 18:48:34 laue 00053 * Minor changes to be able to filter MuDst.root files and an example 00054 * how to do this. The StMuDstFilterMaker is just an example, it has to be 00055 * customized (spoilers, chrome weels, etc.) by the user. 00056 * 00057 * Revision 1.4 2002/05/04 23:56:30 laue 00058 * some documentation added 00059 * 00060 * Revision 1.3 2002/04/17 21:04:16 laue 00061 * minor updates 00062 * 00063 * Revision 1.2 2002/04/15 22:38:11 laue 00064 * made destructors virtual 00065 * 00066 * Revision 1.1 2002/04/11 14:19:30 laue 00067 * - update for RH 7.2 00068 * - decrease default arrays sizes 00069 * - add data base readerfor number of events in a file 00070 * 00071 * Revision 1.1 2002/04/01 22:42:30 laue 00072 * improved chain filter options 00073 * 00074 * 00075 **************************************************************************/
1.5.9