116 auto out = std::make_unique<std::vector<pat::Electron>>();
117 out->reserve(
src->size());
125 std::vector<unsigned int>
keys;
136 electron.embeddedSuperCluster_ =
false;
142 electron.pflowSuperCluster_.clear();
143 electron.embeddedPflowSuperCluster_ =
false;
146 electron.pflowBasicClusters_.clear();
149 electron.preshowerClusters_.clear();
152 electron.pflowPreshowerClusters_.clear();
156 electron.embeddedSeedCluster_ =
false;
186 for (
auto const&
pf : (*reco2pf)[
electron.refToOrig_]) {
187 if (pf2pc->contains(
pf.id())) {
191 electron.setAssociatedPackedPFCandidates(
195 if (
keys.size() == 1) {
202 const auto& vCov = lazyToolsNoZS.localCovariances(*(
electron.superCluster()->seed()));
203 electron.full5x5_setSigmaIetaIphi(vCov[1]);
const edm::EDGetTokenT< EcalRecHitCollection > reducedEndcapRecHitCollectionToken_
const StringCutObjectSelector< pat::Electron > dropRecHits_
const StringCutObjectSelector< pat::Electron > dropIsolations_
const bool linkToPackedPF_
const edm::EDGetTokenT< edm::ValueMap< std::vector< reco::PFCandidateRef > > > reco2pf_
const StringCutObjectSelector< pat::Electron > dropSuperClusters_
const StringCutObjectSelector< pat::Electron > dropCorrections_
const edm::EDGetTokenT< edm::Association< pat::PackedCandidateCollection > > pf2pc_
const edm::EDGetTokenT< EcalRecHitCollection > reducedBarrelRecHitCollectionToken_
std::unique_ptr< pat::ObjectModifier< pat::Electron > > electronModifier_
const StringCutObjectSelector< pat::Electron > dropBasicClusters_
const EcalClusterLazyTools::ESGetTokens ecalClusterToolsESGetTokens_
const StringCutObjectSelector< pat::Electron > dropPreshowerClusters_
const StringCutObjectSelector< pat::Electron > dropClassifications_
const StringCutObjectSelector< pat::Electron > dropShapes_
const StringCutObjectSelector< pat::Electron > dropExtrapolations_
const StringCutObjectSelector< pat::Electron > saveNonZSClusterShapes_
const StringCutObjectSelector< pat::Electron > dropSeedCluster_
edm::Ptr< Candidate > CandidatePtr
persistent reference to an object in a collection of Candidate objects
const StringCutObjectSelector< pat::Electron > dropPFlowClusters_
Analysis-level electron class.
const StringCutObjectSelector< pat::Electron > dropSaturation_
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
const edm::EDGetTokenT< edm::View< pat::Electron > > src_
const edm::EDGetTokenT< pat::PackedCandidateCollection > pc_
const bool modifyElectron_
edm::SortedCollection< EcalRecHit > EcalRecHitCollection