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()) {
126 myMvaOutput.
mva = it->mva_e_pi();
135 myMvaInput.
sigmaEtaEta = it->egammaExtraRef()->sigmaEtaEta();
136 myMvaInput.
hadEnergy = it->egammaExtraRef()->hadEnergy();
T getParameter(std::string const &) const
void matchWithPFCandidates(edm::Event &event)
void fillEvent(edm::Event &)
void insert(const H &h, I begin, I end)
GEDGsfElectronProducer(const edm::ParameterSet &)
void setMVAInputs(const std::map< reco::GsfTrackRef, reco::GsfElectron::MvaInput > &mvaInputs)
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
std::map< reco::GsfTrackRef, reco::GsfElectron::MvaOutput > gsfMVAOutputMap_
void beginEvent(edm::Event &, const edm::EventSetup &)
void setMVAOutputs(const std::map< reco::GsfTrackRef, reco::GsfElectron::MvaOutput > &mvaOutputs)
virtual ~GEDGsfElectronProducer()
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
std::map< reco::GsfTrackRef, reco::GsfElectron::MvaInput > gsfMVAInputMap_