![]() |
![]() |
#include <PhotonMIPHaloTagger.h>
Public Member Functions | |
std::vector< double > | GetMipTrailFit (const reco::Photon *photon, const edm::Event &iEvent, const edm::EventSetup &iSetup, edm::Handle< EcalRecHitCollection > ecalhitsCollEB, double inputRangeY, double inputRangeX, double inputResWidth, double inputHaloDiscCut, int &NhitCone_, bool &ismipHalo_) |
void | GetSeedHighestE (const reco::Photon *photon, const edm::Event &iEvent, const edm::EventSetup &iSetup, edm::Handle< EcalRecHitCollection > Brechit, int &seedIEta, int &seedIPhi, double &seedE) |
void | MIPcalculate (const reco::Photon *, const edm::Event &, const edm::EventSetup &es, reco::Photon::MIPVariables &mipId) |
PhotonMIPHaloTagger () | |
void | setup (const edm::ParameterSet &conf, edm::ConsumesCollector &&iC) |
virtual | ~PhotonMIPHaloTagger () |
Protected Attributes | |
edm::EDGetToken | EBecalCollection_ |
edm::EDGetToken | EEecalCollection_ |
double | haloDiscThreshold_ |
double | inputHaloDiscCut |
double | inputRangeX |
double | inputRangeY |
double | inputResWidth |
bool | ismipHalo_ |
std::vector< double > | mipFitResults_ |
int | nhitCone_ |
double | residualWidthEnergy_ |
double | xRangeFit_ |
double | yRangeFit_ |
Definition at line 17 of file PhotonMIPHaloTagger.h.
|
inline |
Definition at line 21 of file PhotonMIPHaloTagger.h.
|
inlinevirtual |
Definition at line 23 of file PhotonMIPHaloTagger.h.
References GetMipTrailFit(), GetSeedHighestE(), iEvent, inputHaloDiscCut, inputRangeX, inputRangeY, inputResWidth, ismipHalo_, MIPcalculate(), muons2muons_cfi::photon, and setup().
std::vector< double > PhotonMIPHaloTagger::GetMipTrailFit | ( | const reco::Photon * | photon, |
const edm::Event & | iEvent, | ||
const edm::EventSetup & | iSetup, | ||
edm::Handle< EcalRecHitCollection > | ecalhitsCollEB, | ||
double | inputRangeY, | ||
double | inputRangeX, | ||
double | inputResWidth, | ||
double | inputHaloDiscCut, | ||
int & | NhitCone_, | ||
bool & | ismipHalo_ | ||
) |
Now Filll the FitResults vector
Definition at line 136 of file PhotonMIPHaloTagger.cc.
References Abs(), edm::SortedCollection< T, SORT >::begin(), vertices_cff::chi2, gather_cfg::cout, edm::SortedCollection< T, SORT >::end(), GetSeedHighestE(), EBDetId::ieta(), inputHaloDiscCut, inputRangeX, inputRangeY, inputResWidth, EBDetId::iphi(), funct::m, edm::Handle< T >::product(), reco::Photon::superCluster(), fftjetcommon_cfi::sx, and fftjetcommon_cfi::sy.
Referenced by MIPcalculate(), and ~PhotonMIPHaloTagger().
void PhotonMIPHaloTagger::GetSeedHighestE | ( | const reco::Photon * | photon, |
const edm::Event & | iEvent, | ||
const edm::EventSetup & | iSetup, | ||
edm::Handle< EcalRecHitCollection > | Brechit, | ||
int & | seedIEta, | ||
int & | seedIPhi, | ||
double & | seedE | ||
) |
Definition at line 380 of file PhotonMIPHaloTagger.cc.
References gather_cfg::cout, DetId::Ecal, EcalBarrel, edm::SortedCollection< T, SORT >::end(), edm::SortedCollection< T, SORT >::find(), EBDetId::ieta(), EBDetId::iphi(), and reco::Photon::superCluster().
Referenced by GetMipTrailFit(), and ~PhotonMIPHaloTagger().
void PhotonMIPHaloTagger::MIPcalculate | ( | const reco::Photon * | pho, |
const edm::Event & | e, | ||
const edm::EventSetup & | es, | ||
reco::Photon::MIPVariables & | mipId | ||
) |
Definition at line 67 of file PhotonMIPHaloTagger.cc.
References gather_cfg::cout, EBecalCollection_, edm::Event::getByToken(), GetMipTrailFit(), haloDiscThreshold_, inputHaloDiscCut, inputRangeX, inputRangeY, inputResWidth, ismipHalo_, edm::HandleBase::isValid(), reco::Photon::MIPVariables::mipChi2, mipFitResults_, reco::Photon::MIPVariables::mipIntercept, reco::Photon::MIPVariables::mipIsHalo, reco::Photon::MIPVariables::mipNhitCone, reco::Photon::MIPVariables::mipSlope, reco::Photon::MIPVariables::mipTotEnergy, nhitCone_, residualWidthEnergy_, xRangeFit_, and yRangeFit_.
Referenced by ~PhotonMIPHaloTagger().
void PhotonMIPHaloTagger::setup | ( | const edm::ParameterSet & | conf, |
edm::ConsumesCollector && | iC | ||
) |
Definition at line 48 of file PhotonMIPHaloTagger.cc.
References EBecalCollection_, EEecalCollection_, edm::ParameterSet::getParameter(), haloDiscThreshold_, residualWidthEnergy_, xRangeFit_, and yRangeFit_.
Referenced by GEDPhotonProducer::GEDPhotonProducer(), PhotonProducer::PhotonProducer(), and ~PhotonMIPHaloTagger().
|
protected |
Definition at line 62 of file PhotonMIPHaloTagger.h.
Referenced by MIPcalculate(), and setup().
|
protected |
Definition at line 63 of file PhotonMIPHaloTagger.h.
Referenced by setup().
|
protected |
Definition at line 78 of file PhotonMIPHaloTagger.h.
Referenced by MIPcalculate(), and setup().
|
protected |
Definition at line 71 of file PhotonMIPHaloTagger.h.
Referenced by GetMipTrailFit(), MIPcalculate(), and ~PhotonMIPHaloTagger().
|
protected |
Definition at line 69 of file PhotonMIPHaloTagger.h.
Referenced by GetMipTrailFit(), MIPcalculate(), and ~PhotonMIPHaloTagger().
|
protected |
Definition at line 68 of file PhotonMIPHaloTagger.h.
Referenced by GetMipTrailFit(), MIPcalculate(), and ~PhotonMIPHaloTagger().
|
protected |
Definition at line 70 of file PhotonMIPHaloTagger.h.
Referenced by GetMipTrailFit(), MIPcalculate(), and ~PhotonMIPHaloTagger().
|
protected |
Definition at line 83 of file PhotonMIPHaloTagger.h.
Referenced by MIPcalculate(), and ~PhotonMIPHaloTagger().
|
protected |
Definition at line 81 of file PhotonMIPHaloTagger.h.
Referenced by MIPcalculate().
|
protected |
Definition at line 82 of file PhotonMIPHaloTagger.h.
Referenced by MIPcalculate().
|
protected |
Definition at line 77 of file PhotonMIPHaloTagger.h.
Referenced by MIPcalculate(), and setup().
|
protected |
Definition at line 76 of file PhotonMIPHaloTagger.h.
Referenced by MIPcalculate(), and setup().
|
protected |
Definition at line 75 of file PhotonMIPHaloTagger.h.
Referenced by MIPcalculate(), and setup().