72 <<
" cannot get PFCandidates! ";
76 reco::PFCandidateCollection::const_iterator it = pfCandidates->begin();
77 reco::PFCandidateCollection::const_iterator itend = pfCandidates->end() ;
78 std::vector<reco::GsfElectronRef>
values;
80 for ( ; it != itend ; ++it) {
83 if( it->gsfTrackRef().isNonnull()) {
86 const reco::GsfElectronCollection::const_iterator itcheck=
93 values.push_back(myRef);
95 filler.
insert(pfCandidates,values.begin(),values.end());
113 <<
" cannot get PFCandidates! ";
117 reco::PFCandidateCollection::const_iterator it = pfCandidates->begin();
118 reco::PFCandidateCollection::const_iterator itend = pfCandidates->end() ;
120 for ( ; it != itend ; ++it) {
123 if( it->gsfTrackRef().isNonnull()) {
127 myMvaOutput.
status = it->egammaExtraRef()->electronStatus() ;
134 myMvaInput.
sigmaEtaEta = it->egammaExtraRef()->sigmaEtaEta();
135 myMvaInput.
hadEnergy = it->egammaExtraRef()->hadEnergy();
T getParameter(std::string const &) const
void matchWithPFCandidates(edm::Event &event)
void setMVAOutputs(const gsfAlgoHelpers::HeavyObjectCache *, const std::map< reco::GsfTrackRef, reco::GsfElectron::MvaOutput > &mvaOutputs)
void fillEvent(edm::Event &)
void insert(const H &h, I begin, I end)
void setMVAInputs(const std::map< reco::GsfTrackRef, reco::GsfElectron::MvaInput > &mvaInputs)
void completeElectrons(const gsfAlgoHelpers::HeavyObjectCache *)
virtual void produce(edm::Event &, const edm::EventSetup &)
std::vector< PFCandidatePtr > pfCandidates(const PFJet &jet, int particleId, bool sort=true)
std::string outputValueMapLabel_
edm::EDGetTokenT< reco::PFCandidateCollection > egmPFCandidateCollection_
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
edm::Ref< GsfElectronCollection > GsfElectronRef
reference to an object in a collection of GsfElectron objects
void fillGsfElectronValueMap(edm::Event &event, edm::ValueMap< reco::GsfElectronRef >::Filler &filler)
const edm::OrphanHandle< reco::GsfElectronCollection > & orphanHandle() const
GEDGsfElectronProducer(const edm::ParameterSet &, const gsfAlgoHelpers::HeavyObjectCache *)
std::map< reco::GsfTrackRef, reco::GsfElectron::MvaOutput > gsfMVAOutputMap_
void beginEvent(edm::Event &, const edm::EventSetup &)
virtual ~GEDGsfElectronProducer()
std::map< reco::GsfTrackRef, reco::GsfElectron::MvaInput > gsfMVAInputMap_