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 // $Id: FWCaloTowerProxyBuilder.h,v 1.16 2010/12/16 11:39:38 amraktad Exp $
20 //
21 
22 #include "Rtypes.h"
23 #include <string>
24 
29 
30 
31 class TH2F;
32 //
33 // base
34 //
35 
37 
38 public:
41 
42  // ---------- const member functions ---------------------
43  virtual double getEt(const CaloTower&) const = 0;
44 
45  // ---------- static member functions --------------------
46  // ---------- member functions ---------------------------
47 
48 protected:
49  virtual void setCaloData(const fireworks::Context&);
50  virtual void fillCaloData();
51  bool assertCaloDataSlice();
52 
53  virtual void itemBeingDestroyed(const FWEventItem*);
54 private:
57  virtual void build(const FWEventItem* iItem,
58  TEveElementList* product, const FWViewContext*);
59 
60  // ---------- member data --------------------------------
62  TH2F* m_hist;
63 };
64 
65 //
66 // Ecal
67 //
68 
70 public:
72  }
74  }
75 
76  // ---------- const member functions ---------------------
77 
78  virtual double getEt(const CaloTower& iTower) const {
79  return iTower.emEt();
80  }
81 
83 private:
86 };
87 
88 
89 //
90 // Hcal
91 //
92 
94 public:
96  }
98  }
99 
100  // ---------- const member functions ---------------------
101 
102  virtual double getEt(const CaloTower& iTower) const {
103  return iTower.hadEt();
104  }
105 
107 private:
109 
111 };
112 
113 //
114 // HCal Outer
115 //
116 
118 public:
120  }
122  }
123 
124  // ---------- const member functions ---------------------
125 
126  virtual double getEt(const CaloTower& iTower) const {
127  return iTower.outerEt();
128  }
129 
131 
132 private:
133  FWHOCaloTowerProxyBuilder(const FWHOCaloTowerProxyBuilder&); // stop default
134  const FWHOCaloTowerProxyBuilder& operator=(const FWHOCaloTowerProxyBuilder&); // stop default
135 };
136 
137 
138 #endif
virtual void setCaloData(const fireworks::Context &)
double hadEt() const
Definition: CaloTower.h:85
double outerEt() const
Definition: CaloTower.h:86
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:84