Definition at line 1060 of file ElectronMcSignalValidator.cc.
References funct::abs(), reco::GsfElectron::ambiguousGsfTracksSize(), beamSpotTag_, reco::GsfElectron::caloEnergy(), edm::RefToBase< T >::castTo(), reco::LeafCandidate::charge(), reco::GsfElectron::classification(), reco::GsfElectron::convDcot(), reco::GsfElectron::convDist(), reco::GsfElectron::convFlags(), reco::GsfElectron::convRadius(), reco::GsfElectron::correctedEcalEnergyError(), edmIntegrityCheck::d, reco::GsfElectron::deltaEtaEleClusterTrackAtCalo(), reco::GsfElectron::deltaEtaSeedClusterTrackAtCalo(), reco::GsfElectron::deltaEtaSuperClusterTrackAtVtx(), reco::GsfElectron::deltaPhiEleClusterTrackAtCalo(), reco::GsfElectron::deltaPhiSeedClusterTrackAtCalo(), reco::GsfElectron::deltaPhiSuperClusterTrackAtVtx(), reco::deltaR2(), deltaR2_, reco::GsfElectron::dr03EcalRecHitSumEt(), reco::GsfElectron::dr03HcalDepth1TowerSumEt(), reco::GsfElectron::dr03HcalDepth1TowerSumEtBc(), reco::GsfElectron::dr03HcalDepth2TowerSumEt(), reco::GsfElectron::dr03HcalDepth2TowerSumEtBc(), reco::GsfElectron::dr03TkSumPt(), reco::GsfElectron::dr04EcalRecHitSumEt(), reco::GsfElectron::dr04HcalDepth1TowerSumEt(), reco::GsfElectron::dr04HcalDepth1TowerSumEtBc(), reco::GsfElectron::dr04HcalDepth2TowerSumEt(), reco::GsfElectron::dr04HcalDepth2TowerSumEtBc(), reco::GsfElectron::dr04TkSumPt(), reco::GsfElectron::ecalDrivenSeed(), reco::GsfElectron::ecalEnergy(), reco::GsfElectron::eEleClusterOverPout(), electronCollection_, electronCoreCollection_, electronSeedCollection_, electronTrackCollection_, reco::GsfElectron::eSeedClusterOverP(), reco::GsfElectron::eSeedClusterOverPout(), reco::GsfElectron::eSuperClusterOverP(), reco::LeafCandidate::eta(), funct::false, reco::GsfElectron::fbrem(), MonitorElement::Fill(), HcalObjRepresent::Fill(), flags, reco::GsfElectron::full5x5_sigmaIetaIeta(), GenHFHadronMatcher_cfi::genParticles, edm::Event::getByToken(), gsfElectronCores_cfi::gsfElectronCores, gsfElectrons_cfi::gsfElectrons, reco::GsfElectron::gsfTrack(), h1_ele_ambiguousTracks, h1_ele_charge, h1_ele_chargedHadronIso, h1_ele_chargedHadronIso_barrel, h1_ele_chargedHadronIso_endcaps, h1_ele_chargedHadronRelativeIso, h1_ele_chargedHadronRelativeIso_barrel, h1_ele_chargedHadronRelativeIso_endcaps, h1_ele_chargedHadronRelativeIso_mAOD, h1_ele_chargedHadronRelativeIso_mAOD_barrel, h1_ele_chargedHadronRelativeIso_mAOD_endcaps, h1_ele_chargeInfo, h1_ele_ChargeMnChargeTrue, h1_ele_chi2, h1_ele_chi2_barrel, h1_ele_chi2_endcaps, h1_ele_classes, h1_ele_combinedP4Error, h1_ele_combinedP4Error_barrel, h1_ele_combinedP4Error_endcaps, h1_ele_convDcot, h1_ele_convDcot_all, h1_ele_convDist, h1_ele_convDist_all, h1_ele_convFlags, h1_ele_convFlags_all, h1_ele_convRadius, h1_ele_convRadius_all, h1_ele_dEtaCl_propOut, h1_ele_dEtaCl_propOut_all, h1_ele_dEtaCl_propOut_barrel, h1_ele_dEtaCl_propOut_endcaps, h1_ele_dEtaEleCl_propOut, h1_ele_dEtaEleCl_propOut_barrel, h1_ele_dEtaEleCl_propOut_endcaps, h1_ele_dEtaSc_propVtx, h1_ele_dEtaSc_propVtx_all, h1_ele_dEtaSc_propVtx_barrel, h1_ele_dEtaSc_propVtx_endcaps, h1_ele_dEtaSc_propVtx_mAOD, h1_ele_dEtaSc_propVtx_mAOD_barrel, h1_ele_dEtaSc_propVtx_mAOD_endcaps, h1_ele_dPhiCl_propOut, h1_ele_dPhiCl_propOut_all, h1_ele_dPhiCl_propOut_barrel, h1_ele_dPhiCl_propOut_endcaps, h1_ele_dPhiCl_propOut_mAOD, h1_ele_dPhiCl_propOut_mAOD_barrel, h1_ele_dPhiCl_propOut_mAOD_endcaps, h1_ele_dPhiEleCl_propOut, h1_ele_dPhiEleCl_propOut_barrel, h1_ele_dPhiEleCl_propOut_endcaps, h1_ele_dPhiSc_propVtx, h1_ele_dPhiSc_propVtx_all, h1_ele_dPhiSc_propVtx_barrel, h1_ele_dPhiSc_propVtx_endcaps, h1_ele_ecalEnergyError, h1_ele_ecalEnergyError_barrel, h1_ele_ecalEnergyError_endcaps, h1_ele_ecalRecHitSumEt_dr03, h1_ele_ecalRecHitSumEt_dr03_barrel, h1_ele_ecalRecHitSumEt_dr03_endcaps, h1_ele_ecalRecHitSumEt_dr04, h1_ele_ecalRecHitSumEt_dr04_barrel, h1_ele_ecalRecHitSumEt_dr04_endcaps, h1_ele_EeleOPout, h1_ele_EeleOPout_all, h1_ele_EeleOPout_barrel, h1_ele_EeleOPout_endcaps, h1_ele_EoP, h1_ele_EoP_barrel, h1_ele_EoP_endcaps, h1_ele_EoPout, h1_ele_EoPout_all, h1_ele_EoPout_barrel, h1_ele_EoPout_endcaps, h1_ele_EoverP_all, h1_ele_EseedOP, h1_ele_EseedOP_all, h1_ele_EseedOP_barrel, h1_ele_EseedOP_endcaps, h1_ele_Et, h1_ele_Et_all, h1_ele_eta, h1_ele_eta_bbrem, h1_ele_eta_golden, h1_ele_eta_shower, h1_ele_EtaMnEtaTrue, h1_ele_EtaMnEtaTrue_barrel, h1_ele_EtaMnEtaTrue_endcaps, h1_ele_fbrem, h1_ele_fbrem_barrel, h1_ele_fbrem_endcaps, h1_ele_fbrem_mAOD, h1_ele_fbrem_mAOD_barrel, h1_ele_fbrem_mAOD_endcaps, h1_ele_foundHits, h1_ele_foundHits_barrel, h1_ele_foundHits_endcaps, h1_ele_hcalDepth1OverEcalBc, h1_ele_hcalDepth1OverEcalBc_barrel, h1_ele_hcalDepth1OverEcalBc_endcaps, h1_ele_hcalDepth2OverEcalBc, h1_ele_hcalDepth2OverEcalBc_barrel, h1_ele_hcalDepth2OverEcalBc_endcaps, h1_ele_hcalTowerSumEt_dr03_depth1, h1_ele_hcalTowerSumEt_dr03_depth1_barrel, h1_ele_hcalTowerSumEt_dr03_depth1_endcaps, h1_ele_hcalTowerSumEt_dr03_depth2, h1_ele_hcalTowerSumEt_dr03_depth2_barrel, h1_ele_hcalTowerSumEt_dr03_depth2_endcaps, h1_ele_hcalTowerSumEt_dr04_depth1, h1_ele_hcalTowerSumEt_dr04_depth1_barrel, h1_ele_hcalTowerSumEt_dr04_depth1_endcaps, h1_ele_hcalTowerSumEt_dr04_depth2, h1_ele_hcalTowerSumEt_dr04_depth2_barrel, h1_ele_hcalTowerSumEt_dr04_depth2_endcaps, h1_ele_hcalTowerSumEtBc_dr03_depth1, h1_ele_hcalTowerSumEtBc_dr03_depth1_barrel, h1_ele_hcalTowerSumEtBc_dr03_depth1_endcaps, h1_ele_hcalTowerSumEtBc_dr03_depth2, h1_ele_hcalTowerSumEtBc_dr03_depth2_barrel, h1_ele_hcalTowerSumEtBc_dr03_depth2_endcaps, h1_ele_hcalTowerSumEtBc_dr04_depth1, h1_ele_hcalTowerSumEtBc_dr04_depth1_barrel, h1_ele_hcalTowerSumEtBc_dr04_depth1_endcaps, h1_ele_hcalTowerSumEtBc_dr04_depth2, h1_ele_hcalTowerSumEtBc_dr04_depth2_barrel, h1_ele_hcalTowerSumEtBc_dr04_depth2_endcaps, h1_ele_HoE, h1_ele_HoE_all, h1_ele_HoE_barrel, h1_ele_HoE_bc, h1_ele_HoE_bc_all, h1_ele_HoE_bc_barrel, h1_ele_HoE_bc_endcaps, h1_ele_HoE_endcaps, h1_ele_HoE_fiducial, h1_ele_HoE_mAOD, h1_ele_HoE_mAOD_barrel, h1_ele_HoE_mAOD_endcaps, h1_ele_lostHits, h1_ele_lostHits_barrel, h1_ele_lostHits_endcaps, h1_ele_mee_all, h1_ele_mee_os, h1_ele_mee_os_bb, h1_ele_mee_os_ebeb, h1_ele_mee_os_ebee, h1_ele_mee_os_eeee, h1_ele_mee_os_gb, h1_ele_mee_os_gg, h1_ele_mva, h1_ele_mva_barrel, h1_ele_mva_barrel_isolated, h1_ele_mva_endcaps, h1_ele_mva_endcaps_isolated, h1_ele_mva_isolated, h1_ele_neutralHadronIso, h1_ele_neutralHadronIso_barrel, h1_ele_neutralHadronIso_endcaps, h1_ele_neutralHadronRelativeIso, h1_ele_neutralHadronRelativeIso_barrel, h1_ele_neutralHadronRelativeIso_endcaps, h1_ele_neutralHadronRelativeIso_mAOD, h1_ele_neutralHadronRelativeIso_mAOD_barrel, h1_ele_neutralHadronRelativeIso_mAOD_endcaps, h1_ele_outerP, h1_ele_outerP_mode, h1_ele_outerPt, h1_ele_outerPt_mode, h1_ele_PhiMnPhiTrue, h1_ele_PhiMnPhiTrue2, h1_ele_PhiMnPhiTrue_barrel, h1_ele_PhiMnPhiTrue_endcaps, h1_ele_photonIso, h1_ele_photonIso_barrel, h1_ele_photonIso_endcaps, h1_ele_photonRelativeIso, h1_ele_photonRelativeIso_barrel, h1_ele_photonRelativeIso_endcaps, h1_ele_photonRelativeIso_mAOD, h1_ele_photonRelativeIso_mAOD_barrel, h1_ele_photonRelativeIso_mAOD_endcaps, h1_ele_PinMnPout, h1_ele_PinMnPout_mode, h1_ele_PoPtrue, h1_ele_PoPtrue_barrel, h1_ele_PoPtrue_endcaps, h1_ele_PoPtrue_golden_barrel, h1_ele_PoPtrue_golden_endcaps, h1_ele_PoPtrue_showering_barrel, h1_ele_PoPtrue_showering_endcaps, h1_ele_provenance, h1_ele_provenance_barrel, h1_ele_provenance_endcaps, h1_ele_PtoPttrue, h1_ele_PtoPttrue_barrel, h1_ele_PtoPttrue_endcaps, h1_ele_seed_dphi2, h1_ele_seed_dphi2pos, h1_ele_seed_drz2, h1_ele_seed_drz2pos, h1_ele_seed_mask, h1_ele_seed_mask_bpix, h1_ele_seed_mask_fpix, h1_ele_seed_mask_tec, h1_ele_seed_subdet2, h1_ele_superclusterfbrem, h1_ele_superclusterfbrem_barrel, h1_ele_superclusterfbrem_endcaps, h1_ele_TIP_all, h1_ele_tkSumPt_dr03, h1_ele_tkSumPt_dr03_barrel, h1_ele_tkSumPt_dr03_endcaps, h1_ele_tkSumPt_dr04, h1_ele_tkSumPt_dr04_barrel, h1_ele_tkSumPt_dr04_endcaps, h1_ele_vertexEta, h1_ele_vertexEta_all, h1_ele_vertexP, h1_ele_vertexPhi, h1_ele_vertexPt, h1_ele_vertexPt_all, h1_ele_vertexPt_nocut, h1_ele_vertexTIP, h1_ele_vertexX, h1_ele_vertexY, h1_ele_vertexZ, h1_eleNum, h1_mc_AbsEta, h1_mc_AbsEta_matched, h1_mc_AbsEta_matched_qmisid, h1_mc_Eta, h1_mc_Eta_matched, h1_mc_Eta_matched_qmisid, h1_mc_P, h1_mc_Phi, h1_mc_Phi_matched, h1_mc_Phi_matched_qmisid, h1_mc_Pt, h1_mc_Pt_matched, h1_mc_Pt_matched_qmisid, h1_mc_Z, h1_mc_Z_matched, h1_mc_Z_matched_qmisid, h1_mcNum, h1_recCoreNum, h1_recEleNum, h1_recOfflineVertices, h1_recSeedNum, h1_recTrackNum, h1_scl_bcl_EtotoEtrue, h1_scl_bcl_EtotoEtrue_barrel, h1_scl_bcl_EtotoEtrue_endcaps, h1_scl_E1x5, h1_scl_E1x5_barrel, h1_scl_E1x5_endcaps, h1_scl_E2x5max, h1_scl_E2x5max_barrel, h1_scl_E2x5max_endcaps, h1_scl_E5x5, h1_scl_E5x5_barrel, h1_scl_E5x5_endcaps, h1_scl_En, h1_scl_EoEtrue_barrel, h1_scl_EoEtrue_barrel_etagap, h1_scl_EoEtrue_barrel_new, h1_scl_EoEtrue_barrel_new_etagap, h1_scl_EoEtrue_barrel_new_phigap, h1_scl_EoEtrue_barrel_phigap, h1_scl_EoEtrue_ebeegap, h1_scl_EoEtrue_ebeegap_new, h1_scl_EoEtrue_endcaps, h1_scl_EoEtrue_endcaps_deegap, h1_scl_EoEtrue_endcaps_new, h1_scl_EoEtrue_endcaps_new_deegap, h1_scl_EoEtrue_endcaps_new_ringgap, h1_scl_EoEtrue_endcaps_ringgap, h1_scl_EoEtrueGolden_barrel, h1_scl_EoEtrueGolden_endcaps, h1_scl_EoEtrueShowering_barrel, h1_scl_EoEtrueShowering_endcaps, h1_scl_ESFrac_endcaps, h1_scl_Et, h1_scl_Eta, h1_scl_full5x5_sigmaIetaIeta, h1_scl_full5x5_sigmaIetaIeta_barrel, h1_scl_full5x5_sigmaIetaIeta_endcaps, h1_scl_Phi, h1_scl_SigEtaEta, h1_scl_SigEtaEta_barrel, h1_scl_SigEtaEta_endcaps, h1_scl_SigIEtaIEta, h1_scl_SigIEtaIEta_barrel, h1_scl_SigIEtaIEta_endcaps, h1_scl_SigIEtaIEta_mAOD, h1_scl_SigIEtaIEta_mAOD_barrel, h1_scl_SigIEtaIEta_mAOD_endcaps, h2_ele_ambiguousTracksVsEta, h2_ele_ambiguousTracksVsPhi, h2_ele_ambiguousTracksVsPt, h2_ele_chargeVsEta, h2_ele_chargeVsPhi, h2_ele_chargeVsPt, h2_ele_chi2VsEta, h2_ele_chi2VsPhi, h2_ele_chi2VsPt, h2_ele_dEtaClVsEta_propOut, h2_ele_dEtaClVsPhi_propOut, h2_ele_dEtaClVsPt_propOut, h2_ele_dEtaEleClVsEta_propOut, h2_ele_dEtaEleClVsPhi_propOut, h2_ele_dEtaEleClVsPt_propOut, h2_ele_dEtaScVsEta_propVtx, h2_ele_dEtaScVsPhi_propVtx, h2_ele_dEtaScVsPt_propVtx, h2_ele_dPhiClVsEta_propOut, h2_ele_dPhiClVsPhi_propOut, h2_ele_dPhiClVsPt_propOut, h2_ele_dPhiEleClVsEta_propOut, h2_ele_dPhiEleClVsPhi_propOut, h2_ele_dPhiEleClVsPt_propOut, h2_ele_dPhiScVsEta_propVtx, h2_ele_dPhiScVsPhi_propVtx, h2_ele_dPhiScVsPt_propVtx, h2_ele_E2mnE1vsMee_all, h2_ele_E2mnE1vsMee_egeg_all, h2_ele_EeleOPoutVsE, h2_ele_EeleOPoutVsEta, h2_ele_EeleOPoutVsPhi, h2_ele_EoPoutVsE, h2_ele_EoPoutVsEta, h2_ele_EoPoutVsPhi, h2_ele_EoPVsE, h2_ele_EoPVsEta, h2_ele_EoPVsPhi, h2_ele_EseedOPVsE, h2_ele_EseedOPVsEta, h2_ele_EseedOPVsPhi, h2_ele_EtaMnEtaTrueVsEta, h2_ele_EtaMnEtaTrueVsPhi, h2_ele_EtaMnEtaTrueVsPt, h2_ele_foundHitsVsEta, h2_ele_foundHitsVsEta_mAOD, h2_ele_foundHitsVsPhi, h2_ele_foundHitsVsPt, h2_ele_HoEVsE, h2_ele_HoEVsEta, h2_ele_HoEVsPhi, h2_ele_lostHitsVsEta, h2_ele_lostHitsVsPhi, h2_ele_lostHitsVsPt, h2_ele_outerPtVsEta_mode, h2_ele_outerPtVsPhi_mode, h2_ele_outerPtVsPt_mode, h2_ele_outerPVsEta_mode, h2_ele_PhiMnPhiTrueVsEta, h2_ele_PhiMnPhiTrueVsPhi, h2_ele_PhiMnPhiTrueVsPt, h2_ele_PinMnPoutVsChi2_mode, h2_ele_PinMnPoutVsE_mode, h2_ele_PinMnPoutVsEta_mode, h2_ele_PinMnPoutVsPhi_mode, h2_ele_PinMnPoutVsPt_mode, h2_ele_PinVsPoutGolden_mean, h2_ele_PinVsPoutGolden_mode, h2_ele_PinVsPoutShowering_mean, h2_ele_PinVsPoutShowering_mode, h2_ele_PoPtrueVsEta, h2_ele_PoPtrueVsPhi, h2_ele_PoPtrueVsPt, h2_ele_PtinVsPtoutGolden_mean, h2_ele_PtinVsPtoutGolden_mode, h2_ele_PtinVsPtoutShowering_mean, h2_ele_PtinVsPtoutShowering_mode, h2_ele_seed_dphi2posVsEta, h2_ele_seed_dphi2posVsPt, h2_ele_seed_dphi2VsEta, h2_ele_seed_dphi2VsPt, h2_ele_seed_drz2posVsEta, h2_ele_seed_drz2posVsPt, h2_ele_seed_drz2VsEta, h2_ele_seed_drz2VsPt, h2_ele_sigmaIetaIetaVsPt, h2_ele_vertexEtaVsPhi, h2_ele_vertexPtVsEta, h2_ele_vertexPtVsPhi, h2_ele_vertexTIPVsEta, h2_ele_vertexTIPVsPhi, h2_ele_vertexTIPVsPt, h2_mc_PtEta, h2_mc_PtEta_matched, h2_scl_EoEtruePfVsEg, h2_scl_EoEtrueVsrecOfflineVertices, h2_scl_EoEtrueVsrecOfflineVertices_barrel, h2_scl_EoEtrueVsrecOfflineVertices_endcaps, h2_scl_EtaVsPhi, h2_scl_EtVsEta, h2_scl_EtVsPhi, reco::GsfElectron::hcalDepth1OverEcalBc(), reco::GsfElectron::hcalDepth2OverEcalBc(), reco::GsfElectron::hcalOverEcal(), reco::GsfElectron::hcalOverEcalBc(), mps_fire::i, edm::EventBase::id(), infinity, reco::GsfElectron::isEB(), reco::GsfElectron::isEBEEGap(), reco::GsfElectron::isEBEtaGap(), reco::GsfElectron::isEBPhiGap(), reco::GsfElectron::isEE(), reco::GsfElectron::isEEDeeGap(), reco::GsfElectron::isEERingGap(), reco::GsfElectron::isGsfCtfChargeConsistent(), reco::GsfElectron::isGsfCtfScPixChargeConsistent(), reco::GsfElectron::isGsfScPixChargeConsistent(), edm::Ref< C, T, F >::isNull(), isoFromDepsEcalFull03Tag_, isoFromDepsEcalFull04Tag_, isoFromDepsEcalReduced03Tag_, isoFromDepsEcalReduced04Tag_, isoFromDepsHcal03Tag_, isoFromDepsHcal04Tag_, isoFromDepsTk03Tag_, isoFromDepsTk04Tag_, edm::HandleBase::isValid(), matchingIDs_, matchingMotherIDs_, maxAbsEta_, maxPt_, mcTruthCollection_, reco::Candidate::mother(), reco::GsfElectron::mva_e_pi(), reco::GsfElectron::mva_Isolated(), reco::Candidate::numberOfDaughters(), offlineVerticesCollection_, reco::LeafCandidate::p(), p1_ele_fbremVsEta_mean, p1_ele_fbremVsEta_mode, reco::GsfElectron::P4_COMBINATION, reco::GsfElectron::p4Error(), reco::GsfElectron::parentSuperCluster(), reco::Candidate::pdgId(), perp(), reco::GsfElectron::pfIsolationVariables(), reco::LeafCandidate::phi(), pi, reco::BeamSpot::position(), edm::Handle< T >::product(), reco::LeafCandidate::pt(), reco::LeafCandidate::py(), dttmaxenums::R, readAOD_, reco::GsfElectron::scE1x5(), reco::GsfElectron::scE2x5Max(), reco::GsfElectron::scE5x5(), reco::GsfElectron::scSigmaEtaEta(), reco::GsfElectron::scSigmaIEtaIEta(), SurveyInfoScenario_cff::seed, mathSSE::sqrt(), reco::GsfElectron::PflowIsolationVariables::sumChargedHadronPt, reco::GsfElectron::PflowIsolationVariables::sumNeutralHadronEt, reco::GsfElectron::PflowIsolationVariables::sumPhotonEt, reco::GsfElectron::superCluster(), reco::GsfElectron::superClusterFbrem(), reco::GsfElectron::trackerDrivenSeed(), reco::GsfElectron::trackMomentumAtVtx(), reco::GsfElectron::trackMomentumOut(), funct::true, and reco::LeafCandidate::vertex().
1102 if(!vertexCollectionHandle.
isValid())
1103 {
edm::LogInfo(
"ElectronMcSignalValidator::analyze") <<
"vertexCollectionHandle KO" ;}
1106 edm::LogInfo(
"ElectronMcSignalValidator::analyze") <<
"vertexCollectionHandle OK" ;
1110 <<
"Treating event "<<
iEvent.id()
1111 <<
" with "<<gsfElectrons.
product()->size()<<
" electrons" ;
1123 reco::GsfElectronCollection::const_iterator gsfIter ;
1125 for ( gsfIter=gsfElectrons->begin() ; gsfIter!=gsfElectrons->end() ; gsfIter++ )
1131 float enrj1=gsfIter->ecalEnergy();
1133 reco::GsfElectronCollection::const_iterator gsfIter2 ;
1134 for ( gsfIter2=gsfIter+1 ; gsfIter2!=gsfElectrons->end() ; gsfIter2++ )
1137 float mee2 = p12.Dot(p12);
1138 float enrj2=gsfIter2->ecalEnergy() ;
1141 if (gsfIter->ecalDrivenSeed() && gsfIter2->ecalDrivenSeed())
1143 if (gsfIter->charge()*gsfIter2->charge()<0.)
1150 ( (gsfIter->classification()==GsfElectron::GOLDEN && gsfIter2->classification()==GsfElectron::GOLDEN) ||
1151 (gsfIter->classification()==GsfElectron::GOLDEN && gsfIter2->classification()==GsfElectron::BIGBREM) ||
1152 (gsfIter->classification()==GsfElectron::BIGBREM && gsfIter2->classification()==GsfElectron::GOLDEN) ||
1153 (gsfIter->classification()==GsfElectron::BIGBREM && gsfIter2->classification()==GsfElectron::BIGBREM) )
1156 ( (gsfIter->classification()==GsfElectron::SHOWERING && gsfIter2->classification()==GsfElectron::SHOWERING) ||
1157 (gsfIter->classification()==GsfElectron::SHOWERING && gsfIter2->isGap()) ||
1158 (gsfIter->isGap() && gsfIter2->classification()==GsfElectron::SHOWERING) ||
1159 (gsfIter->isGap() && gsfIter2->isGap()) )
1168 for ( gsfIter=gsfElectrons->begin() ; gsfIter!=gsfElectrons->end() ; gsfIter++ )
1187 h1_ele_Et_all->
Fill( gsfIter->ecalEnergy()/cosh(gsfIter->superCluster()->eta()));
1190 int flags = gsfIter->convFlags() ;
1191 if (flags==-9999) { flags=-1 ; }
1205 int mcNum=0, gamNum=0, eleNum=0 ;
1206 bool matchingID, matchingMotherID ;
1208 reco::GenParticleCollection::const_iterator mcIter ;
1210 ( mcIter=genParticles->begin() ; mcIter!=genParticles->end() ; mcIter++ )
1234 matchingMotherID =
false ;
1248 if ( mother ==
nullptr ) {
1249 matchingMotherID =
true ;
1253 matchingMotherID =
true ;
1263 if (matchingMotherID)
1273 bool okGsfFound =
false ;
1274 double gsfOkRatio = 999999. ;
1278 reco::GsfElectronCollection::const_iterator gsfIter ;
1280 ( gsfIter=gsfElectrons->begin() ; gsfIter!=gsfElectrons->end() ; gsfIter++ )
1282 double dphi = gsfIter->
phi()-mcIter->phi() ;
1284 { dphi = dphi < 0? (CLHEP::twopi) + dphi : dphi - CLHEP::twopi ; }
1285 double deltaR2 = (gsfIter->eta()-mcIter->eta()) * (gsfIter->eta()-mcIter->eta()) + dphi * dphi ;
1288 double mc_charge = mcIter->pdgId() == 11 ? -1. : 1. ;
1292 ( ( (mcIter->pdgId() == 11) && (gsfIter->charge() > 0.) ) ||
1293 ( (mcIter->pdgId() == -11) && (gsfIter->charge() < 0.) ) )
1295 double tmpGsfRatio = gsfIter->p()/mcIter->p();
1298 gsfOkRatio = tmpGsfRatio;
1299 bestGsfElectron=*gsfIter;
1323 for ( mcIter=genParticles->begin() ; mcIter!=genParticles->end() ; mcIter++ )
1329 if (mcIter->pdgId() == 22 )
1333 matchingID =
false ;
1337 { matchingID=
true ; }
1339 if (!matchingID) continue ;
1344 matchingMotherID =
false ;
1348 { matchingMotherID =
true ;
1360 if (!matchingMotherID) continue ;
1381 bool okGsfFound =
false ;
1382 bool passMiniAODSelection =
true ;
1383 double gsfOkRatio = 999999. ;
1386 reco::GsfElectronCollection::const_iterator gsfIter ;
1388 for ( gsfIter=gsfElectrons->begin(), iElectron=0 ; gsfIter!=gsfElectrons->end() ; gsfIter++, iElectron++ )
1391 double dphi = gsfIter->phi()-mcIter->phi() ;
1393 { dphi = dphi < 0? (CLHEP::twopi) + dphi : dphi - CLHEP::twopi ; }
1394 double deltaR2 = (gsfIter->eta()-mcIter->eta()) * (gsfIter->eta()-mcIter->eta()) + dphi * dphi;
1397 if ( ( (mcIter->pdgId() == 11) && (gsfIter->charge() < 0.) ) ||
1398 ( (mcIter->pdgId() == -11) && (gsfIter->charge() > 0.) ) )
1400 double tmpGsfRatio = gsfIter->p()/mcIter->p() ;
1403 gsfOkRatio = tmpGsfRatio;
1404 bestGsfElectron=*gsfIter;
1413 if (! okGsfFound) continue ;
1418 passMiniAODSelection = bestGsfElectron.
pt() >= 5.;
1450 (bestGsfElectron.
vertex().x()-mcIter->vx())*(bestGsfElectron.
vertex().x()-mcIter->vx()) +
1451 (bestGsfElectron.
vertex().y()-mcIter->vy())*(bestGsfElectron.
vertex().y()-mcIter->vy()) ;
1512 double R=TMath::Sqrt(sclRef->x()*sclRef->x() + sclRef->y()*sclRef->y() +sclRef->z()*sclRef->z());
1513 double Rt=TMath::Sqrt(sclRef->x()*sclRef->x() + sclRef->y()*sclRef->y());
1526 if (passMiniAODSelection) {
1553 for(; it !=itend;++it) {
1554 Etot += (*it)->energy();
1571 if (passMiniAODSelection) {
1605 ( bestGsfElectron.
gsfTrack()->normalizedChi2(),
1621 if (elseed->subDet2()==1)
1623 else if (elseed->subDet2()==2)
1625 else if (elseed->subDet2()==6)
1678 if (passMiniAODSelection) {
1683 if (passMiniAODSelection) {
1703 if (passMiniAODSelection) {
1708 if (passMiniAODSelection) {
1728 if (passMiniAODSelection) {
1736 if (passMiniAODSelection) {
1748 if (bestGsfElectron.
isEE()) eleClass+=10;
1764 double fbrem_mode = bestGsfElectron.
fbrem();
1766 if (passMiniAODSelection) {
1769 if (bestGsfElectron.
isEB())
1771 double fbrem_mode_barrel = bestGsfElectron.
fbrem();
1773 if (passMiniAODSelection) {
1778 if (bestGsfElectron.
isEE())
1780 double fbrem_mode_endcaps = bestGsfElectron.
fbrem();
1782 if (passMiniAODSelection) {
1790 if (bestGsfElectron.
isEB())
1796 if (bestGsfElectron.
isEE())
1806 double fbrem_mean = 1. - bestGsfElectron.
gsfTrack()->outerMomentum().R()/bestGsfElectron.
gsfTrack()->innerMomentum().R() ;
1872 if (passMiniAODSelection) {
1881 if (passMiniAODSelection) {