14 if(fname2.empty()) fname2 = fname;
16 TFile*
f = TFile::Open(fname.c_str());
18 TTree*
recTree = (TTree*)f->Get(
"recTree");
21 TFile*
f2 = TFile::Open(fname2.c_str());
28 TObject* obj = f2->Get(
"recTree");
34 dir = (TDirectory*)obj;
35 tr = (TTree*)dir->Get(
"rec");
43 recTree->SetBranchAddress(
"rec", &sr);
49 if(N < 0 || N > recTree->GetEntries()) N = recTree->GetEntries();
50 for(i = 0; i < N; ++
i){
Proxy for caf::StandardRecord.
void check_proxy(std::string fname, std::string fname2="", int N=-1)
CAFType GetCAFType(const TDirectory *dir, TTree *tr)
void CheckEquals(const caf::StandardRecord &sr) const
The StandardRecord is the primary top-level object in the Common Analysis File trees.
assert(nhit_max >=nhit_nbins)