CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes
PhotonIsolationCalculator Class Reference

#include <PhotonIsolationCalculator.h>

Public Member Functions

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
 
 PhotonIsolationCalculator ()
 
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)
 
 ~PhotonIsolationCalculator ()
 

Private Member Functions

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
 
double calculateHcalTowerIso (const reco::Photon *photon, const edm::Event &iEvent, const edm::EventSetup &iSetup, double RCone, double RConeInner, double eMin, signed int depth) const
 
double calculateHcalTowerIso (const reco::Photon *photon, const edm::Event &iEvent, const edm::EventSetup &iSetup, double RCone, double eMin, signed int depth) const
 
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
 

Static Private Member Functions

static void classify (const reco::Photon *photon, bool &isEBPho, bool &isEEPho, bool &isEBEtaGap, bool &isEBPhiGap, bool &isEERingGap, bool &isEEDeeGap, bool &isEBEEGap)
 

Private Attributes

edm::EDGetToken barrelecalCollection_
 
edm::EDGetToken beamSpotProducerTag_
 
double ecalIsoBarrelRadiusA_ [5]
 
double ecalIsoBarrelRadiusB_ [5]
 
double ecalIsoEndcapRadiusA_ [5]
 
double ecalIsoEndcapRadiusB_ [5]
 
edm::EDGetToken endcapecalCollection_
 
std::vector< int > flagsEB_
 
std::vector< int > flagsEE_
 
edm::EDGetToken hcalCollection_
 
double hcalIsoBarrelRadiusA_ [9]
 
double hcalIsoBarrelRadiusB_ [9]
 
double hcalIsoEndcapRadiusA_ [9]
 
double hcalIsoEndcapRadiusB_ [9]
 
std::vector< double > moduleEtaBoundary_
 
double modulePhiBoundary_
 
std::vector< int > severityExclEB_
 
std::vector< int > severityExclEE_
 
edm::EDGetToken trackInputTag_
 
double trkIsoBarrelRadiusA_ [6]
 
double trkIsoBarrelRadiusB_ [6]
 
double trkIsoEndcapRadiusA_ [6]
 
double trkIsoEndcapRadiusB_ [6]
 
bool useNumCrystals_
 
bool vetoClusteredEcalHits_
 

Detailed Description

Determine and Set quality information on Photon Objects

Author
A. Askew, N. Marinelli, M.B. Anderson

Definition at line 17 of file PhotonIsolationCalculator.h.

Constructor & Destructor Documentation

PhotonIsolationCalculator::PhotonIsolationCalculator ( )
inline

Definition at line 21 of file PhotonIsolationCalculator.h.

21 {}
PhotonIsolationCalculator::~PhotonIsolationCalculator ( )
inline

Definition at line 23 of file PhotonIsolationCalculator.h.

23 {}

Member Function Documentation

void PhotonIsolationCalculator::calculate ( const reco::Photon pho,
const edm::Event e,
const edm::EventSetup es,
reco::Photon::FiducialFlags phofid,
reco::Photon::IsolationVariables phoisolR03,
reco::Photon::IsolationVariables phoisolR04 
) const

Definition at line 180 of file PhotonIsolationCalculator.cc.

double PhotonIsolationCalculator::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
private

Definition at line 588 of file PhotonIsolationCalculator.cc.

double PhotonIsolationCalculator::calculateHcalTowerIso ( const reco::Photon photon,
const edm::Event iEvent,
const edm::EventSetup iSetup,
double  RCone,
double  RConeInner,
double  eMin,
signed int  depth 
) const
private

Definition at line 654 of file PhotonIsolationCalculator.cc.

double PhotonIsolationCalculator::calculateHcalTowerIso ( const reco::Photon photon,
const edm::Event iEvent,
const edm::EventSetup iSetup,
double  RCone,
double  eMin,
signed int  depth 
) const
private

Definition at line 686 of file PhotonIsolationCalculator.cc.

void PhotonIsolationCalculator::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
private

Definition at line 547 of file PhotonIsolationCalculator.cc.

void PhotonIsolationCalculator::classify ( const reco::Photon photon,
bool &  isEBPho,
bool &  isEEPho,
bool &  isEBEtaGap,
bool &  isEBPhiGap,
bool &  isEERingGap,
bool &  isEEDeeGap,
bool &  isEBEEGap 
)
staticprivate

