CMS 3D CMS Logo

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