00001 #ifndef EEMCPlots_H
00002 #define EEMCPlots_H
00003
00004 class TFile;
00005 class TPad;
00006 class TObjArray;
00007
00008 class EEqaSorter;
00009 class StEEmcDb;
00010
00011 class EEMCPlots {
00012
00013 public:
00014 EEMCPlots(TObjArray *list = 0, const char *eemcDbDump = 0, const char *eemcPathIn = 0, const char *eemcPathOut = 0);
00015 ~EEMCPlots();
00016
00017
00018 void resetHistograms();
00019 void saveHistograms(TFile *hfile);
00020 void processEvent( char *rdr
00021 , const unsigned char * dsm0inp = 0
00022 , const unsigned short int * dsm1inp = 0
00023 , const unsigned short int * dsm2inp = 0
00024 , const unsigned short int * dsm3inp = 0
00025 );
00026
00027
00028 static void initHisto(TObjArray *list = 0, const char *eemcDbDump = 0, const char *eemcPathIn = 0, const char *eemcPathOut = 0);
00029 static void resetHisto();
00030 static void saveHisto(TFile *hfile);
00031 static void fillHisto(char *rdr
00032 , const unsigned char * dsm0inp = 0
00033 , const unsigned short int * dsm1inp = 0
00034 , const unsigned short int * dsm2inp = 0
00035 , const unsigned short int * dsm3inp = 0
00036 );
00037
00038 private:
00039 EEqaSorter *eeqa;
00040 StEEmcDb *eeDb;
00041 };
00042
00043 #endif
00044