68 auto outputPhotonCoreCollection_p = std::make_unique<reco::PhotonCoreCollection>();
73 if (!pfCandidateHandle.isValid()) {
75 <<
"Error! Can't get the pfEgammaCandidates";
84 if (!pixelSeedHandle.
isValid()) {
94 reco::ElectronSeedCollection::const_iterator pixelSeedItr;
95 for(
unsigned int lCand=0; lCand < pfCandidateHandle->size(); lCand++) {
118 for(
unsigned int lConv=0; lConv < doubleLegConv.
size(); lConv++) {
122 for(
unsigned int lConv=0; lConv < singleLegConv.
size(); lConv++) {
131 for(
unsigned int icp = 0; icp < pixelSeedHandle->size(); icp++) {
133 if ( boxSC.
isNonnull() && boxSC.
id() == cpRef->caloCluster().
id() && boxSC.
key() == cpRef->caloCluster().key() ) {
139 outputPhotonCoreCollection.push_back(newCandidate);
144 outputPhotonCoreCollection_p->assign(outputPhotonCoreCollection.begin(),outputPhotonCoreCollection.end());
void setSuperCluster(const reco::SuperClusterRef &r)
set reference to SuperCluster
void addOneLegConversion(const reco::ConversionRef &r)
add single ConversionRef to the vector of Refs
void addConversion(const reco::ConversionRef &r)
add single ConversionRef to the vector of Refs
bool isNonnull() const
Checks for non-null.
Ptr< typename C::value_type > refToPtr(Ref< C, typename C::value_type, refhelper::FindUsingAdvance< C, typename C::value_type > > const &ref)
key_type key() const
Accessor for product key.
edm::EDGetTokenT< reco::ElectronSeedCollection > pixelSeedProducer_
ProductID id() const
Accessor for product ID.
void setParentSuperCluster(const reco::SuperClusterRef &r)
set reference to PFlow SuperCluster
void setStandardPhoton(const bool prov)
std::vector< ElectronSeed > ElectronSeedCollection
collection of ElectronSeed objects
void setPFlowPhoton(const bool prov)
set the provenance
std::vector< PhotonCore > PhotonCoreCollection
collectin of PhotonCore objects
std::string GEDPhotonCoreCollection_
size_type size() const
Size of the RefVector.
void addElectronPixelSeed(const reco::ElectronSeedRef &r)
set electron pixel seed ref
edm::EDGetTokenT< reco::PFCandidateCollection > pfEgammaCandidates_