18 recoElectron_.nElectrons = 0;
20 for (reco::GsfElectronCollection::const_iterator el =
electrons->begin();
23 recoElectron_.e.push_back(el->energy());
24 recoElectron_.pt.push_back(el->pt());
25 recoElectron_.et.push_back(el->et());
26 recoElectron_.eta.push_back(el->eta());
27 recoElectron_.phi.push_back(el->phi());
28 recoElectron_.eta_SC.push_back((el->superClusterPosition()).
eta());
29 recoElectron_.phi_SC.push_back((el->superClusterPosition()).
phi());
30 recoElectron_.e_ECAL.push_back(el->ecalEnergy());
31 recoElectron_.e_SC.push_back(el->superCluster()->energy());
32 recoElectron_.charge.push_back(el->charge());
36 recoElectron_.isVetoElectron.push_back((*(eleVIDDecisionHandles[0]))[electronEdmRef]);
37 recoElectron_.isLooseElectron.push_back((*(eleVIDDecisionHandles[1]))[electronEdmRef]);
38 recoElectron_.isMediumElectron.push_back((*(eleVIDDecisionHandles[2]))[electronEdmRef]);
39 recoElectron_.isTightElectron.push_back((*(eleVIDDecisionHandles[3]))[electronEdmRef]);
41 double iso = (el->pfIsolationVariables().sumChargedHadronPt +
42 max(el->pfIsolationVariables().sumNeutralHadronEt + el->pfIsolationVariables().sumPhotonEt -
43 0.5 * el->pfIsolationVariables().sumPUPt,
47 recoElectron_.iso.push_back(iso);
50 recoElectron_.nElectrons++;