CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FWPFCandidateTowerProxyBuilder.h
Go to the documentation of this file.
1 #ifndef Fireworks_Calo_FWPFCandTowerProxyBuilder_h
2 #define Fireworks_Calo_FWPFCandTowerProxyBuilder_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 
27 
29 
31 {
32 public:
35 
36  virtual double getEt(const reco::PFCandidate&) const = 0;
37 
38 protected:
39  virtual void fillCaloData();
41  virtual void build(const FWEventItem* iItem, TEveElementList* product, const FWViewContext*);
42 
43 private:
46 
47  // ---------- member data --------------------------------
49 };
50 
51 
52 
53 
54 //
55 // Ecal
56 //
57 
59 public:
61  }
63  }
64 
65  // ---------- const member functions ---------------------
66 
67  virtual double getEt(const reco::PFCandidate& iTower) const {
68  return iTower.ecalEnergy()* TMath::Sin(iTower.theta());
69  }
70 
72 private:
75 };
76 
77 
78 //
79 // Hcal
80 //
81 
83 public:
85  }
87  }
88 
89  // ---------- const member functions ---------------------
90 
91  virtual double getEt(const reco::PFCandidate& iTower) const {
92  return iTower.hcalEnergy() * TMath::Sin(iTower.theta());
93  }
94 
96 private:
98 
100 };
101 
102 #endif
double ecalEnergy() const
return corrected Ecal energy
Definition: PFCandidate.h:221
#define REGISTER_PROXYBUILDER_METHODS()
virtual double getEt(const reco::PFCandidate &iTower) const
const FWHCalPFCandidateProxyBuilder & operator=(const FWHCalPFCandidateProxyBuilder &)
const reco::PFCandidateCollection * m_towers
virtual double getEt(const reco::PFCandidate &iTower) const
virtual FWHistSliceSelector * instantiateSliceSelector()
virtual double theta() const
momentum polar angle
std::vector< reco::PFCandidate > PFCandidateCollection
collection of PFCandidates
Particle reconstructed by the particle flow algorithm.
Definition: PFCandidate.h:39
virtual double getEt(const reco::PFCandidate &) const =0
double hcalEnergy() const
return corrected Hcal energy
Definition: PFCandidate.h:231
const FWPFCandidateTowerProxyBuilder & operator=(const FWPFCandidateTowerProxyBuilder &)
const FWECalPFCandidateProxyBuilder & operator=(const FWECalPFCandidateProxyBuilder &)