20 #include "Riostream.h" 
   46       TGo4Picture(
const char* name, 
const char* title, Int_t ndivy = 1, Int_t ndivx = 1);
 
   68       void SetLinesDivision(Int_t numlines, Int_t n0=1, Int_t n1=1, Int_t n2=1, Int_t n3=1, Int_t n4=1,
 
   69                                             Int_t n5=1, Int_t n6=1, Int_t n7=1, Int_t n8=1, Int_t n9=1);
 
   73       void AddH1(TH1* histo, Option_t* DrawOption = 0);
 
   74       void AddH1(Int_t posy, Int_t posx, TH1* histo, Option_t* DrawOption = 0);
 
   77       void AddHStack(THStack* st, Option_t* DrawOption = 0);
 
   78       void AddHStack(Int_t posy, Int_t posx, THStack* st, Option_t* DrawOption = 0);
 
   81       void AddGraph(TGraph* gr, Option_t* DrawOption = 0);
 
   82       void AddGraph(Int_t posy, Int_t posx, TGraph* gr, Option_t* DrawOption = 0);
 
   86       void AddCondition(Int_t posy, Int_t posx, TNamed* cond = 0);
 
   92       void SetRangeX(Double_t min, Double_t max);
 
   93       Bool_t 
GetRangeX(Double_t& min, Double_t& max);
 
   95       void SetRangeY(Double_t min, Double_t max);
 
   96       Bool_t 
GetRangeY(Double_t& min, Double_t& max);
 
   98       void SetRangeZ(Double_t min, Double_t max);
 
   99       Bool_t 
GetRangeZ(Double_t& min, Double_t& max);
 
  160       void SetFrameAttr(Double_t left, Double_t top, Double_t right, Double_t bottom);
 
  164       void SetStatsAttr(Double_t x1, Double_t y1, Double_t x2, Double_t y2,
 
  165                         Int_t optstat = 1111, 
const char* statformat = 
"6.4g",
 
  166                         Int_t optfit = 1111, 
const char* fitformat = 
"5.4g");
 
  176       void SetTitleAttr(Double_t x1, Double_t y1, Double_t x2, Double_t y2, Double_t textsize = 0.);
 
  208       virtual void Draw(Option_t* option = 
"");     
 
  210       virtual void Clear(Option_t* option = 
"");    
 
  212       virtual void Print(Option_t* option = 
"") 
const;    
 
  216       #if ROOT_VERSION_CODE > ROOT_VERSION(5,11,6) 
  217       virtual void SavePrimitive(std::ostream& fs, Option_t* = 
"");
 
  219       virtual void SavePrimitive(std::ofstream& fs, Option_t* = 
"");
 
  227       void AddObjName(
const char* name, Option_t* DrawOption = 0);
 
  228       void AddObjName(Int_t posy, Int_t posx, 
const char* name, Option_t* DrawOption = 0);
 
  231       void AddObject(TObject* obj, Option_t* DrawOption = 0);
 
  232       void AddObject(Int_t posy, Int_t posx, TObject* obj, Option_t* DrawOption = 0);
 
  313       void SetFullRange(Int_t naxis, Double_t min, Double_t max);
 
  314       Bool_t 
GetFullRange(Int_t naxis, Double_t& min, Double_t& max);
 
  317       void SetRange(Int_t naxis, Double_t min, Double_t max);
 
  318       Bool_t 
GetRange(Int_t naxis, Double_t& min, Double_t& max);
 
  326       static void Add(TString& s, 
const char* buf) { s+=buf; }
 
  337       Int_t 
FindOptPos(Short_t index, Short_t typ) 
const;
 
  340       void SetOption(Short_t index, Short_t typ, Long_t value);
 
  341       Bool_t 
GetOption(Short_t index, Short_t typ, Long_t& value) 
const;
 
  342       Long_t 
GetI(Short_t index, Short_t typ, Long_t def = 0) 
const;
 
  344       void SetOptionF(Short_t index, Short_t typ, Float_t value);
 
  345       Bool_t 
GetOptionF(Short_t index, Short_t typ, Float_t& value);
 
  347       void SetOptionD(Short_t index, Short_t typ, Double_t value);
 
  348       Bool_t 
GetOptionD(Short_t index, Short_t typ, Double_t& value);
 
  349       Double_t 
GetD(Short_t index, Short_t typ, Double_t def = 0.);
 
  351       void SetObjOption(Short_t index, Short_t typ, TObject* obj);
 
  354       void SetStrOption(Short_t index, Short_t typ, 
const char* value);
 
  355       const char* 
GetStrOption(Short_t index, Short_t typ, 
const char* defvalue = 0);
 
  361       void* 
Cast(TObject* obj, TClass* cl);
 
  365       void DrawPic(TVirtualPad* pad);
 
  367       void PrintPic(
int shift, Bool_t showopt);
 
  376       void MakeScript(std::ostream& fs, 
const char* name);
 
  378       void MakeAxisScript(std::ostream& fs, 
const char* name, Int_t indx, Int_t naxis);
 
  405 #endif //TGO4PICTURE_H 
