#ifndef VEGA_VManagerFrameL #define VEGA_VManagerFrameL //*-- Modified : v0r51 07/11/00 by D. Buskulic //*-- Modified : v0r48 30/05/00 by D. Buskulic //*-- Modified : v0r47 10/05/00 by D. Buskulic //*-- Modified : v0r46 13/03/00 by D. Buskulic //*-- Modified : v0r45 11/11/99 by D. Buskulic //*-- Modified : 29/04/99 by D. Buskulic //*-- Author : Damir Buskulic 04/03/99 ////////////////////////////////////////////////////////////////////////// // // // VManagerFrameL // // // // Frames manager class using the Framelib. // // // ////////////////////////////////////////////////////////////////////////// #include #include "VManager.h" #include "TObject.h" #include "TClonesArray.h" #include "TTree.h" #include "TList.h" #include "TFile.h" #include "TDirectory.h" class TObject; class VManagerFrameL : public VManager { private : TList* mPlots; // List of VSPlots associated with this manager TList* mPlots2; // List of 2D VSPlots associated with this manager TList* mHistos; // List of Histograms associated with this manager public : VManagerFrameL(); ~VManagerFrameL(); virtual void Draw(FrVect* vect, Double_t offset=-1e20, Double_t dur=1e20, Option_t *option=""); virtual void Draw(FrVect* vect, Option_t *option); virtual void Draw(FrameH* frame, char* nameofvect, Double_t offset=-1e20, Double_t dur=1e20, Option_t *option=""); virtual void Draw(FrameH* frame, char* nameofvect, Option_t *option); // virtual void DrawSpectrum(FrVect* vect, Double_t offset=-1e20, Double_t dur=1e20, Option_t *option=""); virtual void DrawHist(FrVect* vect, Double_t offset=-1e20, Double_t dur=1e20, const char *hwork="", Option_t *option=""); virtual void DrawHist(FrVect* vect, const char *hwork, Option_t *option=""); virtual void DrawHist(FrameH* frame, char* nameofvect, Double_t offset=-1e20, Double_t dur=1e20, const char *hwork="", Option_t *option=""); virtual void DrawHist(FrameH* frame, char* nameofvect, const char *hwork, Option_t *option=""); virtual TList* GetListOfPlots() {return mPlots;} virtual TList* GetListOfPlots2() {return mPlots2;} virtual TList* GetListOfHistos() {return mPlots;} virtual VSPlot* GetPlot(const char* name) {return (VSPlot*)(mPlots->FindObject(name));} virtual VSPlot* GetPlot(VSPlot* plot) {return (VSPlot*)(mPlots->FindObject(plot));} virtual VSPlot2* GetPlot2(const char* name) {return (VSPlot2*)(mPlots2->FindObject(name));} virtual VSPlot2* GetPlot2(VSPlot2* plot) {return (VSPlot2*)(mPlots2->FindObject(plot));} virtual VSPlot* GetLastPlot() {return (VSPlot*)(mPlots->Last());} virtual VSPlot2* GetLastPlot2() {return (VSPlot2*)(mPlots2->Last());} virtual TH1F* GetHisto(char* name) {return (TH1F*)(gDirectory->Get(name));} virtual TH1F* GetLastHisto(); virtual TAxis* GetXaxis(const char* name=""); virtual TAxis* GetYaxis(const char* name=""); virtual TAxis* GetZaxis(const char* name=""); virtual void SetBarOffset(Float_t baroff = 0.5, const char* name=""); virtual void SetBarWidth(Float_t barwidth = 0.5, const char* name=""); virtual void SetFillColor(Color_t color = 1, const char* name=""); virtual void SetFillStyle(Style_t styl = 0, const char* name=""); virtual void SetLineColor(Color_t color = 1, const char* name=""); virtual void SetLineStyle(Style_t styl = 0, const char* name=""); virtual void SetLineWidth(Width_t width = 1, const char* name=""); virtual void SetLabelColor(Color_t color = 1, Option_t* axis = "X", const char* name=""); virtual void SetLabelFont(Style_t font = 62, Option_t* axis = "X", const char* name=""); virtual void SetLabelOffset(Float_t offset = 0.005, Option_t* axis = "X", const char* name=""); virtual void SetLabelSize(Float_t size = 0.04, Option_t* axis = "X", const char* name=""); virtual void SetMarkerColor(Color_t tcolor = 1, const char* name=""); virtual void SetMarkerSize(Size_t msize = 1, const char* name=""); virtual void SetMarkerStyle(Style_t mstyle = 1, const char* name=""); virtual void SetNdivisions(Int_t n = 510, Option_t* axis = "X", const char* name=""); virtual void SetTickLength(Float_t length = 0.03, Option_t* axis = "X", const char* name=""); virtual void ShiftPlot(char* name, FrVect* vect); virtual void RemovePlot(const char* name); virtual void RemovePlot2(const char* name); ClassDef(VManagerFrameL,0) // Frames Manager using the FrameLib }; #endif