#ifndef VDYPLOT_DEFINED #define VDYPLOT_DEFINED #include "TH1.h" #include "TString.h" #include "TPaveText.h" /************************************************************************/ /* */ /* VDyPlot */ /* */ /* class describing a plot (representation) of a series */ /* Used to adapt the behaviour of TH1F to datadisplay needs */ /* */ /************************************************************************/ class VDyPlot : public TH1F { private : int mTimeFlag; TString mTimeString; TPaveText* mTimePave; double mTimeX1; double mTimeY1; double mTimeX2; double mTimeY2; TArrayS mIndicator; int mOldFirstXbin; int mOldLastXbin; public : VDyPlot(); VDyPlot(Text_t* name, Text_t* title, Int_t nbinsx, Axis_t xlow, Axis_t xup); VDyPlot(VDyPlot& VDyPlot); ~VDyPlot() {if (mTimePave) {delete mTimePave; mTimePave=0;}}; void Copy(TObject& newvsp); void Draw(Option_t* option); void Paint(Option_t* option); void ClearTimePave() {if (mTimePave) {delete mTimePave; mTimePave=0;} } void UnlinkTimePave() {mTimePave=0;} void ExportAscii(const char* fileName="Default_file_name_=_Plot_name"); //*MENU* virtual char* GetObjectInfo(Int_t px, Int_t py) const; virtual void SavePrimitive(ofstream &out, Option_t *option); void SetTimeString(char* timestr) {mTimeString = timestr;} void SetTimeFlag(int flag) {mTimeFlag = flag;} void SetIndicator(int bin, short value); void ZoomAsLast(); ClassDef(VDyPlot,1) // Description of a plot-representation of a series }; R__EXTERN VDyPlot* gLastModifiedPlot; #endif