60 objectsToken_(consumes<edm::
View<
T>>(iConfig.getParameter<edm::
InputTag>(
"objects"))),
62 iConfig.existsAs<std::
string>(
"objectSelection") ? iConfig.getParameter<std::
string>(
"objectSelection") :
"",
64 produces<edm::ValueMap<float>>();
86 for (probe = probes->begin(); probe != endprobes; ++probe) {
87 double dr2min = 10000;
88 for (
unsigned int iObj = 0; iObj <
objects->size(); iObj++) {
92 double dr2 =
deltaR2(*probe, obj);
101 auto valMap = std::make_unique<ValueMap<float>>();
DeltaRNearestObjectComputer< reco::GsfElectron > DeltaRNearestGsfElectronComputer
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
StringCutObjectSelector< T, true > objCut_
DeltaRNearestObjectComputer< reco::Muon > DeltaRNearestMuonComputer
edm::EDGetTokenT< edm::View< T > > objectsToken_
DeltaRNearestObjectComputer< reco::Candidate > DeltaRNearestCandidateComputer
constexpr auto deltaR2(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
DeltaRNearestObjectComputer< reco::Electron > DeltaRNearestElectronComputer
~DeltaRNearestObjectComputer() override
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
DeltaRNearestObjectComputer< reco::Jet > DeltaRNearestJetComputer
DeltaRNearestObjectComputer(const edm::ParameterSet &iConfig)
void produce(edm::Event &iEvent, const edm::EventSetup &iSetup) override
edm::EDGetTokenT< edm::View< reco::Candidate > > probesToken_
DeltaRNearestObjectComputer< reco::Photon > DeltaRNearestPhotonComputer