96void graph_edit_playback()
99 r->Replay(
"http://root.cern/files/graphedit_playback.root");
107 Int_t c1_ps_Ref = 11592 , c1_ps_Err = 600;
108 Int_t c1_C_Ref = 4729 , c1_C_Err = 200;
109 Int_t c2_gif_Ref = 21184 , c2_gif_Err = 500;
110 Int_t c2_C_Ref = 35471 , c2_C_Err = 1500;
112 Int_t c1_ps = file_size(
"c1.ps");
113 Int_t c1_C = file_size(
"c1.C");
114 Int_t c2_gif = file_size(
"c2.gif");
115 Int_t c2_C = file_size(
"c2.C");
117 cout <<
"**********************************************************************" <<endl;
118 cout <<
"* Report of graph_edit_playback.C *" <<endl;
119 cout <<
"**********************************************************************" <<endl;
121 if (
TMath::Abs(c1_ps_Ref-c1_ps) <= c1_ps_Err) {
122 cout <<
"Canvas c1: PS output............................................... OK" <<endl;
124 cout <<
"Canvas c1: PS output........................................... FAILED" <<endl;
127 cout <<
" C output................................................ OK" <<endl;
129 cout <<
" C output............................................ FAILED" <<endl;
131 if (
TMath::Abs(c2_gif_Ref-c2_gif) <= c2_gif_Err) {
132 cout <<
"Canvas c2: GIF output.............................................. OK" <<endl;
134 cout <<
"Canvas c2: GIF output.......................................... FAILED" <<endl;
137 cout <<
" C output................................................ OK" <<endl;
139 cout <<
" C output............................................ FAILED" <<endl;
141 cout <<
"**********************************************************************" <<endl;
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char filename
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t r
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize fs
R__EXTERN TSystem * gSystem
Class provides direct recorder/replayer interface for a user.
int GetPathInfo(const char *path, Long_t *id, Long_t *size, Long_t *flags, Long_t *modtime)
Get info about a file: id, size, flags, modification time.
virtual void Sleep(UInt_t milliSec)
Sleep milliSec milli seconds.
virtual Bool_t ProcessEvents()
Process pending events (GUI, timers, sockets).
Short_t Abs(Short_t d)
Returns the absolute value of parameter Short_t d.