3 #include "StjTreeReaderTwoTrees.h"
5 #include "StjTreeIndex.h"
17 _tree1->BuildIndex(
"runNumber",
"eventId");
18 _tree2->BuildIndex(
"runNumber",
"eventId");
19 SetBranchAddress(_tree1, _tree2);
22 Long64_t StjTreeReaderTwoTrees::GetEntryWithIndex(
const StjTreeIndex& idx)
24 return StjTreeReader::GetEntryWithIndex(idx);
27 Long64_t StjTreeReaderTwoTrees::GetEntryWithIndex(Int_t major, Int_t minor)
31 Long64_t ret1 = _tree1->GetEntryWithIndex(major, minor);
33 if(ret1 <= 0)
return ret1;
35 Long64_t ret2 = _tree2->GetEntryWithIndex(major, minor);
37 if(ret2 <= 0)
return ret2;