LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
getEntry.cc
Go to the documentation of this file.
2 // vim: set sw=2:
3 
4 #include "TBranch.h"
5 #include "TTree.h"
7 
8 namespace art {
9  namespace input {
10 
11  Int_t
12  getEntry(TBranch* branch, EntryNumber entryNumber) try {
13  return branch->GetEntry(entryNumber);
14  }
15  catch (cet::exception& e) {
17  << e.explain_self() << "\n";
18  }
19 
20  Int_t
21  getEntry(TTree* tree, EntryNumber entryNumber) try {
22  return tree->GetEntry(entryNumber);
23  }
24  catch (cet::exception& e) {
26  << e.explain_self() << "\n";
27  }
28 
29  } // namespace input
30 } // namespace art
Long64_t EntryNumber
Definition: Inputfwd.h:46
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
Definition: Exception.h:66
HLT enums.
Int_t getEntry(TBranch *branch, EntryNumber entryNumber)
Definition: getEntry.cc:12
Float_t e
Definition: plot.C:34
cet::coded_exception< error, detail::translate > exception
Definition: exception.h:33