/* * AnalysisFrame.hh * * Created on: Apr 22, 2015 * Author: Hovanes Egiyan */ #ifndef ANALYSISFRAME_HH_ #define ANALYSISFRAME_HH_ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "ScanStream.hh" #include "ScanPlot.hh" #include "GraphAnalyzer.hh" #include "TwoWireGraphAnalyzer.hh" using namespace std; class AnalysisFrame : public TGVerticalFrame { protected: TRootEmbeddedCanvas* afEmbeddedCanvas; // Embedded canvas pointer const ScanPlot* afPlot; // Plot to be shown GraphAnalyzer* afGraphAnalyzer; // Copy of the graph to be analyzed string afLabel; // Label to show which part of the scan analysis this frame is for TStyle* afStyle; // Local style for this frame TText* afDateText; // Date text; AnalysisFrame(){;} AnalysisFrame( const AnalysisFrame& frame ){;} public: AnalysisFrame( const ScanPlot* plot, string label, const TGWindow* pWindow = 0, UInt_t width = 1, UInt_t height = 1 ); virtual ~AnalysisFrame(); void Fit(); inline TRootEmbeddedCanvas* EmbeddedCanvas() { return afEmbeddedCanvas;} inline const ScanPlot* GetScanPlot() { return afPlot; } inline GraphAnalyzer* GetGraph() { return afGraphAnalyzer; } ClassDef(AnalysisFrame,0) }; #endif /* ANALYSISFRAME_HH_ */