void SetStyle(TStyle *style, Int_t index=UndefIndex)
 
void SetRange(Int_t naxis, Double_t min, Double_t max)
 
void SetTitleTime(Bool_t on=kTRUE)
 
void ClearOption(Short_t index, Short_t typ)
 
void SetHisContour(Int_t nlvl)
 
bool IsContentModified() const 
 
virtual void SavePrimitive(std::ofstream &fs, Option_t *="")
 
const char * GetXAxisTimeFormat()
 
Bool_t GetFillAtt(TAttFill *fill, Int_t index=UndefIndex)
 
void AddH1(TH1 *histo, Option_t *DrawOption=0)
 
void SetAutoZoom(bool on)
 
void UpdateFrom(TGo4Picture *source, TClass *selectedobjclass=0)
 
void AddObjName(const char *name, Option_t *DrawOption=0)
 
void SetPosition(Int_t posy, Int_t posx)
 
TObjArray * fxSubPictures
 
Bool_t GetRangeX(Double_t &min, Double_t &max)
 
Int_t GetLogScale(Int_t nscale=0)
 
void SetRangeY(Double_t min, Double_t max)
 
void SetCrosshair(bool on)
 
void SetDrawHeader(Bool_t draw=kTRUE)
 
Int_t FindOptPos(Short_t index, Short_t typ) const 
 
void SetObjOption(Short_t index, Short_t typ, TObject *obj)
 
void GetAxisAtt(Int_t naxis, TAxis *axis, Int_t index=UndefIndex)
 
void GetPadAtt(TPad *pad, Int_t index=UndefIndex)
 
void CopyOptionsFrom(TGo4Picture *source)
 
virtual Option_t * GetDrawOption()
 
const char * GetObjName(Int_t n)
 
TStyle * FindStyle(Int_t index=UndefIndex)
 
virtual void Draw(Option_t *option="")
 
Bool_t IsHisStats() const 
 
Bool_t CheckPosition(Int_t posy, Int_t posx)
 
Bool_t GetTitleAttr(TPaveText *titl)
 
void SetStrOption(Short_t index, Short_t typ, const char *value)
 
void AddSpecialObjectXml(const char *xmlcode, Option_t *drawopt=0)
 
void SetSelectedIndex(Int_t index=PictureIndex)
 
void PrintPic(int shift, Bool_t showopt)
 
Bool_t GetFullRange(Int_t naxis, Double_t &min, Double_t &max)
 
void ClearAllOptions(Short_t index=UndefIndex)
 
Int_t GetRebinY(Int_t index=UndefIndex)
 
void SetAxisAtt(Int_t naxis, Color_t AxisColor, Color_t LabelColor, Style_t LabelFont, Float_t LabelOffset, Float_t LabelSize, Int_t Ndivisions, Float_t TickLength, Color_t TitleColor, Style_t TitleFont, Float_t TitleOffset, Float_t TitleSize, Bool_t decimals, const char *ticks, Int_t bits, Int_t index=UndefIndex)
 
void GetH1Att(TH1 *h1, Int_t index=UndefIndex)
 
void ClearFillAtt(Int_t index=UndefIndex)
 
void SetOptionD(Short_t index, Short_t typ, Double_t value)
 
void SetHisTitle(bool on)
 
static void Add(TString &s, const char *buf)
 
void SetAxisTitleFontSize(Int_t naxis, Float_t TitleSize, Int_t index=UndefIndex)
 
Bool_t GetRangeY(Double_t &min, Double_t &max)
 
void SetTitleItem(Bool_t on=kTRUE)
 
void SetAxisLabelFontSize(Int_t naxis, Float_t LabelSize, Int_t index=UndefIndex)
 
void * Cast(TObject *obj, TClass *cl)
 
void SetXAxisTimeFormat(const char *format)
 
void ChangeDrawOption(Int_t kind, Int_t value)
 
void ClearLineAtt(Int_t index=UndefIndex)
 
void DrawPic(TVirtualPad *pad)
 
TGo4Picture * Pic(Int_t posy, Int_t posx)
 
Bool_t GetStatsAttr(TPaveStats *stats)
 
bool IsApplyToAll() const 
 
void SetApplyToAll(bool on)
 
void ClearRebin(Int_t index=UndefIndex)
 
void AddHStack(THStack *st, Option_t *DrawOption=0)
 
void SetFullRangeDim(Int_t ndim)
 
void SetPadAtt(Int_t BorderMode, Int_t BorderSize, Int_t Gridx, Int_t Gridy, Double_t Phi, Double_t Theta, Int_t Tickx, Int_t Ticky, Int_t index=PictureIndex)
 
void SetDivision(Int_t ndivy, Int_t ndivx)
 
virtual void Clear(Option_t *option="")
 
void SetStatsAttr(Double_t x1, Double_t y1, Double_t x2, Double_t y2, Int_t optstat=1111, const char *statformat="6.4g", Int_t optfit=1111, const char *fitformat="5.4g")
 
