// $Id: EnergyViewer.hh,v 1.15 2005/11/12 14:05:19 naumov Exp $ // Author: Dmitry.Naumov 2005/09/25 /***************************************************************************** * ESAF: Euso Simulation and Analysis Framework * * * * Id: EnergyViewer * * Package: * * Coordinator: * * * *****************************************************************************/ #ifndef __ENERGYVIEWER_HH__ #define __ENERGYVIEWER_HH__ #include "euso.hh" #include "EnergyTypes.hh" #include "EsafMsgSource.hh" #include #include #include class TPolyLine; class TPolyLine3D; class TCanvas; class TGraphErrors; class TGraph; class TColor; class TH1; class TSpline3; class EnergyModule; class ERunParameters; //////////////////////////////////////////////////////////////////////////////// // // // EnergyViewer // // // // // // // //////////////////////////////////////////////////////////////////////////////// class EnergyViewer: public EsafMsgSource { public: EnergyViewer(EnergyModule*); virtual ~EnergyViewer(); void InitFilePS(); void CloseFilePS(); void DisplayPixels3D(TString DrawSurf); // draw pixels in 3D void DisplayPixels(); void DisplayFSTrack(); void DisplayRecoveryDebug(TH1*,Float_t, Float_t); void DisplayRecovery(); void DisplayCherenkov(TH1F *htime,Int_t nPoints, Float_t x[], Float_t y[]); void DisplayTimeFit(TH1F *htime, TF1 *func, TF1*); void DrawHisto(TH1F *histo); void Clean(); private: void DefineColors(); // define colors for pixels view void DefinePixelsView(); // define pixels that will be drawn void DefineFSView(); // void SetHistoStyle(TH2F *histo); // Set style for histo void DrawLabel(TPaveText *cl, TString pavetext); // Draw event information EnergyModule *fEnergyModule; // pointer to the EnergyModule object map fMyPixelLines; // map for my pixels in cluster map fPixelLines; // map for pixels in cluster map fPixelLines3D; // map for pixels in cluster map fPmtLines; // map for pmts map fPmtLines3D; // map for pmts map fPmtLinesFS3D; // map for all pmts TCanvas *fCanvas; // Canvas used for all debugging plots TString fPsFile; // Debug Postscript file name TString fPsFileTime; // Debug Postscript file name Float_t fXmin; // Minimum X of View Float_t fXmax; // Maximum X of View Float_t fYmin; // Minimum Y of View Float_t fYmax; // Maximum Y of View Float_t fZmin; // Minimum Z of View Float_t fZmax; // Maximum Z of View Float_t fGXmin; // Minimum X of View Float_t fGXmax; // Maximum X of View Float_t fGYmin; // Minimum Y of View Float_t fGYmax; // Maximum Y of View Float_t fGZmin; // Minimum Z of View Float_t fGZmax; // Maximum Z of View Int_t fColNum; // number of used colors TColor *fColor; // Color variable Bool_t fColorDefined; // boolean: if the colors is already defined Int_t fPalette[1000]; // Color palette Bool_t fFSViewBuild; // if FSView is alredy built? Bool_t fDefinePixelsView; // if DefinePixelsView is alredy build? ClassDef(EnergyViewer,0) }; #endif /* __ENERGYVIEWER_HH__ */