17Int_t file_size(
const char *filename)
22 lunin = fopen(filename,
"rb");
25 while (!feof(lunin)) {
27 if (
c != 0x0d &&
c != 0x0a)
35void guitest_playback()
38 Int_t guitest_ref[11], guitest_err[11], guitest_size[11];
43 for (i = 0; i < 11; ++i) {
47 TRecorder r(
"http://root.cern/files/guitest_playback.root");
55 for (i = 0; i < 11; ++i) {
61 guitest_ref[0] = 23319;
62 guitest_ref[1] = 5633;
63 guitest_ref[2] = 14939;
64 guitest_ref[3] = 9459;
65 guitest_ref[4] = 5351;
66 guitest_ref[5] = 22982;
67 guitest_ref[6] = 23812;
68 guitest_ref[7] = 23869;
69 guitest_ref[8] = 23918;
70 guitest_ref[9] = 24067;
71 guitest_ref[10] = 65517;
73 printf(
"**********************************************************************\n");
74 printf(
"* Results of guitest_playback.C *\n");
75 printf(
"**********************************************************************\n");
77 for (i = 0; i < 11; ++i) {
78 printf(
"guitest %02d: output............................................", i + 1);
79 if (
TMath::Abs(guitest_ref[i] - guitest_size[i]) <= guitest_err[i]) {
87 printf(
"**********************************************************************\n");
int Int_t
Signed integer 4 bytes (int).
externTBenchmark * gBenchmark
Class provides direct recorder/replayer interface for a user.
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.
Short_t Abs(Short_t d)
Returns the absolute value of parameter Short_t d.