22int file_size(
const char *filename)
25 gSystem->GetPathInfo(filename, fs);
29void fitpanel_playback()
32 r->Replay(
"http://root.cern/files/fitpanel_playback.root");
41 int Step1_Ref = 15691;
42 int Step2_Ref = 15691;
43 int Step3_Ref = 17632;
44 int Step4_Ref = 12305;
45 int Step5_Ref = 11668;
47 int Step1_Size = file_size(
"Step1.png");
48 int Step2_Size = file_size(
"Step2.png");
49 int Step3_Size = file_size(
"Step3.png");
50 int Step4_Size = file_size(
"Step4.png");
51 int Step5_Size = file_size(
"Step5.png");
54 std::cout <<
"**********************************************************************" << std::endl;
55 std::cout <<
"* Report of fitpanel_playback.C *" << std::endl;
56 std::cout <<
"**********************************************************************" << std::endl;
58 if (
TMath::Abs(Step1_Ref-Step1_Size) <= Step_Err) {
59 std::cout <<
"Step1: ............................................................ OK" << std::endl;
61 std::cout <<
"Step1: ........................................................ FAILED" << std::endl;
64 if (
TMath::Abs(Step2_Ref-Step2_Size) <= Step_Err) {
65 std::cout <<
"Step2: ............................................................ OK" << std::endl;
67 std::cout <<
"Step2: ........................................................ FAILED" << std::endl;
70 if (
TMath::Abs(Step3_Ref-Step3_Size) <= Step_Err) {
71 std::cout <<
"Step3: ............................................................ OK" << std::endl;
73 std::cout <<
"Step3: ........................................................ FAILED" << std::endl;
76 if (
TMath::Abs(Step4_Ref-Step4_Size) <= Step_Err) {
77 std::cout <<
"Step4: ............................................................ OK" << std::endl;
79 std::cout <<
"Step4: ........................................................ FAILED" << std::endl;
82 if (
TMath::Abs(Step5_Ref-Step5_Size) <= Step_Err) {
83 std::cout <<
"Step5: ............................................................ OK" << std::endl;
85 std::cout <<
"Step5: ........................................................ FAILED" << std::endl;
87 std::cout <<
"**********************************************************************" << std::endl;
Class provides direct recorder/replayer interface for a user.
Short_t Abs(Short_t d)
Returns the absolute value of parameter Short_t d.