Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

EDHistos.h

Go to the documentation of this file.
00001 
00002 #ifndef EDHISTOS_H
00003 
00004 #define EDHISTOS_H
00005 
00006 /*************************************************************************
00007 
00008  EDHistos class.
00009 
00010  Contains all of the analysis histos and methods required to display them
00011  on the canvas.
00012 
00013  All histos are placed in a TObjArray, m_histList, in the following order:
00014 
00015  0 -12 :  ACD
00016  13-16 :  XGT
00017  17-26 :  CAL
00018  27-52 :  TKR
00019  53-78 :  TOTL
00020  79-104:  TOTR
00021 
00022  -------------------------------------
00023 
00024  Authors: N Lumb, Gloria Spandre; INFN-Pisa.
00025 
00026  Start date: May 2001.
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;      // Pointer to the drawing canvas.
00069   TFile      *m_histFile;    // histogram file
00070 
00071   TObjArray  *m_histList;    // list of user histograms
00072   TObjArray  *m_ped;         // cointains 8 TVector with the pedestals of CALlogs (80 logs) 
00073 
00074   public:
00075   
00076   EDHistos( TCanvas *canvas ) { m_canvas = canvas; };
00077   ~EDHistos();  // default dtr
00078 
00079   friend class EDAnalysis;
00080 
00081   void DrawACDHistos();         // Draw ACD histos
00082   void DrawXGTHistos();         // Draw XGT histos
00083   void DrawTKRHistos();         // Draw TKR histos: Hits
00084   void DrawTKRtotLHistos();     // Draw TKR histos:TOT left
00085   void DrawTKRtotRHistos();     // Draw TKR histos:TOT right
00086   void DrawCALHistos();         // Draw CAL histos
00087 
00088   void ChangePaveTextDim( TPaveText *mytext, Float_t zoom );   //Change PaveText dimensions
00089 
00090   void InitHistos();            //Booking all histosgrams
00091   void AllHistDelete();         // delete all user histograms
00092   void HistDefine();            // define user histograms
00093   void MakeHistList();          // make list of user histograms
00094   void HClr();                  // Reset() all user histograms
00095 
00096   void Help();                  // Write user info
00097   //     void ReadCALPed(); //Read pedestals for 80 CALlogs x 2 End x 4 Range     
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 

Generated at Mon Nov 26 18:20:07 2001 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000