22 Int_t file_size(
char *filename)
29 void fitpanel_playback()
32 r->Replay(
"http://root.cern.ch/files/fitpanel_playback.root");
41 Int_t Step1_Ref = 15691;
42 Int_t Step2_Ref = 15691;
43 Int_t Step3_Ref = 17632;
44 Int_t Step4_Ref = 12305;
45 Int_t Step5_Ref = 11668;
47 Int_t Step1_Size = file_size(
"Step1.png");
48 Int_t Step2_Size = file_size(
"Step2.png");
49 Int_t Step3_Size = file_size(
"Step3.png");
50 Int_t Step4_Size = file_size(
"Step4.png");
51 Int_t Step5_Size = file_size(
"Step5.png");
54 cout <<
"**********************************************************************" <<endl;
55 cout <<
"* Report of fitpanel_playback.C *" <<endl;
56 cout <<
"**********************************************************************" <<endl;
58 if (
TMath::Abs(Step1_Ref-Step1_Size) <= Step_Err) {
59 cout <<
"Step1: ............................................................ OK" <<endl;
61 cout <<
"Step1: ........................................................ FAILED" <<endl;
64 if (
TMath::Abs(Step2_Ref-Step2_Size) <= Step_Err) {
65 cout <<
"Step2: ............................................................ OK" <<endl;
67 cout <<
"Step2: ........................................................ FAILED" <<endl;
70 if (
TMath::Abs(Step3_Ref-Step3_Size) <= Step_Err) {
71 cout <<
"Step3: ............................................................ OK" <<endl;
73 cout <<
"Step3: ........................................................ FAILED" <<endl;
76 if (
TMath::Abs(Step4_Ref-Step4_Size) <= Step_Err) {
77 cout <<
"Step4: ............................................................ OK" <<endl;
79 cout <<
"Step4: ........................................................ FAILED" <<endl;
82 if (
TMath::Abs(Step5_Ref-Step5_Size) <= Step_Err) {
83 cout <<
"Step5: ............................................................ OK" <<endl;
85 cout <<
"Step5: ........................................................ FAILED" <<endl;
87 cout <<
"**********************************************************************" <<endl;
virtual Bool_t ProcessEvents()
Process pending events (GUI, timers, sockets).
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.
R__EXTERN TSystem * gSystem