#include <EgHLTOffHelper.h>
Static Public Member Functions | |
template<class T > | |
static bool | getHandle (const edm::Event &event, const edm::InputTag &tag, edm::Handle< T > &handle) |
Private Member Functions | |
OffHelper (const OffHelper &rhs) | |
OffHelper & | operator= (const OffHelper &rhs) |
Definition at line 58 of file EgHLTOffHelper.h.
|
inlineprivate |
Definition at line 159 of file EgHLTOffHelper.h.
|
inline |
Definition at line 162 of file EgHLTOffHelper.h.
OffHelper::~OffHelper | ( | ) |
Definition at line 30 of file EgHLTOffHelper.cc.
References hltEleTrkIsolAlgo_, and hltPhoTrkIsolAlgo_.
void OffHelper::fillClusShapeData | ( | const reco::GsfElectron & | ele, |
OffEle::ClusShapeData & | clusShapeData | ||
) |
Definition at line 276 of file EgHLTOffHelper.cc.
References caloGeom_, caloTopology_, EcalClusterTools::covariances(), reco::GsfElectron::e1x5(), egHLT::OffEle::ClusShapeData::e1x5Over5x5, reco::GsfElectron::e2x5Max(), egHLT::OffEle::ClusShapeData::e2x5MaxOver5x5, EcalClusterTools::e3x3(), reco::GsfElectron::e5x5(), ebRecHits_, EcalBarrel, eeRecHits_, EcalClusterTools::localCovariances(), edm::ESHandle< class >::product(), egHLT::OffEle::ClusShapeData::r9, egHLT::OffEle::ClusShapeData::sigmaEtaEta, reco::GsfElectron::sigmaEtaEta(), egHLT::OffEle::ClusShapeData::sigmaIEtaIEta, reco::GsfElectron::sigmaIetaIeta(), egHLT::OffEle::ClusShapeData::sigmaIPhiIPhi, egHLT::OffEle::ClusShapeData::sigmaPhiPhi, mathSSE::sqrt(), DetId::subdetId(), and reco::GsfElectron::superCluster().
Referenced by fillOffEleVec(), and fillOffPhoVec().
void OffHelper::fillClusShapeData | ( | const reco::Photon & | pho, |
OffPho::ClusShapeData & | clusShapeData | ||
) |
Definition at line 417 of file EgHLTOffHelper.cc.
References caloGeom_, caloTopology_, EcalClusterTools::covariances(), reco::Photon::e1x5(), egHLT::OffPho::ClusShapeData::e1x5Over5x5, reco::Photon::e2x5(), egHLT::OffPho::ClusShapeData::e2x5MaxOver5x5, reco::Photon::e5x5(), ebRecHits_, EcalBarrel, eeRecHits_, EcalClusterTools::localCovariances(), edm::ESHandle< class >::product(), egHLT::OffPho::ClusShapeData::r9, reco::Photon::r9(), egHLT::OffPho::ClusShapeData::sigmaEtaEta, reco::Photon::sigmaEtaEta(), egHLT::OffPho::ClusShapeData::sigmaIEtaIEta, reco::Photon::sigmaIetaIeta(), egHLT::OffPho::ClusShapeData::sigmaIPhiIPhi, egHLT::OffPho::ClusShapeData::sigmaPhiPhi, mathSSE::sqrt(), DetId::subdetId(), and reco::Photon::superCluster().
void OffHelper::fillHLTData | ( | const reco::GsfElectron & | ele, |
OffEle::HLTData & | hltData | ||
) |
Definition at line 313 of file EgHLTOffHelper.cc.
References beamSpot_, reco::GsfElectron::closestCtfTrackRef(), SiPixelRawToDigiRegional_cfi::deltaPhi, egHLT::OffEle::HLTData::dEtaIn, egHLT::OffEle::HLTData::dPhiIn, reco::GsfElectron::ecalEnergy(), egHLT::trigTools::fillHLTposition(), hltFiltersUsed_, hltTag_, egHLT::OffEle::HLTData::invEInvP, edm::Ref< C, T, F >::isNonnull(), edm::Handle< T >::product(), reco::GsfElectron::superCluster(), and trigEvt_.
Referenced by fillOffEleVec().
void OffHelper::fillHLTDataPho | ( | const reco::Photon & | pho, |
OffPho::HLTData & | hltData | ||
) |
Definition at line 347 of file EgHLTOffHelper.cc.
References egHLT::trigTools::fillHLTposition(), hltFiltersUsed_, hltTag_, edm::Handle< T >::product(), and trigEvt_.
Referenced by fillOffPhoVec().
void OffHelper::fillIsolData | ( | const reco::GsfElectron & | ele, |
OffEle::IsolData & | isolData | ||
) |
Definition at line 243 of file EgHLTOffHelper.cc.
References calHLTEleTrkIsol_, calHLTEmIsol_, calHLTHcalIsol_, calHLTPhoTrkIsol_, caloGeom_, caloTowers_, reco::GsfElectron::dr03EcalRecHitSumEt(), reco::GsfElectron::dr03HcalDepth1TowerSumEt(), reco::GsfElectron::dr03HcalDepth2TowerSumEt(), reco::GsfElectron::dr03TkSumPt(), ebRecHits_, DetId::Ecal, ecalSeverityLevel_, eeRecHits_, EgammaHLTTrackIsolation::electronPtSum(), egHLT::OffEle::IsolData::em, reco::GsfElectron::gsfTrack(), egHLT::OffEle::IsolData::hadDepth1, egHLT::OffEle::IsolData::hadDepth2, hltEleTrkIsolAlgo_, egHLT::OffEle::IsolData::hltEm, hltEMIsolEMinEB_, hltEMIsolEMinEE_, hltEMIsolEtaSliceEB_, hltEMIsolEtaSliceEE_, hltEMIsolEtMinEB_, hltEMIsolEtMinEE_, hltEMIsolInnerConeEB_, hltEMIsolInnerConeEE_, hltEMIsolOuterCone_, egHLT::OffEle::IsolData::hltHad, hltHadIsolDepth_, hltHadIsolEtMin_, hltHadIsolInnerCone_, hltHadIsolOuterCone_, hltPhoTrkIsolAlgo_, hltPhoTrkIsolCountTrks_, egHLT::OffEle::IsolData::hltTrksEle, egHLT::OffEle::IsolData::hltTrksPho, isolTrks_, egHLT::OffEle::IsolData::nrTrks, EgammaHLTTrackIsolation::photonPtSum(), EgammaHLTTrackIsolation::photonTrackCount(), edm::Handle< T >::product(), edm::ESHandle< class >::product(), and egHLT::OffEle::IsolData::ptTrks.
Referenced by fillOffEleVec(), and fillOffPhoVec().
void OffHelper::fillIsolData | ( | const reco::Photon & | pho, |
OffPho::IsolData & | isolData | ||
) |
Definition at line 388 of file EgHLTOffHelper.cc.
References calHLTEmIsol_, calHLTHcalIsol_, calHLTPhoTrkIsol_, caloGeom_, caloTowers_, ebRecHits_, DetId::Ecal, reco::Photon::ecalRecHitSumEtConeDR03(), ecalSeverityLevel_, egHLT::OffPho::IsolData::em, egHLT::OffPho::IsolData::had, reco::Photon::hcalTowerSumEtConeDR03(), egHLT::OffPho::IsolData::hltEm, hltEMIsolEMinEB_, hltEMIsolEMinEE_, hltEMIsolEtaSliceEB_, hltEMIsolEtaSliceEE_, hltEMIsolEtMinEB_, hltEMIsolEtMinEE_, hltEMIsolInnerConeEB_, hltEMIsolInnerConeEE_, hltEMIsolOuterCone_, egHLT::OffPho::IsolData::hltHad, hltHadIsolDepth_, hltHadIsolEtMin_, hltHadIsolInnerCone_, hltHadIsolOuterCone_, hltPhoTrkIsolAlgo_, hltPhoTrkIsolCountTrks_, egHLT::OffPho::IsolData::hltTrks, isolTrks_, egHLT::OffPho::IsolData::nrTrks, reco::Photon::nTrkHollowConeDR03(), EgammaHLTTrackIsolation::photonPtSum(), EgammaHLTTrackIsolation::photonTrackCount(), edm::Handle< T >::product(), edm::ESHandle< class >::product(), egHLT::OffPho::IsolData::ptTrks, and reco::Photon::trkSumPtHollowConeDR03().
int OffHelper::fillOffEleVec | ( | std::vector< OffEle > & | offEles | ) |
Definition at line 202 of file EgHLTOffHelper.cc.
References eleCuts_, eleLooseCuts_, fillClusShapeData(), fillHLTData(), fillIsolData(), egHLT::OffEgSel::getCutCode(), i, egHLT::OffEle::EventData::NVertex, egHLT::errCodes::OffEle, recoEles_, recoVertices_, egHLT::OffEle::setCutCode(), egHLT::OffEle::setLooseCutCode(), egHLT::OffEle::setTrigCutsCutCodes(), mathSSE::sqrt(), and trigCuts_.
Referenced by makeOffEvt().
int OffHelper::fillOffPhoVec | ( | std::vector< OffPho > & | offPhos | ) |
Definition at line 358 of file EgHLTOffHelper.cc.
References fillClusShapeData(), fillHLTDataPho(), fillIsolData(), egHLT::OffEgSel::getCutCode(), i, egHLT::errCodes::OffPho, phoCuts_, phoLooseCuts_, recoPhos_, egHLT::OffPho::setCutCode(), egHLT::OffPho::setLooseCutCode(), egHLT::OffPho::setTrigCutsCutCodes(), and trigCuts_.
Referenced by makeOffEvt().
|
static |
Definition at line 196 of file EgHLTOffHelper.h.
References edm::Handle< T >::product(), and summarizeEdmComparisonLogfiles::success.
Referenced by getHandles().
int OffHelper::getHandles | ( | const edm::Event & | event, |
const edm::EventSetup & | setup | ||
) |
Definition at line 165 of file EgHLTOffHelper.cc.
References egHLT::errCodes::BeamSpot, beamSpot_, beamSpotTag_, caloGeom_, caloJetsTag_, caloTopology_, egHLT::errCodes::CaloTowers, caloTowers_, caloTowersTag_, egHLT::errCodes::EBRecHits, ebRecHits_, ecalRecHitsEBTag_, ecalRecHitsEETag_, egHLT::errCodes::EERecHits, eeRecHits_, electronsTag_, egHLT::errCodes::Geom, edm::EventSetup::get(), getHandle(), hbheHits_, hbheHitsTag_, egHLT::errCodes::HBHERecHits, hfHits_, hfHitsTag_, egHLT::errCodes::HFRecHits, egHLT::errCodes::IsolTrks, isolTrks_, isolTrkTag_, egHLT::errCodes::MagField, magField_, egHLT::errCodes::OffEle, egHLT::errCodes::OffJet, egHLT::errCodes::OffPho, egHLT::errCodes::OffVertex, photonsTag_, recoEles_, recoJets_, recoPhos_, recoVertices_, egHLT::errCodes::TrigEvent, trigEvt_, triggerSummaryLabel_, trigResults_, trigResultsTag_, and vertexTag_.
Referenced by makeOffEvt().
int OffHelper::makeOffEvt | ( | const edm::Event & | edmEvent, |
const edm::EventSetup & | setup, | ||
egHLT::OffEvt & | offEvent | ||
) |
Definition at line 152 of file EgHLTOffHelper.cc.
References egHLT::OffEvt::clear(), egHLT::OffEvt::eles(), fillOffEleVec(), fillOffPhoVec(), getHandles(), egHLT::OffEvt::phos(), recoJets_, egHLT::OffEvt::setJets(), and setTrigInfo().
Referenced by EgHLTOfflineSource::analyze().
Definition at line 158 of file EgHLTOffHelper.h.
int OffHelper::setTrigInfo | ( | const edm::Event & | edmEvent, |
egHLT::OffEvt & | offEvent | ||
) |
Definition at line 450 of file EgHLTOffHelper.cc.
References egHLT::OffEvt::eles(), egHLT::TrigCodes::getCode(), egHLT::trigTools::getFiltersPassed(), hltFiltersUsed_, hltFiltersUsedWithNrCandsCut_, hltTag_, l1PreAndSeedFilters_, l1PreScaledFilters_, l1PreScaledPaths_, egHLT::OffEvt::phos(), edm::Handle< T >::product(), egHLT::OffEvt::setEvtTrigBits(), egHLT::trigTools::setFiltersObjPasses(), findQualityFiles::size, trigEvt_, edm::TriggerNames::triggerIndex(), edm::Event::triggerNames(), and trigResults_.
Referenced by makeOffEvt().
void OffHelper::setup | ( | const edm::ParameterSet & | conf | ) |
Definition at line 36 of file EgHLTOffHelper.cc.
References beamSpotTag_, calHLTEleTrkIsol_, calHLTEmIsol_, calHLTHcalIsol_, calHLTPhoTrkIsol_, caloJetsTag_, caloTowersTag_, ecalRecHitsEBTag_, ecalRecHitsEETag_, electronsTag_, eleCuts_, eleLooseCuts_, edm::ParameterSet::getParameter(), hbheHitsTag_, hfHitsTag_, hltEleTrkIsolAlgo_, hltEleTrkIsolInnerCone_, hltEleTrkIsolOuterCone_, hltEleTrkIsolPtMin_, hltEleTrkIsolRSpan_, hltEleTrkIsolZSpan_, hltEMIsolEMinEB_, hltEMIsolEMinEE_, hltEMIsolEtaSliceEB_, hltEMIsolEtaSliceEE_, hltEMIsolEtMinEB_, hltEMIsolEtMinEE_, hltEMIsolInnerConeEB_, hltEMIsolInnerConeEE_, hltEMIsolOuterCone_, hltHadIsolDepth_, hltHadIsolEtMin_, hltHadIsolInnerCone_, hltHadIsolOuterCone_, hltPhoTrkIsolAlgo_, hltPhoTrkIsolCountTrks_, hltPhoTrkIsolInnerCone_, hltPhoTrkIsolOuterCone_, hltPhoTrkIsolPtMin_, hltPhoTrkIsolRSpan_, hltPhoTrkIsolZSpan_, hltTag_, isolTrkTag_, phoCuts_, phoLooseCuts_, photonsTag_, egHLT::OffEgSel::setup(), AlCaHLTBitMon_QueryRunRegistry::string, trigCutParams_, triggerSummaryLabel_, trigResultsTag_, and vertexTag_.
Referenced by EgHLTOfflineSource::EgHLTOfflineSource().
void OffHelper::setupTriggers | ( | const HLTConfigProvider & | config, |
const std::vector< std::string > & | hltFiltersUsed | ||
) |
Definition at line 103 of file EgHLTOffHelper.cc.
References spr::find(), egHLT::TrigCodes::getCode(), egHLT::trigTools::getL1SeedFilterOfPath(), egHLT::trigTools::getMinNrObjsRequiredByFilter(), hltFiltersUsed_, hltFiltersUsedWithNrCandsCut_, l1PreAndSeedFilters_, l1PreScaledFilters_, l1PreScaledPaths_, AlCaHLTBitMon_QueryRunRegistry::string, egHLT::trigTools::translateFiltersToPathNames(), trigCutParams_, and trigCuts_.
Referenced by EgHLTOfflineSource::beginRun().
|
inline |
Definition at line 188 of file EgHLTOffHelper.h.
References trigCuts_.
|
inline |
Definition at line 187 of file EgHLTOffHelper.h.
References edm::Handle< T >::product(), and trigEvt_.
|
private |
Definition at line 99 of file EgHLTOffHelper.h.
Referenced by fillHLTData(), and getHandles().
|
private |
Definition at line 78 of file EgHLTOffHelper.h.
Referenced by getHandles(), and setup().
|
private |
Definition at line 151 of file EgHLTOffHelper.h.
Referenced by fillIsolData(), and setup().
|
private |
Definition at line 150 of file EgHLTOffHelper.h.
Referenced by fillIsolData(), and setup().
|
private |
Definition at line 149 of file EgHLTOffHelper.h.
Referenced by fillIsolData(), and setup().
|
private |
Definition at line 152 of file EgHLTOffHelper.h.
Referenced by fillIsolData(), and setup().
|
private |
Definition at line 83 of file EgHLTOffHelper.h.
Referenced by fillClusShapeData(), fillIsolData(), and getHandles().
|
private |
Definition at line 71 of file EgHLTOffHelper.h.
Referenced by getHandles(), and setup().
|
private |
Definition at line 84 of file EgHLTOffHelper.h.
Referenced by fillClusShapeData(), and getHandles().
|
private |
Definition at line 100 of file EgHLTOffHelper.h.
Referenced by fillIsolData(), and getHandles().
|
private |
Definition at line 79 of file EgHLTOffHelper.h.
Referenced by getHandles(), and setup().
|
private |
Definition at line 88 of file EgHLTOffHelper.h.
Referenced by fillClusShapeData(), fillIsolData(), and getHandles().
|
private |
Definition at line 69 of file EgHLTOffHelper.h.
Referenced by getHandles(), and setup().
|
private |
Definition at line 70 of file EgHLTOffHelper.h.
Referenced by getHandles(), and setup().
|
private |
Definition at line 86 of file EgHLTOffHelper.h.
Referenced by fillIsolData().
|
private |
Definition at line 89 of file EgHLTOffHelper.h.
Referenced by fillClusShapeData(), fillIsolData(), and getHandles().
|
private |
Definition at line 76 of file EgHLTOffHelper.h.
Referenced by getHandles(), and setup().
|
private |
Definition at line 62 of file EgHLTOffHelper.h.
Referenced by fillOffEleVec(), and setup().
|
private |
Definition at line 61 of file EgHLTOffHelper.h.
Referenced by fillOffEleVec(), and setup().
|
private |
Definition at line 91 of file EgHLTOffHelper.h.
Referenced by getHandles().
|
private |
Definition at line 73 of file EgHLTOffHelper.h.
Referenced by getHandles(), and setup().
|
private |
Definition at line 90 of file EgHLTOffHelper.h.
Referenced by getHandles().
|
private |
Definition at line 74 of file EgHLTOffHelper.h.
Referenced by getHandles(), and setup().
|
private |
Definition at line 117 of file EgHLTOffHelper.h.
Referenced by fillIsolData(), setup(), and ~OffHelper().
|
private |
Definition at line 140 of file EgHLTOffHelper.h.
Referenced by setup().
|
private |
Definition at line 139 of file EgHLTOffHelper.h.
Referenced by setup().
|
private |
Definition at line 138 of file EgHLTOffHelper.h.
Referenced by setup().
|
private |
Definition at line 142 of file EgHLTOffHelper.h.
Referenced by setup().
|
private |
Definition at line 141 of file EgHLTOffHelper.h.
Referenced by setup().
|
private |
Definition at line 126 of file EgHLTOffHelper.h.
Referenced by fillIsolData(), and setup().
|
private |
Definition at line 130 of file EgHLTOffHelper.h.
Referenced by fillIsolData(), and setup().
|
private |
Definition at line 124 of file EgHLTOffHelper.h.
Referenced by fillIsolData(), and setup().
|
private |
Definition at line 128 of file EgHLTOffHelper.h.
Referenced by fillIsolData(), and setup().
|
private |
Definition at line 125 of file EgHLTOffHelper.h.
Referenced by fillIsolData(), and setup().
|
private |
Definition at line 129 of file EgHLTOffHelper.h.
Referenced by fillIsolData(), and setup().
|
private |
Definition at line 123 of file EgHLTOffHelper.h.
Referenced by fillIsolData(), and setup().
|
private |
Definition at line 127 of file EgHLTOffHelper.h.
Referenced by fillIsolData(), and setup().
|
private |
Definition at line 122 of file EgHLTOffHelper.h.
Referenced by fillIsolData(), and setup().
|
private |
Definition at line 109 of file EgHLTOffHelper.h.
Referenced by fillHLTData(), fillHLTDataPho(), setTrigInfo(), and setupTriggers().
|
private |
Definition at line 110 of file EgHLTOffHelper.h.
Referenced by setTrigInfo(), and setupTriggers().
|
private |
Definition at line 147 of file EgHLTOffHelper.h.
Referenced by fillIsolData(), and setup().
|
private |
Definition at line 146 of file EgHLTOffHelper.h.
Referenced by fillIsolData(), and setup().
|
private |
Definition at line 145 of file EgHLTOffHelper.h.
Referenced by fillIsolData(), and setup().
|
private |
Definition at line 144 of file EgHLTOffHelper.h.
Referenced by fillIsolData(), and setup().
|
private |
Definition at line 118 of file EgHLTOffHelper.h.
Referenced by fillIsolData(), setup(), and ~OffHelper().
|
private |
Definition at line 137 of file EgHLTOffHelper.h.
Referenced by fillIsolData(), and setup().
|
private |
Definition at line 134 of file EgHLTOffHelper.h.
Referenced by setup().
|
private |
Definition at line 133 of file EgHLTOffHelper.h.
Referenced by setup().
|
private |
Definition at line 132 of file EgHLTOffHelper.h.
Referenced by setup().
|
private |
Definition at line 136 of file EgHLTOffHelper.h.
Referenced by setup().
|
private |
Definition at line 135 of file EgHLTOffHelper.h.
Referenced by setup().
|
private |
Definition at line 108 of file EgHLTOffHelper.h.
Referenced by fillHLTData(), fillHLTDataPho(), setTrigInfo(), and setup().
|
private |
Definition at line 92 of file EgHLTOffHelper.h.
Referenced by fillIsolData(), and getHandles().
|
private |
Definition at line 72 of file EgHLTOffHelper.h.
Referenced by getHandles(), and setup().
|
private |
Definition at line 111 of file EgHLTOffHelper.h.
Referenced by setTrigInfo(), and setupTriggers().
|
private |
Definition at line 113 of file EgHLTOffHelper.h.
Referenced by setTrigInfo(), and setupTriggers().
|
private |
Definition at line 112 of file EgHLTOffHelper.h.
Referenced by setTrigInfo(), and setupTriggers().
|
private |
Definition at line 85 of file EgHLTOffHelper.h.
Referenced by getHandles().
|
private |
Definition at line 64 of file EgHLTOffHelper.h.
Referenced by fillOffPhoVec(), and setup().
|
private |
Definition at line 63 of file EgHLTOffHelper.h.
Referenced by fillOffPhoVec(), and setup().
|
private |
Definition at line 77 of file EgHLTOffHelper.h.
Referenced by getHandles(), and setup().
|
private |
Definition at line 96 of file EgHLTOffHelper.h.
Referenced by fillOffEleVec(), and getHandles().
|
private |
Definition at line 97 of file EgHLTOffHelper.h.
Referenced by getHandles(), and makeOffEvt().
|
private |
Definition at line 95 of file EgHLTOffHelper.h.
Referenced by fillOffPhoVec(), and getHandles().
|
private |
Definition at line 104 of file EgHLTOffHelper.h.
Referenced by fillOffEleVec(), and getHandles().
|
private |
Definition at line 155 of file EgHLTOffHelper.h.
Referenced by setup(), and setupTriggers().
|
private |
Definition at line 66 of file EgHLTOffHelper.h.
Referenced by fillOffEleVec(), fillOffPhoVec(), setupTriggers(), and trigCuts().
|
private |
Definition at line 94 of file EgHLTOffHelper.h.
Referenced by fillHLTData(), fillHLTDataPho(), getHandles(), setTrigInfo(), and trigEvt().
|
private |
Definition at line 75 of file EgHLTOffHelper.h.
Referenced by getHandles(), and setup().
|
private |
Definition at line 102 of file EgHLTOffHelper.h.
Referenced by getHandles(), and setTrigInfo().
|
private |
Definition at line 80 of file EgHLTOffHelper.h.
Referenced by getHandles(), and setup().
|
private |
Definition at line 81 of file EgHLTOffHelper.h.
Referenced by getHandles(), and setup().