EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
compareRootFiles.C File Reference
#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"
+ Include dependency graph for compareRootFiles.C:

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)
 

Macro Definition Documentation

#define CHECK (   pred,
  msg 
)
Value:
if (!(pred)) { \
std::cout << msg << std::endl; \
return 1; \
}

Definition at line 42 of file compareRootFiles.C.

View newest version in sPHENIX GitHub at line 42 of file compareRootFiles.C

#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().

Function Documentation

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(), eicpy.qaplots::file, eicpy.build::files, quickSort(), and charm_jet_tagging_optimization_study::target.

+ Here is the call graph for this function: