Fork me on GitHub

source: git/external/ExRootAnalysis/ExRootTreeReader.h@ d77b51d

ImprovedOutputFile Timing dual_readout llp
Last change on this file since d77b51d was cab38f6, checked in by Pavel Demin <pavel.demin@…>, 10 years ago

remove svn tags and fix formatting

  • Property mode set to 100644
File size: 959 bytes
RevLine 
[d7d2da3]1#ifndef ExRootTreeReader_h
2#define ExRootTreeReader_h
3
4/** \class ExRootTreeReader
5 *
6 * Class simplifying access to ROOT tree branches
7 *
8 * \author P. Demin - UCL, Louvain-la-Neuve
9 *
10 */
11
12#include "TROOT.h"
13#include "TNamed.h"
14#include "TChain.h"
15#include "TFile.h"
16
17#include <map>
18
19class ExRootTreeReader : public TNamed
20{
21public :
22
23 ExRootTreeReader(TTree *tree = 0);
24 ~ExRootTreeReader();
25
26 void SetTree(TTree *tree) { fChain = tree; }
27
28 Long64_t GetEntries() const { return fChain ? static_cast<Long64_t>(fChain->GetEntries()) : 0; }
29 Bool_t ReadEntry(Long64_t entry);
30
31 TClonesArray *UseBranch(const char *branchName);
32
33private:
34
35 Bool_t Notify();
36
37 TTree *fChain; //! pointer to the analyzed TTree or TChain
38 Int_t fCurrentTree; //! current Tree number in a TChain
39
40 typedef std::map<TString, std::pair<TBranch*, TClonesArray*> > TBranchMap;
41
42 TBranchMap fBranchMap; //!
43
44 ClassDef(ExRootTreeReader, 1)
45};
46
47#endif // ExRootTreeReader_h
Note: See TracBrowser for help on using the repository browser.