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 
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 private:
47  FWCaloTowerProxyBuilderBase(const FWCaloTowerProxyBuilderBase&) = delete; // stop default
48  const FWCaloTowerProxyBuilderBase& operator=(const FWCaloTowerProxyBuilderBase&) = delete; // stop default
49 
51 };
52 
53 //
54 // Ecal
55 //
56 
58 public:
61 
62  // ---------- const member functions ---------------------
63 
64  double getEt(const CaloTower& iTower) const override { return iTower.emEt(); }
65 
67 
68 private:
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 private:
89  FWHCalCaloTowerProxyBuilder(const FWHCalCaloTowerProxyBuilder&) = delete; // stop default
90 
91  const FWHCalCaloTowerProxyBuilder& operator=(const FWHCalCaloTowerProxyBuilder&) = delete; // stop default
92 };
93 
94 //
95 // HCal Outer
96 //
97 
99 public:
102 
103  // ---------- const member functions ---------------------
104 
105  double getEt(const CaloTower& iTower) const override { return iTower.outerEt(); }
106 
108 
109 private:
110  FWHOCaloTowerProxyBuilder(const FWHOCaloTowerProxyBuilder&) = delete; // stop default
111  const FWHOCaloTowerProxyBuilder& operator=(const FWHOCaloTowerProxyBuilder&) = delete; // stop default
112 };
113 
114 #endif
FWCaloTowerProxyBuilderBase::instantiateSliceSelector
FWHistSliceSelector * instantiateSliceSelector() override
Definition: FWCaloTowerProxyBuilder.cc:46
FWHCalCaloTowerProxyBuilder::FWHCalCaloTowerProxyBuilder
FWHCalCaloTowerProxyBuilder()
Definition: FWCaloTowerProxyBuilder.h:79
CaloTower::outerEt
double outerEt() const
Definition: CaloTower.h:137
CaloTower.h
FWFromTEveCaloDataSelector.h
REGISTER_PROXYBUILDER_METHODS
#define REGISTER_PROXYBUILDER_METHODS()
Definition: register_dataproxybuilder_macro.h:28
FWECalCaloTowerProxyBuilder::FWECalCaloTowerProxyBuilder
FWECalCaloTowerProxyBuilder()
Definition: FWCaloTowerProxyBuilder.h:59
edm::SortedCollection< CaloTower >
FWHistSliceSelector
Definition: FWHistSliceSelector.h:7
FWHOCaloTowerProxyBuilder
Definition: FWCaloTowerProxyBuilder.h:98
FWHCalCaloTowerProxyBuilder::~FWHCalCaloTowerProxyBuilder
~FWHCalCaloTowerProxyBuilder() override
Definition: FWCaloTowerProxyBuilder.h:80
FWHOCaloTowerProxyBuilder::~FWHOCaloTowerProxyBuilder
~FWHOCaloTowerProxyBuilder() override
Definition: FWCaloTowerProxyBuilder.h:101
CaloTowerDefs.h
FWCaloTowerProxyBuilderBase::m_towers
const CaloTowerCollection * m_towers
Definition: FWCaloTowerProxyBuilder.h:50
FWHOCaloTowerProxyBuilder::getEt
double getEt(const CaloTower &iTower) const override
Definition: FWCaloTowerProxyBuilder.h:105
FWHCalCaloTowerProxyBuilder
Definition: FWCaloTowerProxyBuilder.h:77
CaloTower
Definition: CaloTower.h:26
FWCaloDataHistProxyBuilder
Definition: FWCaloDataHistProxyBuilder.h:10
FWCaloDataHistProxyBuilder.h
FWProxyBuilderBase::build
void build()
Definition: FWProxyBuilderBase.cc:110
FWCaloTowerProxyBuilderBase
Definition: FWCaloTowerProxyBuilder.h:34
FWViewContext
Definition: FWViewContext.h:32
FWCaloTowerProxyBuilderBase::FWCaloTowerProxyBuilderBase
FWCaloTowerProxyBuilderBase()
Definition: FWCaloTowerProxyBuilder.cc:34
FWCaloTowerProxyBuilderBase::fillCaloData
void fillCaloData() override
Definition: FWCaloTowerProxyBuilder.cc:50
FWEventItem
Definition: FWEventItem.h:56
FWECalCaloTowerProxyBuilder::getEt
double getEt(const CaloTower &iTower) const override
Definition: FWCaloTowerProxyBuilder.h:64
FWECalCaloTowerProxyBuilder::~FWECalCaloTowerProxyBuilder
~FWECalCaloTowerProxyBuilder() override
Definition: FWCaloTowerProxyBuilder.h:60
FWHOCaloTowerProxyBuilder::operator=
const FWHOCaloTowerProxyBuilder & operator=(const FWHOCaloTowerProxyBuilder &)=delete
CaloTower::hadEt
double hadEt() const
Definition: CaloTower.h:136
FWECalCaloTowerProxyBuilder
Definition: FWCaloTowerProxyBuilder.h:57
FWHCalCaloTowerProxyBuilder::operator=
const FWHCalCaloTowerProxyBuilder & operator=(const FWHCalCaloTowerProxyBuilder &)=delete
CaloTower::emEt
double emEt() const
Definition: CaloTower.h:135
FWHCalCaloTowerProxyBuilder::getEt
double getEt(const CaloTower &iTower) const override
Definition: FWCaloTowerProxyBuilder.h:84
FWHOCaloTowerProxyBuilder::FWHOCaloTowerProxyBuilder
FWHOCaloTowerProxyBuilder()
Definition: FWCaloTowerProxyBuilder.h:100
FWECalCaloTowerProxyBuilder::operator=
const FWECalCaloTowerProxyBuilder & operator=(const FWECalCaloTowerProxyBuilder &)=delete
FWCaloTowerProxyBuilderBase::getEt
virtual double getEt(const CaloTower &) const =0
FWCaloTowerProxyBuilderBase::operator=
const FWCaloTowerProxyBuilderBase & operator=(const FWCaloTowerProxyBuilderBase &)=delete
FWCaloTowerProxyBuilderBase::~FWCaloTowerProxyBuilderBase
~FWCaloTowerProxyBuilderBase() override
Definition: FWCaloTowerProxyBuilder.cc:36