00001
00002 #ifndef EDHISTOS_H
00003
00004 #define EDHISTOS_H
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031 #include <iostream.h>
00032
00033 #include "TROOT.h"
00034 #include "TFile.h"
00035 #include "TPaveText.h"
00036 #include "TObjArray.h"
00037 #include "TH1.h"
00038 #include "TH2.h"
00039
00040
00041 #define NUM_ACD_HISTS 13
00042 #define NUM_XGT_HISTS 4
00043 #define NUM_TKR_HISTS 26
00044
00045
00046 class EDHistos {
00047
00048 private:
00049
00050 TH1 *hACD[ NUM_ACD_HISTS ];
00051 TH1 *hXGT[ NUM_XGT_HISTS ];
00052 TH1 *hTKR[ NUM_TKR_HISTS ];
00053 TH1 *hTKRtotL[ NUM_TKR_HISTS ];
00054 TH1 *hTKRtotR[ NUM_TKR_HISTS ];
00055
00056 TH1F *LOGID;
00057 TH1F *NLOGS;
00058 TH1F *BESTRANGE;
00059 TH1F *ELOG;
00060 TH1F *ETOTADCCAL;
00061 TH1F *ETOTCAL;
00062 TH1F *ADC0;
00063 TH1F *ADC1;
00064 TH1F *ADC2;
00065 TH1F *ADC3;
00066 TH2F *ETOTVSNLOGS;
00067
00068 TCanvas *m_canvas;
00069 TFile *m_histFile;
00070
00071 TObjArray *m_histList;
00072 TObjArray *m_ped;
00073
00074 public:
00075
00076 EDHistos( TCanvas *canvas ) { m_canvas = canvas; };
00077 ~EDHistos();
00078
00079 friend class EDAnalysis;
00080
00081 void DrawACDHistos();
00082 void DrawXGTHistos();
00083 void DrawTKRHistos();
00084 void DrawTKRtotLHistos();
00085 void DrawTKRtotRHistos();
00086 void DrawCALHistos();
00087
00088 void ChangePaveTextDim( TPaveText *mytext, Float_t zoom );
00089
00090 void InitHistos();
00091 void AllHistDelete();
00092 void HistDefine();
00093 void MakeHistList();
00094 void HClr();
00095
00096 void Help();
00097
00098
00099
00100 };
00101
00102
00103
00104 #endif
00105
00106
00107
00108
00109
00110
00111
00112
00113
00114
00115
00116
00117
00118
00119
00120
00121
00122
00123
00124
00125
00126