void SetH1Att(TH1 *h1, Int_t index=UndefIndex)
 
void AddObject(TObject *obj, Option_t *DrawOption=0)
 
TGo4Picture & operator()(int posy, int posx)
 
void SetXAxisTimeDisplay(Bool_t on)
 
void SetRebinY(Int_t ngroupy, Int_t index=UndefIndex)
 
void AddSubPicture(TGo4Picture *pic)
 
Bool_t GetOptionF(Short_t index, Short_t typ, Float_t &value)
 
void SetXYRatioOne(Bool_t on)
 
const char * GetStrOption(Short_t index, Short_t typ, const char *defvalue=0)
 
void GetLogScales(TVirtualPad *pad)
 
void SetLogScale(Int_t nscale=0, Int_t zn=1)
 
Bool_t GetFrameAttr(TPad *pad)
 
bool IsSuperimpose() const 
 
Bool_t GetOption(Short_t index, Short_t typ, Long_t &value) const 
 
Bool_t GetRange(Int_t naxis, Double_t &min, Double_t &max)
 
void AddGraph(TGraph *gr, Option_t *DrawOption=0)
 
void SetOptionF(Short_t index, Short_t typ, Float_t value)
 
void SetLegendDraw(bool on)
 
Int_t GetObjAttIndex(TObject *obj)
 
Bool_t IsXAxisTimeDisplay()
 
bool IsPadModified() const 
 
Int_t ExtendOptPos(Short_t index, Short_t typ)
 
Long_t GetI(Short_t index, Short_t typ, Long_t def=0) const 
 
void ClearMarkerAtt(Int_t index=UndefIndex)
 
void AddCondition(TNamed *cond=0)
 
void SetOption(Short_t index, Short_t typ, Long_t value)
 
Int_t GetHisContour() const 
 
void SetLineAtt(Color_t color, Style_t style, Width_t width, Int_t index=UndefIndex)
 
TGo4Picture * FindPic(Int_t posy, Int_t posx)
 
void SetHisStats(Bool_t on)
 
void SetLinesDivision(Int_t numlines, const Int_t *numbers)
 
void CheckIndex(Int_t &index)
 
void SetMarkerAtt(Color_t color, Size_t size, Style_t style, Int_t index=UndefIndex)
 
TObject * GetObjOption(Short_t index, Short_t typ)
 
void SetFullRange(Int_t naxis, Double_t min, Double_t max)
 
void SetRangeX(Double_t min, Double_t max)
 
void MakeAxisScript(std::ostream &fs, const char *name, Int_t indx, Int_t naxis)
 
void SetFrameAttr(Double_t left, Double_t top, Double_t right, Double_t bottom)
 
void SetFillAtt(Color_t color, Style_t style, Int_t index=UndefIndex)
 
void ClearObjNames(Bool_t recursive=kFALSE)
 
Bool_t GetRangeZ(Double_t &min, Double_t &max)
 
Bool_t IsHisTitle() const 
 
bool IsLegendDraw() const 
 
void GetDrawAttributes(TObject *obj, Int_t index=UndefIndex)
 
void SetSuperimpose(bool on)
 
void SetRangeZ(Double_t min, Double_t max)
 
Bool_t IsTitleDate() const 
 
Bool_t GetMarkerAtt(TAttMarker *marker, Int_t index=UndefIndex)
 
void SetDrawAttributes(TObject *obj, Int_t index=UndefIndex)
 
void SetPadModified(bool on=true)
 
void ClearFullRange(Int_t naxis=-1)
 
TStyle * GetStyle(Int_t index=UndefIndex)
 
Bool_t GetOptionD(Short_t index, Short_t typ, Double_t &value)
 
void SetAutoScale(bool on)
 
void MakeScript(std::ostream &fs, const char *name)
 
Int_t GetRebinX(Int_t index=UndefIndex)
 
Int_t GetFullRangeDim() const 
 
Bool_t GetLineAtt(TAttLine *line, Int_t index=UndefIndex)
 
void SetContentModified(bool on=true)
 
void AddSpecialObject(TObject *obj, Option_t *drawopt=0)
 
Bool_t IsTitleItem() const 
 
Bool_t IsTitleTime() const 
 
virtual void Print(Option_t *option="") const 
 
void SetTitleDate(Bool_t on=kTRUE)
 
void SetRebinX(Int_t ngroupx, Int_t index=UndefIndex)
 
Double_t GetD(Short_t index, Short_t typ, Double_t def=0.)
 
virtual void SetDrawOption(Option_t *option="")
 
TGo4Picture * LPic(Int_t nline, Int_t ncol)
 
void ClearRange(Int_t naxis=-1)
 
void SetXAxisAttTime(Bool_t timedisplay, const char *format, Int_t index=UndefIndex)
 
void SetTitleAttr(Double_t x1, Double_t y1, Double_t x2, Double_t y2, Double_t textsize=0.)
 
TList * GetSpecialObjects() const