StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
EEMCPlots.h
1 #ifndef EEMCPlots_H
2 #define EEMCPlots_H
3 
4 class TFile;
5 class TPad;
6 class TObjArray;
7 
8 class EEqaSorter;
9 class StEEmcDb;
10 
11 class EEMCPlots {
12 
13 public:
14  EEMCPlots(TObjArray *list = 0, const char *eemcDbDump = 0, const char *eemcPathIn = 0, const char *eemcPathOut = 0);
15  ~EEMCPlots();
16 
17  //void init(unsigned int date, unsigned int time, const char *eemcDbDump, const char *eemcPathIn, const char *eemcPathOut);
18  void resetHistograms();
19  void saveHistograms(TFile *hfile);
20  void processEvent( char *rdr
21  , const unsigned char * dsm0inp = 0
22  , const unsigned short int * dsm1inp = 0
23  , const unsigned short int * dsm2inp = 0
24  , const unsigned short int * dsm3inp = 0
25  );
26 
27  // These are called from Pplots
28  static void initHisto(TObjArray *list = 0, const char *eemcDbDump = 0, const char *eemcPathIn = 0, const char *eemcPathOut = 0);
29  static void resetHisto();
30  static void saveHisto(TFile *hfile);
31  static void fillHisto(char *rdr
32  , const unsigned char * dsm0inp = 0
33  , const unsigned short int * dsm1inp = 0
34  , const unsigned short int * dsm2inp = 0
35  , const unsigned short int * dsm3inp = 0
36  );
37 
38 private:
39  EEqaSorter *eeqa;
40  StEEmcDb *eeDb;
41 };
42 
43 #endif
44