test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 
29 
30 class TH2F;
31 //
32 // base
33 //
34 
36 
37 public:
40 
41  // ---------- const member functions ---------------------
42  virtual double getEt(const CaloTower&) const = 0;
43 
44  // ---------- static member functions --------------------
45  // ---------- member functions ---------------------------
46 
47 protected:
48  virtual void setCaloData(const fireworks::Context&);
49  virtual void fillCaloData();
50  bool assertCaloDataSlice();
51 
52  virtual void itemBeingDestroyed(const FWEventItem*);
53 private:
56  virtual void build(const FWEventItem* iItem,
57  TEveElementList* product, const FWViewContext*);
58 
59  // ---------- member data --------------------------------
61  TH2F* m_hist;
62 };
63 
64 //
65 // Ecal
66 //
67 
69 public:
71  }
73  }
74 
75  // ---------- const member functions ---------------------
76 
77  virtual double getEt(const CaloTower& iTower) const {
78  return iTower.emEt();
79  }
80 
82 private:
85 };
86 
87 
88 //
89 // Hcal
90 //
91 
93 public:
95  }
97  }
98 
99  // ---------- const member functions ---------------------
100 
101  virtual double getEt(const CaloTower& iTower) const {
102  return iTower.hadEt();
103  }
104 
106 private:
108 
110 };
111 
112 //
113 // HCal Outer
114 //
115 
117 public:
119  }
121  }
122 
123  // ---------- const member functions ---------------------
124 
125  virtual double getEt(const CaloTower& iTower) const {
126  return iTower.outerEt();
127  }
128 
130 
131 private:
132  FWHOCaloTowerProxyBuilder(const FWHOCaloTowerProxyBuilder&); // stop default
133  const FWHOCaloTowerProxyBuilder& operator=(const FWHOCaloTowerProxyBuilder&); // stop default
134 };
135 
136 
137 #endif
virtual void setCaloData(const fireworks::Context &)
#define REGISTER_PROXYBUILDER_METHODS()
double hadEt() const
Definition: CaloTower.h:100
double outerEt() const
Definition: CaloTower.h:101
virtual double getEt(const CaloTower &iTower) const
const CaloTowerCollection * m_towers
virtual void itemBeingDestroyed(const FWEventItem *)
virtual double getEt(const CaloTower &iTower) const
virtual double getEt(const CaloTower &iTower) const
const FWHCalCaloTowerProxyBuilder & operator=(const FWHCalCaloTowerProxyBuilder &)
virtual double getEt(const CaloTower &) const =0
const FWECalCaloTowerProxyBuilder & operator=(const FWECalCaloTowerProxyBuilder &)
const FWCaloTowerProxyBuilderBase & operator=(const FWCaloTowerProxyBuilderBase &)
const FWHOCaloTowerProxyBuilder & operator=(const FWHOCaloTowerProxyBuilder &)
double emEt() const
Definition: CaloTower.h:99