CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
30 //
31 // base
32 //
33 
35 public:
38 
39  virtual double getEt(const CaloTower&) const = 0;
40 
41 protected:
42  void fillCaloData() override;
44  void build(const FWEventItem* iItem, TEveElementList* product, const FWViewContext*) override;
45 
46 public:
47  FWCaloTowerProxyBuilderBase(const FWCaloTowerProxyBuilderBase&) = delete; // stop default
48  const FWCaloTowerProxyBuilderBase& operator=(const FWCaloTowerProxyBuilderBase&) = delete; // stop default
49 
50 private:
52 };
53 
54 //
55 // Ecal
56 //
57 
59 public:
62 
63  // ---------- const member functions ---------------------
64 
65  double getEt(const CaloTower& iTower) const override { return iTower.emEt(); }
66 
68 
69  FWECalCaloTowerProxyBuilder(const FWECalCaloTowerProxyBuilder&) = delete; // stop default
70  const FWECalCaloTowerProxyBuilder& operator=(const FWECalCaloTowerProxyBuilder&) = delete; // stop default
71 };
72 
73 //
74 // Hcal
75 //
76 
78 public:
81 
82  // ---------- const member functions ---------------------
83 
84  double getEt(const CaloTower& iTower) const override { return iTower.hadEt(); }
85 
87 
88  FWHCalCaloTowerProxyBuilder(const FWHCalCaloTowerProxyBuilder&) = delete; // stop default
89 
90  const FWHCalCaloTowerProxyBuilder& operator=(const FWHCalCaloTowerProxyBuilder&) = delete; // stop default
91 };
92 
93 //
94 // HCal Outer
95 //
96 
98 public:
101 
102  // ---------- const member functions ---------------------
103 
104  double getEt(const CaloTower& iTower) const override { return iTower.outerEt(); }
105 
107 
108  FWHOCaloTowerProxyBuilder(const FWHOCaloTowerProxyBuilder&) = delete; // stop default
109  const FWHOCaloTowerProxyBuilder& operator=(const FWHOCaloTowerProxyBuilder&) = delete; // stop default
110 };
111 
112 #endif
#define REGISTER_PROXYBUILDER_METHODS()
double hadEt() const
Definition: CaloTower.h:136
FWHistSliceSelector * instantiateSliceSelector() override
double outerEt() const
Definition: CaloTower.h:137
const FWHCalCaloTowerProxyBuilder & operator=(const FWHCalCaloTowerProxyBuilder &)=delete
double getEt(const CaloTower &iTower) const override
const CaloTowerCollection * m_towers
double getEt(const CaloTower &iTower) const override
const FWHOCaloTowerProxyBuilder & operator=(const FWHOCaloTowerProxyBuilder &)=delete
double getEt(const CaloTower &iTower) const override
virtual double getEt(const CaloTower &) const =0
const FWECalCaloTowerProxyBuilder & operator=(const FWECalCaloTowerProxyBuilder &)=delete
double emEt() const
Definition: CaloTower.h:135
const FWCaloTowerProxyBuilderBase & operator=(const FWCaloTowerProxyBuilderBase &)=delete