CMS 3D CMS Logo

FWCaloTowerProxyBuilder.h
Go to the documentation of this file.
1 #ifndef Fireworks_Calo_FWCaloTowerProxyBuilder_h
2 #define Fireworks_Calo_FWCaloTowerProxyBuilder_h
3 // -*- C++ -*-
4 //
5 // Package: Calo
6 // Class : FWCaloTowerProxyBuilderBase
7 //
16 //
17 // Original Author: Chris Jones
18 // Created: Wed Dec 3 11:28:08 EST 2008
19 //
20 
21 #include "Rtypes.h"
22 #include <string>
23 
28 
29 
31 //
32 // base
33 //
34 
36 {
37 public:
40 
41  virtual double getEt(const CaloTower&) const = 0;
42 
43 protected:
44  void fillCaloData() override;
46  void build(const FWEventItem* iItem, TEveElementList* product, const FWViewContext*) override;
47 
48 private:
49  FWCaloTowerProxyBuilderBase(const FWCaloTowerProxyBuilderBase&) = delete; // stop default
50  const FWCaloTowerProxyBuilderBase& operator=(const FWCaloTowerProxyBuilderBase&) = delete; // stop default
51 
53 };
54 
55 //
56 // Ecal
57 //
58 
60 public:
62  }
64  }
65 
66  // ---------- const member functions ---------------------
67 
68  double getEt(const CaloTower& iTower) const override {
69  return iTower.emEt();
70  }
71 
73 private:
74  FWECalCaloTowerProxyBuilder(const FWECalCaloTowerProxyBuilder&) = delete; // stop default
75  const FWECalCaloTowerProxyBuilder& operator=(const FWECalCaloTowerProxyBuilder&) = delete; // stop default
76 };
77 
78 
79 //
80 // Hcal
81 //
82 
84 public:
86  }
88  }
89 
90  // ---------- const member functions ---------------------
91 
92  double getEt(const CaloTower& iTower) const override {
93  return iTower.hadEt();
94  }
95 
97 private:
98  FWHCalCaloTowerProxyBuilder(const FWHCalCaloTowerProxyBuilder&) = delete; // stop default
99 
100  const FWHCalCaloTowerProxyBuilder& operator=(const FWHCalCaloTowerProxyBuilder&) = delete; // stop default
101 };
102 
103 //
104 // HCal Outer
105 //
106 
108 public:
110  }
112  }
113 
114  // ---------- const member functions ---------------------
115 
116  double getEt(const CaloTower& iTower) const override {
117  return iTower.outerEt();
118  }
119 
121 
122 private:
123  FWHOCaloTowerProxyBuilder(const FWHOCaloTowerProxyBuilder&) = delete; // stop default
124  const FWHOCaloTowerProxyBuilder& operator=(const FWHOCaloTowerProxyBuilder&) = delete; // stop default
125 };
126 
127 #endif
#define REGISTER_PROXYBUILDER_METHODS()
double hadEt() const
Definition: CaloTower.h:116
FWHistSliceSelector * instantiateSliceSelector() override
double outerEt() const
Definition: CaloTower.h:117
double getEt(const CaloTower &iTower) const override
double getEt(const CaloTower &iTower) const override
const CaloTowerCollection * m_towers
virtual double getEt(const CaloTower &) const =0
double emEt() const
Definition: CaloTower.h:115
const FWCaloTowerProxyBuilderBase & operator=(const FWCaloTowerProxyBuilderBase &)=delete
double getEt(const CaloTower &iTower) const override