slimmer of PAT Taus
Definition at line 28 of file PATPhotonSlimmer.cc.
Definition at line 89 of file PATPhotonSlimmer.cc.
107 auto out = std::make_unique<std::vector<pat::Photon>>();
108 out->reserve(
src->size());
116 std::vector<unsigned int>
keys;
126 photon.superCluster_.clear();
127 photon.embeddedSuperCluster_ =
false;
130 photon.basicClusters_.clear();
133 photon.preshowerClusters_.clear();
136 photon.seedCluster_.clear();
137 photon.embeddedSeedCluster_ =
false;
141 photon.embeddedRecHits_ =
false;
160 photon.setMaxDRRawEnergy(0);
161 photon.setSubClusRawE1(0);
162 photon.setSubClusRawE2(0);
163 photon.setSubClusRawE3(0);
164 photon.setSubClusDPhi1(0);
165 photon.setSubClusDPhi2(0);
166 photon.setSubClusDPhi3(0);
167 photon.setSubClusDEta1(0);
168 photon.setSubClusDEta2(0);
169 photon.setSubClusDEta3(0);
179 for (
auto const&
pf : (*reco2pf)[
photon.refToOrig_]) {
180 if (pf2pc->contains(
pf.id())) {
184 photon.setAssociatedPackedPFCandidates(
188 if (
keys.size() == 1) {
195 std::vector<float> vCov = lazyToolsNoZS.localCovariances(*(
photon.superCluster()->seed()));
196 float r9 = lazyToolsNoZS.e3x3(*(
photon.superCluster()->seed())) /
photon.superCluster()->rawEnergy();
198 float sigmaIetaIphi = vCov[1];
201 lazyToolsNoZS.e1x5(*(
photon.superCluster()->seed())) / lazyToolsNoZS.e5x5(*(
photon.superCluster()->seed()));
202 photon.addUserFloat(
"sigmaIetaIeta_NoZS", sigmaIetaIeta);
203 photon.addUserFloat(
"sigmaIetaIphi_NoZS", sigmaIetaIphi);
204 photon.addUserFloat(
"sigmaIphiIphi_NoZS", sigmaIphiIphi);
206 photon.addUserFloat(
"e1x5_over_e5x5_NoZS", e15o55);
References EcalClusterLazyToolsT< ClusterTools >::e1x5(), EcalClusterLazyToolsT< ClusterTools >::e3x3(), EcalClusterLazyToolsT< ClusterTools >::e5x5(), edm::HandleBase::id(), iEvent, edm::isNotFinite(), crabWrapper::key, relativeConstraints::keys, EcalClusterLazyToolsT< ClusterTools >::localCovariances(), eostools::move(), MillePedeFileConverter_cfg::out, packedPFCandidateRefMixer_cfi::pf, muons2muons_cfi::photon, electrons_cff::r9, mathSSE::sqrt(), and TrackRefitter_38T_cff::src.