Definition at line 495 of file PhotonIsolationCalculator.cc.

void PhotonIsolationCalculator::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 
)

Isolation parameters for barrel and for two different cone sizes

Isolation parameters for Endcap and for two different cone sizes

Definition at line 45 of file PhotonIsolationCalculator.cc.

Member Data Documentation

edm::EDGetToken PhotonIsolationCalculator::barrelecalCollection_
private

Definition at line 98 of file PhotonIsolationCalculator.h.

edm::EDGetToken PhotonIsolationCalculator::beamSpotProducerTag_
private

Definition at line 103 of file PhotonIsolationCalculator.h.

double PhotonIsolationCalculator::ecalIsoBarrelRadiusA_[5]
private

Definition at line 110 of file PhotonIsolationCalculator.h.

double PhotonIsolationCalculator::ecalIsoBarrelRadiusB_[5]
private

Definition at line 113 of file PhotonIsolationCalculator.h.

double PhotonIsolationCalculator::ecalIsoEndcapRadiusA_[5]
private

Definition at line 117 of file PhotonIsolationCalculator.h.

double PhotonIsolationCalculator::ecalIsoEndcapRadiusB_[5]
private

Definition at line 120 of file PhotonIsolationCalculator.h.

edm::EDGetToken PhotonIsolationCalculator::endcapecalCollection_
private

Definition at line 99 of file PhotonIsolationCalculator.h.

std::vector<int> PhotonIsolationCalculator::flagsEB_
private

Definition at line 124 of file PhotonIsolationCalculator.h.

std::vector<int> PhotonIsolationCalculator::flagsEE_
private

Definition at line 125 of file PhotonIsolationCalculator.h.

edm::EDGetToken PhotonIsolationCalculator::hcalCollection_
private

Definition at line 100 of file PhotonIsolationCalculator.h.

double PhotonIsolationCalculator::hcalIsoBarrelRadiusA_[9]
private

Definition at line 111 of file PhotonIsolationCalculator.h.

double PhotonIsolationCalculator::hcalIsoBarrelRadiusB_[9]
private

Definition at line 114 of file PhotonIsolationCalculator.h.

double PhotonIsolationCalculator::hcalIsoEndcapRadiusA_[9]
private

Definition at line 118 of file PhotonIsolationCalculator.h.

double PhotonIsolationCalculator::hcalIsoEndcapRadiusB_[9]
private

Definition at line 121 of file PhotonIsolationCalculator.h.

std::vector<double> PhotonIsolationCalculator::moduleEtaBoundary_
private

Definition at line 105 of file PhotonIsolationCalculator.h.

double PhotonIsolationCalculator::modulePhiBoundary_
private

Definition at line 104 of file PhotonIsolationCalculator.h.

std::vector<int> PhotonIsolationCalculator::severityExclEB_
private

Definition at line 126 of file PhotonIsolationCalculator.h.

std::vector<int> PhotonIsolationCalculator::severityExclEE_
private

Definition at line 127 of file PhotonIsolationCalculator.h.

edm::EDGetToken PhotonIsolationCalculator::trackInputTag_
private

Definition at line 102 of file PhotonIsolationCalculator.h.

double PhotonIsolationCalculator::trkIsoBarrelRadiusA_[6]
private

Definition at line 109 of file PhotonIsolationCalculator.h.

double PhotonIsolationCalculator::trkIsoBarrelRadiusB_[6]
private

Definition at line 112 of file PhotonIsolationCalculator.h.

double PhotonIsolationCalculator::trkIsoEndcapRadiusA_[6]
private

Definition at line 116 of file PhotonIsolationCalculator.h.

double PhotonIsolationCalculator::trkIsoEndcapRadiusB_[6]
private

Definition at line 119 of file PhotonIsolationCalculator.h.

bool PhotonIsolationCalculator::useNumCrystals_
private

Definition at line 107 of file PhotonIsolationCalculator.h.

bool PhotonIsolationCalculator::vetoClusteredEcalHits_
private

Definition at line 106 of file PhotonIsolationCalculator.h.