![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
12 std::cout<<
"ERROR: HistValidator test failed: "<<testname<<std::endl;
17 test(
"sizeof(unsigned char)=1",
unsigned(1),
sizeof(
unsigned char));
18 test(
"sizeof(unsigned short)=2",
unsigned(2),
sizeof(
unsigned short));
19 test(
"sizeof(float)=4",
unsigned(4),
sizeof(
float));
20 test(
"sizeof(double)=8",
unsigned(8),
sizeof(
double));
21 test(
"sizeof(double)=sizeof(Double_t)",
sizeof(
double),
sizeof(Double_t));
22 test(
"sizeof(float)=sizeof(Float_t)",
sizeof(
float),
sizeof(Float_t));
23 test(
"sizeof(int)=sizeof(Int_t)",
sizeof(
int),
sizeof(Int_t));
27 void test(
const std::string& testname,
double val1,
double val2)
34 void test(
const std::string& testname,
const char* val1,
const char* val2)
36 if ((val1 ==
nullptr) or (val2==
nullptr)){
39 if (std::string(val1)!=std::string(val2))
47 test(
"[TH1-level] GetXaxis()->GetLabelSize()",
t1->GetXaxis()->GetLabelSize(),
t2->GetXaxis()->GetLabelSize());
48 test(
"[TH1-level] GetXaxis()->GetTitle()",
t1->GetXaxis()->GetTitle(),
t2->GetXaxis()->GetTitle());
49 test(
"[TH1-level] GetYaxis()->GetLabelSize()",
t1->GetYaxis()->GetLabelSize(),
t2->GetYaxis()->GetLabelSize());
50 test(
"[TH1-level] GetYaxis()->GetTitle()",
t1->GetYaxis()->GetTitle(),
t2->GetYaxis()->GetTitle());
51 test(
"[TH1-level] GetMarkerColor()",
t1->GetMarkerColor(),
t2->GetMarkerColor());
52 test(
"[TH1-level] GetMarkerStyle()",
t1->GetMarkerStyle(),
t2->GetMarkerStyle());
53 test(
"[TH1-level] GetMarkerSize()",
t1->GetMarkerSize(),
t2->GetMarkerSize());
54 test(
"[TH1-level] GetMinimum()",
t1->GetMinimum(),
t2->GetMinimum());
68 if (
dynamic_cast<TH2*
>(
t1)) {
void compareFields NO_SANITIZE_UNDEFINED(TH1 *t1, TH1 *t2)
Double_t & access_fScalefactor()
Double_t & access_fTsumwx()
Double_t & access_fMaximum()
Double_t & access_fTsumw()
Double_t & access_fTsumwx2()
std::vector< ALFA_RawDataCollection_p1 > t1
Double_t & access_fNormFactor()
void compareFields(TH1 *t1, TH1 *t2)
bool compatible(const double &val1, const double &val2)
void test(const std::string &testname, double val1, double val2)
Double_t & access_fMinimum()
Double_t & access_fEntries()
Double_t & access_fTsumwy()
Double_t & access_fTsumwy2()
std::vector< ALFA_RawDataContainer_p1 > t2
Int_t & access_fDimension()
void testfailed(const std::string &testname)
Double_t & access_fTsumw2()
Double_t & access_fTsumwxy()