DESY Hbb Analysis Framework
PhysicsObjectTreeBase.h
Go to the documentation of this file.
1 #ifndef Analysis_Tools_PhysicsObjectTreeBase_h
2 #define Analysis_Tools_PhysicsObjectTreeBase_h 1
3 
4 // -*- C++ -*-
5 //
6 // Package: Analysis/Tools
7 // Class: PhysicsObjectTreeBase
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"
44 
45 //
46 // class declaration
47 //
48 
49 namespace analysis {
50  namespace tools {
51 
52  template <typename Object>
54  public:
56  PhysicsObjectTreeBase(TChain * tree, const std::string & name);
58 
59  // ----------member data ---------------------------
60  protected:
61  static const int max_ = 1000;
62  // general candidates (e.g. physics objects)
63  int n_;
64  float pt_ [max_];
65  float eta_ [max_];
66  float phi_ [max_];
67  float e_ [max_];
68  int q_ [max_];
69 
70  float px_ [max_];
71  float py_ [max_];
72  float pz_ [max_];
73 
74  private:
75 
76  };
77 
78  template <>
80  public:
82  PhysicsObjectTreeBase(TChain * tree, const std::string & name);
84 
85  // ----------member data ---------------------------
86  protected:
87  static const int max_ = 400;
88 
89  // general candidates
90  int n_;
91  float x_ [max_];
92  float y_ [max_];
93  float z_ [max_];
94  float xe_ [max_];
95  float ye_ [max_];
96  float ze_ [max_];
97  bool fake_[max_];
98  float chi2_[max_];
99  float ndof_[max_];
100  float rho_ [max_];
101 
102  private:
103 
104  };
105  }
106 }
107 
108 #endif // Analysis_Tools_PhysicsObjectTreeBase_h