Analysis Software
Documentation for sPHENIX simulation software
|
#include <cstring>
#include <map>
#include <string>
#include <utility>
#include <vector>
#include "TBranch.h"
#include "TFile.h"
#include "TKey.h"
#include "TList.h"
#include "TObject.h"
#include "TTree.h"
#include "TTreeReader.h"
#include "compareRootFiles.hpp"
Go to the source code of this file.
Macros | |
#define | CHECK(pred, msg) |
#define | CHECK_EQUAL(v1, v2, msg) CHECK((v1) == (v2), msg << "(" << (v1) << " vs " << (v2) << ") ") |
#define | CHECK_STR_EQUAL(s1, s2, msg) CHECK(strcmp((s1), (s2)) == 0, msg << " (" << (s1) << " vs " << (s2) << ") ") |
Functions | |
int | compareRootFiles (std::string file1, std::string file2, bool dump_data_on_failure=false, bool skip_unsupported_branches=false) |
#define CHECK | ( | pred, | |
msg | |||
) |
Definition at line 42 of file compareRootFiles.C.
View newest version in sPHENIX GitHub at line 42 of file compareRootFiles.C
Referenced by TEST_CASE().
#define CHECK_EQUAL | ( | v1, | |
v2, | |||
msg | |||
) | CHECK((v1) == (v2), msg << "(" << (v1) << " vs " << (v2) << ") ") |
Definition at line 48 of file compareRootFiles.C.
View newest version in sPHENIX GitHub at line 48 of file compareRootFiles.C
Referenced by compareRootFiles().
#define CHECK_STR_EQUAL | ( | s1, | |
s2, | |||
msg | |||
) | CHECK(strcmp((s1), (s2)) == 0, msg << " (" << (s1) << " vs " << (s2) << ") ") |
Definition at line 51 of file compareRootFiles.C.
View newest version in sPHENIX GitHub at line 51 of file compareRootFiles.C
Referenced by compareRootFiles().
int compareRootFiles | ( | std::string | file1, |
std::string | file2, | ||
bool | dump_data_on_failure = false , |
||
bool | skip_unsupported_branches = false |
||
) |
Definition at line 65 of file compareRootFiles.C.
View newest version in sPHENIX GitHub at line 65 of file compareRootFiles.C
References CHECK_EQUAL, CHECK_STR_EQUAL, BranchComparisonHarness::create(), file, add_histos::files, i, j, testing::internal::move(), quickSort(), and material_mapping_optimisation::target.