80 consumes<edm::ValueMap<reco::GsfElectronRef>>({
"gedGsfElectronValueMapsTmp",
valueMapPFCandEle_});
105 std::vector<std::vector<reco::PFCandidateRef>> pfCandIsoPairVecPho;
109 for (
unsigned int lSC = 0; lSC < photonTmpHandle->size(); lSC++) {
113 unsigned nObj = pfEGCandidateHandle->size();
116 std::vector<reco::PFCandidateRef> pfCandIsoPairPho;
117 for (
unsigned int lCand = 0; lCand < nObj; lCand++) {
136 pfCandIsoPairVecPho.push_back(pfCandIsoPairPho);
140 std::vector<std::vector<reco::PFCandidateRef>> pfCandIsoPairVecEle;
142 for (
unsigned int lSC = 0; lSC < electronTmpHandle->size(); lSC++) {
146 unsigned nObj = pfEGCandidateHandle->size();
149 std::vector<reco::PFCandidateRef> pfCandIsoPairEle;
150 for (
unsigned int lCand = 0; lCand < nObj; lCand++) {
172 pfCandIsoPairVecEle.push_back(pfCandIsoPairEle);
175 auto phoToPFCandIsoMap_p = std::make_unique<edm::ValueMap<std::vector<reco::PFCandidateRef>>>();
179 fillerPhotons.insert(photonHandle, pfCandIsoPairVecPho.begin(), pfCandIsoPairVecPho.end());
180 fillerPhotons.fill();
183 auto eleToPFCandIsoMap_p = std::make_unique<edm::ValueMap<std::vector<reco::PFCandidateRef>>>();
187 fillerElectrons.insert(electronHandle, pfCandIsoPairVecEle.begin(), pfCandIsoPairVecEle.end());
188 fillerElectrons.fill();
196 desc.add<
std::string>(
"valueMapPhoToEG",
"valMapPFEgammaCandToPhoton");
206 psd0.
add<
double>(
"coneSize", 9999999999.);
211 descriptions.
add(
"particleBasedIsolation",
desc);
edm::EDGetTokenT< reco::GsfElectronCollection > electronTmpProducerT_
std::string valueMapPhoPFCandIso_
T getParameter(std::string const &) const
edm::InputTag electronTmpProducer_
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
std::string valueMapElePFCandIso_
bool get(ProductID const &oid, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
edm::InputTag electronProducer_
bool isNonnull() const
Checks for non-null.
edm::EDGetTokenT< reco::PhotonCollection > photonTmpProducerT_
std::string electronCollection_
edm::InputTag photonProducer_
std::string valueMapPFCandEle_
edm::EDGetTokenT< reco::GsfElectronCollection > electronProducerT_
std::unique_ptr< PFBlockBasedIsolation > thePFBlockBasedIsolation_
edm::EDGetTokenT< reco::PFCandidateCollection > pfCandidates_
edm::EDGetTokenT< reco::PhotonCollection > photonProducerT_
edm::EDGetTokenT< edm::ValueMap< reco::GsfElectronRef > > valMapPFCandToEle_
edm::Ref< PFCandidateCollection > PFCandidateRef
persistent reference to a PFCandidate
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void beginRun(edm::Run const &r, edm::EventSetup const &es) override
std::string photonCollection_
edm::InputTag photonTmpProducer_
std::string valueMapPFCandPhoton_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Handle< PROD > getHandle(EDGetTokenT< PROD > token) const
ParticleBasedIsoProducer(const edm::ParameterSet &conf)
edm::EDGetTokenT< reco::PFCandidateCollection > pfEgammaCandidates_
void produce(edm::Event &e, const edm::EventSetup &c) override
edm::EDGetTokenT< edm::ValueMap< reco::PhotonRef > > valMapPFCandToPhoton_