CMS 3D CMS Logo

PhotonIsolationCalculator.h
Go to the documentation of this file.
1 #ifndef PhotonIsolationCalculator_H
2 #define PhotonIsolationCalculator_H
3 
9 
12 
13 #include <string>
14 
16 
18 public:
20 
22 
23  void setup(const edm::ParameterSet& conf,
24  std::vector<int> const& flagsEB_,
25  std::vector<int> const& flagsEE_,
26  std::vector<int> const& severitiesEB_,
27  std::vector<int> const& severitiesEE_,
29 
30  void calculate(const reco::Photon*,
31  const edm::Event&,
32  const edm::EventSetup& es,
35  reco::Photon::IsolationVariables& phoisolR04) const;
36 
37 private:
38  static void classify(const reco::Photon* photon,
39  bool& isEBPho,
40  bool& isEEPho,
41  bool& isEBEtaGap,
42  bool& isEBPhiGap,
43  bool& isEERingGap,
44  bool& isEEDeeGap,
45  bool& isEBEEGap) dso_internal;
46 
48  const edm::Event& e,
49  double& trkCone,
50  int& ntrkCone,
51  double pTThresh = 0,
52  double RCone = .4,
53  double RinnerCone = .1,
54  double etaSlice = 0.015,
55  double lip = 0.2,
56  double d0 = 0.1) const dso_internal;
57 
60  const edm::EventSetup& iSetup,
61  double RCone,
62  double RConeInner,
63  double etaSlice,
64  double eMin,
65  double etMin,
66  bool vetoClusteredHits,
68 
71  const edm::EventSetup& iSetup,
72  double RCone,
73  double RConeInner,
74  double eMin,
75  signed int depth) const dso_internal;
76 
79  const edm::EventSetup& iSetup,
80  double RCone,
81  double eMin,
82  signed int depth) const dso_internal;
83 
84 private:
88 
95 
102 
109 
114 };
115 
116 #endif // PhotonIsolationCalculator_H
PhotonIsolationCalculator::vetoClusteredEcalHits_
bool vetoClusteredEcalHits_
Definition: PhotonIsolationCalculator.h:93
PhotonIsolationCalculator::flagsEB_
std::vector< int > flagsEB_
Definition: PhotonIsolationCalculator.h:110
muons2muons_cfi.photon
photon
Definition: muons2muons_cfi.py:28
PhotonIsolationCalculator::setup
void setup(const edm::ParameterSet &conf, std::vector< int > const &flagsEB_, std::vector< int > const &flagsEE_, std::vector< int > const &severitiesEB_, std::vector< int > const &severitiesEE_, edm::ConsumesCollector &&iC)
Definition: PhotonIsolationCalculator.cc:43
photonAnalyzer_cfi.etMin
etMin
Definition: photonAnalyzer_cfi.py:54
Visibility.h
PhotonIsolationCalculator::ecalIsoBarrelRadiusB_
double ecalIsoBarrelRadiusB_[5]
Definition: PhotonIsolationCalculator.h:100
PhotonIsolationCalculator::hcalIsoEndcapRadiusA_
double hcalIsoEndcapRadiusA_[9]
Definition: PhotonIsolationCalculator.h:105
edm
HLT enums.
Definition: AlignableModifier.h:19
PhotonIsolationCalculator::trkIsoBarrelRadiusB_
double trkIsoBarrelRadiusB_[6]
Definition: PhotonIsolationCalculator.h:99
PhotonIsolationCalculator::ecalIsoEndcapRadiusB_
double ecalIsoEndcapRadiusB_[5]
Definition: PhotonIsolationCalculator.h:107
PhotonIsolationCalculator::flagsEE_
std::vector< int > flagsEE_
Definition: PhotonIsolationCalculator.h:111
PhotonIsolationCalculator::hcalIsoEndcapRadiusB_
double hcalIsoEndcapRadiusB_[9]
Definition: PhotonIsolationCalculator.h:108
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:45
watchdog.const
const
Definition: watchdog.py:83
PhotonIsolationCalculator::moduleEtaBoundary_
std::vector< double > moduleEtaBoundary_
Definition: PhotonIsolationCalculator.h:92
PhotonIsolationCalculator
Definition: PhotonIsolationCalculator.h:17
PhotonIsolationCalculator::trkIsoEndcapRadiusA_
double trkIsoEndcapRadiusA_[6]
Definition: PhotonIsolationCalculator.h:103
qcdUeDQM_cfi.lip
lip
Definition: qcdUeDQM_cfi.py:25
PhotonIsolationCalculator::hcalIsoBarrelRadiusA_
double hcalIsoBarrelRadiusA_[9]
Definition: PhotonIsolationCalculator.h:98
PhotonIsolationCalculator::beamSpotProducerTag_
edm::EDGetToken beamSpotProducerTag_
Definition: PhotonIsolationCalculator.h:90
Photon.h
PhotonIsolationCalculator::hcalIsoBarrelRadiusB_
double hcalIsoBarrelRadiusB_[9]
Definition: PhotonIsolationCalculator.h:101
PhotonIsolationCalculator::~PhotonIsolationCalculator
~PhotonIsolationCalculator()
Definition: PhotonIsolationCalculator.h:21
PhotonIsolationCalculator::ecalIsoBarrelRadiusA_
double ecalIsoBarrelRadiusA_[5]
Definition: PhotonIsolationCalculator.h:97
photonAnalyzer_cfi.eMin
eMin
Definition: photonAnalyzer_cfi.py:50
PhotonIsolationCalculator::calculateHcalTowerIso
double calculateHcalTowerIso(const reco::Photon *photon, const edm::Event &iEvent, const edm::EventSetup &iSetup, double RCone, double RConeInner, double eMin, signed int depth) const
Definition: PhotonIsolationCalculator.cc:654
Event
EcalSeverityLevelAlgo.h
LEDCalibrationChannels.depth
depth
Definition: LEDCalibrationChannels.py:65
PhotonIsolationCalculator::hcalCollection_
edm::EDGetToken hcalCollection_
Definition: PhotonIsolationCalculator.h:87
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
PhotonIsolationCalculator::trackInputTag_
edm::EDGetToken trackInputTag_
Definition: PhotonIsolationCalculator.h:89
dso_internal
#define dso_internal
Definition: Visibility.h:13
PhotonIsolationCalculator::calculateEcalRecHitIso
double calculateEcalRecHitIso(const reco::Photon *photon, const edm::Event &iEvent, const edm::EventSetup &iSetup, double RCone, double RConeInner, double etaSlice, double eMin, double etMin, bool vetoClusteredHits, bool useNumCrystals) const
Definition: PhotonIsolationCalculator.cc:604
reco::Photon::FiducialFlags
Definition: Photon.h:93
Photon
Definition: Photon.py:1
iEvent
int iEvent
Definition: GenABIO.cc:224
PhotonIsolationCalculator::severityExclEE_
std::vector< int > severityExclEE_
Definition: PhotonIsolationCalculator.h:113
PhotonIsolationCalculator::classify
static void classify(const reco::Photon *photon, bool &isEBPho, bool &isEEPho, bool &isEBEtaGap, bool &isEBPhiGap, bool &isEERingGap, bool &isEEDeeGap, bool &isEBEEGap)
Definition: PhotonIsolationCalculator.cc:520
trackerHitRTTI::vector
Definition: trackerHitRTTI.h:21
electronEcalRecHitIsolationLcone_cfi.useNumCrystals
useNumCrystals
Definition: electronEcalRecHitIsolationLcone_cfi.py:14
PhotonIsolationCalculator::calculateTrackIso
void calculateTrackIso(const reco::Photon *photon, const edm::Event &e, double &trkCone, int &ntrkCone, double pTThresh=0, double RCone=.4, double RinnerCone=.1, double etaSlice=0.015, double lip=0.2, double d0=0.1) const
Definition: PhotonIsolationCalculator.cc:565
edm::EventSetup
Definition: EventSetup.h:57
reco::Photon::IsolationVariables
Definition: Photon.h:358
PhotonIsolationCalculator::PhotonIsolationCalculator
PhotonIsolationCalculator()
Definition: PhotonIsolationCalculator.h:19
EDGetToken
reco::Photon
Definition: Photon.h:21
PhotonIsolationCalculator::endcapecalCollection_
edm::EDGetToken endcapecalCollection_
Definition: PhotonIsolationCalculator.h:86
std
Definition: JetResolutionObject.h:76
PhotonIsolationCalculator::ecalIsoEndcapRadiusA_
double ecalIsoEndcapRadiusA_[5]
Definition: PhotonIsolationCalculator.h:104
EventSetup.h
PhotonIsolationCalculator::trkIsoBarrelRadiusA_
double trkIsoBarrelRadiusA_[6]
Definition: PhotonIsolationCalculator.h:96
PhotonIsolationCalculator::modulePhiBoundary_
double modulePhiBoundary_
Definition: PhotonIsolationCalculator.h:91
PhotonIsolationCalculator::calculate
void calculate(const reco::Photon *, const edm::Event &, const edm::EventSetup &es, reco::Photon::FiducialFlags &phofid, reco::Photon::IsolationVariables &phoisolR03, reco::Photon::IsolationVariables &phoisolR04) const
Definition: PhotonIsolationCalculator.cc:179
ConsumesCollector.h
PhotonIsolationCalculator::severityExclEB_
std::vector< int > severityExclEB_
Definition: PhotonIsolationCalculator.h:112
EventSetup
ParameterSet.h
edm::Event
Definition: Event.h:73
d0
static constexpr float d0
Definition: L1EGammaCrystalsEmulatorProducer.cc:84
EcalChannelStatus.h
edm::ConsumesCollector
Definition: ConsumesCollector.h:45
PhotonIsolationCalculator::trkIsoEndcapRadiusB_
double trkIsoEndcapRadiusB_[6]
Definition: PhotonIsolationCalculator.h:106
PhotonIsolationCalculator::useNumCrystals_
bool useNumCrystals_
Definition: PhotonIsolationCalculator.h:94
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
conversionTrackCandidates_cfi.vetoClusteredHits
vetoClusteredHits
Definition: conversionTrackCandidates_cfi.py:58
PhotonIsolationCalculator::barrelecalCollection_
edm::EDGetToken barrelecalCollection_
Definition: PhotonIsolationCalculator.h:85