Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:26:19

0001 #ifndef RecoParticleFlow_Benchmark_BenchmarkTree_h
0002 #define RecoParticleFlow_Benchmark_BenchmarkTree_h
0003 
0004 #include <TTree.h>
0005 
0006 class BenchmarkTreeEntry {
0007 public:
0008   BenchmarkTreeEntry() : deltaEt(999), deltaEta(-9), eta(-10), et(-1) {}
0009 
0010   BenchmarkTreeEntry& operator=(const BenchmarkTreeEntry& other) {
0011     deltaEt = other.deltaEt;
0012     deltaEta = other.deltaEta;
0013     eta = other.eta;
0014     et = other.et;
0015 
0016     return *this;
0017   }
0018 
0019   float deltaEt;
0020   float deltaEta;
0021   float eta;
0022   float et;
0023 };
0024 
0025 class BenchmarkTree : public TTree {
0026 public:
0027   BenchmarkTree(const char* name, const char* title);
0028   using TTree::Fill;
0029   void Fill(const BenchmarkTreeEntry& entry);
0030 
0031 private:
0032   BenchmarkTreeEntry* entry_;
0033 };
0034 
0035 #endif