18 previousGsfElectrons_ = consumes<reco::GsfElectronCollection>(cfg.
getParameter<
edm::InputTag>(
"previousGsfElectronsTag"));
33 nDeps_ = tokenElectronIsoVals_.size();
35 produces<reco::GsfElectronCollection> (outputCollectionLabel_);
51 event.getByToken(previousGsfElectrons_,gedElectronHandle);
55 std::vector< edm::Handle< edm::ValueMap<double> > > isolationValueMaps(nDeps_);
57 for(
unsigned i=0;
i < nDeps_ ; ++
i) {
58 event.getByToken(tokenElectronIsoVals_[
i],isolationValueMaps[i]);
62 unsigned nele=gedElectronHandle->size();
63 for(
unsigned iele=0; iele<nele;++iele) {
69 isoVariables.
sumPhotonEt = (*(isolationValueMaps)[1])[myElectronRef];
71 isoVariables.
sumPUPt = (*(isolationValueMaps)[3])[myElectronRef];
74 outputElectrons_p->push_back(newElectron);
77 event.put(outputElectrons_p,outputCollectionLabel_);
T getParameter(std::string const &) const
float sumPUPt
sum pt of charged Particles not from PV (for Pu corrections)
void setPfIsolationVariables(const PflowIsolationVariables &iso)
std::vector< GsfElectron > GsfElectronCollection
collection of GsfElectron objects
virtual void produce(edm::Event &, const edm::EventSetup &)
float sumPhotonEt
sum pt of PF photons // old float photonIso ;
float sumNeutralHadronEt
sum pt of neutral hadrons // old float neutralHadronIso ;
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
PFIsolationFiller(const edm::ParameterSet &)
float sumChargedHadronPt
sum-pt of charged Hadron // old float chargedHadronIso ;
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")