#ifndef HRICH700EVENTDISPLAY_H #define HRICH700EVENTDISPLAY_H #include "hlocation.h" #include "hreconstructor.h" #include "hcategory.h" #include "hiterator.h" #include "TCanvas.h" #include #include using namespace std; class HRich700DigiMapPar; class HRich700EventDisplay : public HReconstructor { private: // Input / output categories HCategory* fCatRichPhoton; //! Pointer to the geant rich photon category HCategory* fCatRichDirect; //! Pointer to the geant rich direct hits category HCategory* fCatTrack; //! Pointer to the cal data category HCategory* fCatCal; //! Pointer to the richtrack category HCategory* fCatRichHit; //! HCategory* fCatRichCal; //! HCategory* fCatKine; //! HRich700DigiMapPar* fDigiMap; //! Int_t fEventNum; //! Bool_t fDrawRichPhotons; Bool_t fDrawRichDirects; Bool_t fDrawRichCals; Bool_t fDrawRichHits; Int_t fNofEventsToDraw; Int_t fNofDrawnEvents; vector fCanvas; string fOutputDir; void drawOneEvent(); void drawOneRing(); void drawPmts(Double_t offsetX, Double_t offsetY); TCanvas* createCanvas(const string& name, const string& title, Int_t width, Int_t height); void saveCanvasToImage(); public: HRich700EventDisplay(); ~HRich700EventDisplay(); Bool_t init(); Bool_t reinit(); Int_t execute(); Bool_t finalize(); void setOutputDir(const string& dir){fOutputDir = dir;} void setNofEventsToDraw(Int_t nofEvents){fNofEventsToDraw = nofEvents;} ClassDef(HRich700EventDisplay, 0) }; #endif // HRICH700EVENTDISPLAY_H