CMS 3D CMS Logo

EgammaHcalIsolation.h
Go to the documentation of this file.
1 #ifndef EgammaIsolationAlgos_EgammaHcalIsolation_h
2 #define EgammaIsolationAlgos_EgammaHcalIsolation_h
3 //*****************************************************************************
4 // File: EgammaHcalIsolation.h
5 // ----------------------------------------------------------------------------
6 // OrigAuth: Matthias Mozer
7 // Institute: IIHE-VUB
8 //=============================================================================
9 //*****************************************************************************
10 
11 //C++ includes
12 #include <vector>
13 #include <functional>
14 
15 //CMSSW includes
25 
26 //Sum helper functions
27 double scaleToE(const double &eta);
28 double scaleToEt(const double &eta);
29 
31 public:
32  enum HcalDepth { AllDepths = 0, Depth1 = 1, Depth2 = 2 };
33 
34  //constructors
36  double intRadius,
37  double eLowB,
38  double eLowE,
39  double etLowB,
40  double etLowE,
41  edm::ESHandle<CaloGeometry> theCaloGeom,
42  const HBHERecHitCollection &mhbhe);
43 
44  //destructor
46 
47  //AllDepths
48  double getHcalESum(const reco::Candidate *c) const { return getHcalESum(c->get<reco::SuperClusterRef>().get()); }
49  double getHcalEtSum(const reco::Candidate *c) const { return getHcalEtSum(c->get<reco::SuperClusterRef>().get()); }
50  double getHcalESum(const reco::SuperCluster *sc) const { return getHcalESum(sc->position()); }
51  double getHcalEtSum(const reco::SuperCluster *sc) const { return getHcalEtSum(sc->position()); }
52  double getHcalESum(const math::XYZPoint &p) const { return getHcalESum(GlobalPoint(p.x(), p.y(), p.z())); }
53  double getHcalEtSum(const math::XYZPoint &p) const { return getHcalEtSum(GlobalPoint(p.x(), p.y(), p.z())); }
54  double getHcalESum(const GlobalPoint &pclu) const { return getHcalSum(pclu, AllDepths, &scaleToE); }
55  double getHcalEtSum(const GlobalPoint &pclu) const { return getHcalSum(pclu, AllDepths, &scaleToEt); }
56 
57  //Depth1
58  double getHcalESumDepth1(const reco::Candidate *c) const {
59  return getHcalESumDepth1(c->get<reco::SuperClusterRef>().get());
60  }
61  double getHcalEtSumDepth1(const reco::Candidate *c) const {
63  }
64  double getHcalESumDepth1(const reco::SuperCluster *sc) const { return getHcalESumDepth1(sc->position()); }
65  double getHcalEtSumDepth1(const reco::SuperCluster *sc) const { return getHcalEtSumDepth1(sc->position()); }
66  double getHcalESumDepth1(const math::XYZPoint &p) const {
67  return getHcalESumDepth1(GlobalPoint(p.x(), p.y(), p.z()));
68  }
69  double getHcalEtSumDepth1(const math::XYZPoint &p) const {
70  return getHcalEtSumDepth1(GlobalPoint(p.x(), p.y(), p.z()));
71  }
72  double getHcalESumDepth1(const GlobalPoint &pclu) const { return getHcalSum(pclu, Depth1, &scaleToE); }
73  double getHcalEtSumDepth1(const GlobalPoint &pclu) const { return getHcalSum(pclu, Depth1, &scaleToEt); }
74 
75  //Depth2
76  double getHcalESumDepth2(const reco::Candidate *c) const {
77  return getHcalESumDepth2(c->get<reco::SuperClusterRef>().get());
78  }
79  double getHcalEtSumDepth2(const reco::Candidate *c) const {
81  }
82  double getHcalESumDepth2(const reco::SuperCluster *sc) const { return getHcalESumDepth2(sc->position()); }
83  double getHcalEtSumDepth2(const reco::SuperCluster *sc) const { return getHcalEtSumDepth2(sc->position()); }
84  double getHcalESumDepth2(const math::XYZPoint &p) const {
85  return getHcalESumDepth2(GlobalPoint(p.x(), p.y(), p.z()));
86  }
87  double getHcalEtSumDepth2(const math::XYZPoint &p) const {
88  return getHcalEtSumDepth2(GlobalPoint(p.x(), p.y(), p.z()));
89  }
90  double getHcalESumDepth2(const GlobalPoint &pclu) const { return getHcalSum(pclu, Depth2, &scaleToE); }
91  double getHcalEtSumDepth2(const GlobalPoint &pclu) const { return getHcalSum(pclu, Depth2, &scaleToEt); }
92 
93 private:
94  bool isDepth2(const DetId &) const;
95  double getHcalSum(const GlobalPoint &, const HcalDepth &, double (*)(const double &)) const;
96 
97  double extRadius_;
98  double intRadius_;
99  double eLowB_;
100  double eLowE_;
101  double etLowB_;
102  double etLowE_;
103 
106 
108 };
109 
110 #endif
EgammaHcalIsolation::getHcalEtSumDepth2
double getHcalEtSumDepth2(const math::XYZPoint &p) const
Definition: EgammaHcalIsolation.h:87
EgammaHcalIsolation::Depth1
Definition: EgammaHcalIsolation.h:32
EgammaHcalIsolation::getHcalESumDepth1
double getHcalESumDepth1(const reco::SuperCluster *sc) const
Definition: EgammaHcalIsolation.h:64
EgammaHcalIsolation::getHcalESum
double getHcalESum(const reco::SuperCluster *sc) const
Definition: EgammaHcalIsolation.h:50
ESHandle.h
EgammaHcalIsolation::doubleConeSel_
CaloDualConeSelector< HBHERecHit > * doubleConeSel_
Definition: EgammaHcalIsolation.h:107
EgammaHcalIsolation::getHcalESumDepth2
double getHcalESumDepth2(const reco::Candidate *c) const
Definition: EgammaHcalIsolation.h:76
reco::SuperCluster
Definition: SuperCluster.h:18
electronEcalRecHitIsolationLcone_cfi.extRadius
extRadius
Definition: electronEcalRecHitIsolationLcone_cfi.py:18
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
EgammaHcalIsolation::getHcalESum
double getHcalESum(const math::XYZPoint &p) const
Definition: EgammaHcalIsolation.h:52
EgammaHcalIsolation::getHcalSum
double getHcalSum(const GlobalPoint &, const HcalDepth &, double(*)(const double &)) const
Definition: EgammaHcalIsolation.cc:50
edm::Ref::get
T const * get() const
Returns C++ pointer to the item.
Definition: Ref.h:232
EgammaHcalIsolation::~EgammaHcalIsolation
~EgammaHcalIsolation()
Definition: EgammaHcalIsolation.cc:48
edm::SortedCollection
Definition: SortedCollection.h:49
EgammaHcalIsolation::etLowB_
double etLowB_
Definition: EgammaHcalIsolation.h:101
RecoCandidate.h
EgammaHcalIsolation::getHcalESum
double getHcalESum(const reco::Candidate *c) const
Definition: EgammaHcalIsolation.h:48
EgammaHcalIsolation::getHcalEtSumDepth2
double getHcalEtSumDepth2(const reco::Candidate *c) const
Definition: EgammaHcalIsolation.h:79
edm::Ref< SuperClusterCollection >
EgammaHcalIsolation::getHcalESumDepth2
double getHcalESumDepth2(const math::XYZPoint &p) const
Definition: EgammaHcalIsolation.h:84
EgammaHcalIsolation::getHcalESumDepth2
double getHcalESumDepth2(const GlobalPoint &pclu) const
Definition: EgammaHcalIsolation.h:90
EgammaHcalIsolation::getHcalEtSum
double getHcalEtSum(const math::XYZPoint &p) const
Definition: EgammaHcalIsolation.h:53
DetId
Definition: DetId.h:17
EgammaHcalIsolation
Definition: EgammaHcalIsolation.h:30
EgammaHcalIsolation::eLowE_
double eLowE_
Definition: EgammaHcalIsolation.h:100
EgammaHcalIsolation::getHcalESumDepth1
double getHcalESumDepth1(const GlobalPoint &pclu) const
Definition: EgammaHcalIsolation.h:72
EgammaHcalIsolation::eLowB_
double eLowB_
Definition: EgammaHcalIsolation.h:99
PVValHelper::eta
Definition: PVValidationHelpers.h:69
EgammaHcalIsolation::extRadius_
double extRadius_
Definition: EgammaHcalIsolation.h:97
edm::ESHandle< CaloGeometry >
EgammaHcalIsolation::getHcalEtSumDepth1
double getHcalEtSumDepth1(const math::XYZPoint &p) const
Definition: EgammaHcalIsolation.h:69
EgammaHcalIsolation::getHcalESum
double getHcalESum(const GlobalPoint &pclu) const
Definition: EgammaHcalIsolation.h:54
GlobalPoint
Global3DPoint GlobalPoint
Definition: GlobalPoint.h:10
Point3DBase< float, GlobalTag >
EgammaHcalIsolation::Depth2
Definition: EgammaHcalIsolation.h:32
EgammaHcalIsolation::getHcalEtSumDepth1
double getHcalEtSumDepth1(const reco::Candidate *c) const
Definition: EgammaHcalIsolation.h:61
EgammaHcalIsolation::HcalDepth
HcalDepth
Definition: EgammaHcalIsolation.h:32
math::XYZPoint
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:12
EgammaHcalIsolation::AllDepths
Definition: EgammaHcalIsolation.h:32
EgammaHcalIsolation::getHcalEtSumDepth2
double getHcalEtSumDepth2(const GlobalPoint &pclu) const
Definition: EgammaHcalIsolation.h:91
EgammaHcalIsolation::getHcalEtSum
double getHcalEtSum(const GlobalPoint &pclu) const
Definition: EgammaHcalIsolation.h:55
EgammaHcalIsolation::etLowE_
double etLowE_
Definition: EgammaHcalIsolation.h:102
EgammaHcalIsolation::getHcalEtSumDepth2
double getHcalEtSumDepth2(const reco::SuperCluster *sc) const
Definition: EgammaHcalIsolation.h:83
CaloDualConeSelector< HBHERecHit >
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
EgammaHcalIsolation::EgammaHcalIsolation
EgammaHcalIsolation(double extRadius, double intRadius, double eLowB, double eLowE, double etLowB, double etLowE, edm::ESHandle< CaloGeometry > theCaloGeom, const HBHERecHitCollection &mhbhe)
Definition: EgammaHcalIsolation.cc:27
EgammaHcalIsolation::getHcalESumDepth1
double getHcalESumDepth1(const math::XYZPoint &p) const
Definition: EgammaHcalIsolation.h:66
reco::CaloCluster::position
const math::XYZPoint & position() const
cluster centroid position
Definition: CaloCluster.h:154
reco::Candidate
Definition: Candidate.h:27
EgammaHcalIsolation::intRadius_
double intRadius_
Definition: EgammaHcalIsolation.h:98
scaleToE
double scaleToE(const double &eta)
Definition: EgammaHcalIsolation.cc:24
EgammaHcalIsolation::theCaloGeom_
edm::ESHandle< CaloGeometry > theCaloGeom_
Definition: EgammaHcalIsolation.h:104
EgammaHcalIsolation::getHcalESumDepth1
double getHcalESumDepth1(const reco::Candidate *c) const
Definition: EgammaHcalIsolation.h:58
SuperClusterFwd.h
EgammaHcalIsolation::isDepth2
bool isDepth2(const DetId &) const
Definition: EgammaHcalIsolation.cc:86
scaleToEt
double scaleToEt(const double &eta)
Definition: EgammaHcalIsolation.cc:25
electronHcalTowerIsolationLcone_cfi.intRadius
intRadius
Definition: electronHcalTowerIsolationLcone_cfi.py:5
SuperCluster.h
CaloGeometry.h
GlobalVector.h
HcalRecHitCollections.h
EgammaHcalIsolation::mhbhe_
const HBHERecHitCollection & mhbhe_
Definition: EgammaHcalIsolation.h:105
EgammaHcalIsolation::getHcalESumDepth2
double getHcalESumDepth2(const reco::SuperCluster *sc) const
Definition: EgammaHcalIsolation.h:82
CaloDualConeSelector.h
EgammaHcalIsolation::getHcalEtSum
double getHcalEtSum(const reco::Candidate *c) const
Definition: EgammaHcalIsolation.h:49
EgammaHcalIsolation::getHcalEtSumDepth1
double getHcalEtSumDepth1(const reco::SuperCluster *sc) const
Definition: EgammaHcalIsolation.h:65
EgammaHcalIsolation::getHcalEtSumDepth1
double getHcalEtSumDepth1(const GlobalPoint &pclu) const
Definition: EgammaHcalIsolation.h:73
GlobalPoint.h
EgammaHcalIsolation::getHcalEtSum
double getHcalEtSum(const reco::SuperCluster *sc) const
Definition: EgammaHcalIsolation.h:51