DESY Hbb Analysis Framework
TreeBase.h
Go to the documentation of this file.
1 #ifndef Analysis_Tools_TreeBase_h
2 #define Analysis_Tools_TreeBase_h 1
3 
4 // -*- C++ -*-
5 //
6 // Package: Analysis/Tools
7 // Class: TreeBase
8 //
16 //
17 // Original Author: Roberval Walsh Bastos Rangel
18 // Created: Mon, 20 Oct 2014 14:24:08 GMT
19 //
20 //
21 
22 // system include files
23 #include <memory>
24 #include <vector>
25 //
26 // user include files
27 
28 #include "TTree.h"
29 #include "TChain.h"
30 // #include "Analysis/Tools/interface/Jet.h"
31 // #include "Analysis/Tools/interface/MET.h"
32 // #include "Analysis/Tools/interface/Muon.h"
33 // #include "Analysis/Tools/interface/Vertex.h"
34 
35 //
36 // class declaration
37 //
38 
39 namespace analysis {
40  namespace tools {
41 
42 // template <typename Object>
43  class TreeBase : public TChain{
44  public:
45  TreeBase();
46  TreeBase(TChain * tree, const std::string & name);
47  ~TreeBase();
48 
49  void event(const int & event);
50  TChain * tree();
51 
52  // ----------member data ---------------------------
53  protected:
54  TChain * tree_;
55  std::string className_;
56  std::string inputTag_;
57 
58  std::vector<std::string> branches_;
59 
60  std::string name_;
61 
62  private:
63 
64  };
65 
66  }
67 }
68 
69 #endif // Analysis_Tools_TreeBase_h
std::string className_
Definition: TreeBase.h:55
std::vector< std::string > branches_
Definition: TreeBase.h:58
std::string inputTag_
Definition: TreeBase.h:56
void event(const int &event)
Definition: TreeBase.cc:51