File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
roottest/root/tree/fastcloningeventtree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 9
9
#include "TBranchElement.h"
10
10
11
11
#include <iostream>
12
+ #include <cmath>
12
13
13
14
#include "dt_DrawTest.C"
14
15
@@ -40,9 +41,9 @@ Int_t HistCompare(TH1 *ref, TH1 *comp)
40
41
41
42
Float_t xrange = ref -> GetXaxis ()-> GetXmax () - ref -> GetXaxis ()-> GetXmin ();
42
43
if (xrange == 0 ) { fprintf (stderr ,"no range for %s\n" ,ref -> GetName ()); return -4 ; }
43
- if (xrange > 0.0001 && TMath :: Abs ((mean1 - mean2 )/xrange ) > 0.001 ) return -1 ;
44
- if (mean2 > 0.0001 && TMath :: Abs ((mean1 - mean2 )/mean2 ) > 0.01 ) return -2 ;
45
- if (rms1 > 0.0001 && TMath :: Abs ((rms1 - rms2 )/rms1 ) > 0.0001 ) return -3 ;
44
+ if (xrange > 0.0001 && std :: fabs ((mean1 - mean2 )/xrange ) > 0.001 ) return -1 ;
45
+ if (mean2 > 0.0001 && std :: fabs ((mean1 - mean2 )/mean2 ) > 0.01 ) return -2 ;
46
+ if (rms1 > 0.0001 && std :: fabs ((rms1 - rms2 )/rms1 ) > 0.0001 ) return -3 ;
46
47
return n1 * factor - n2 ;
47
48
}
48
49
You can’t perform that action at this time.
0 commit comments