Description: [one line class summary]
Implementation: [Notes on implementation]
Definition at line 41 of file ValueMapTraslator.cc.
< requires that the track is the same, so I'm sure the electron object is the same. This to avoid the case when two electrons have the same eta and phi at the vtx
Definition at line 98 of file ValueMapTraslator.cc.
References gather_cfg::cout, HPSPFTauProducerPuppi_cfi::electron, trigObjTnPSource_cfi::filler, mps_fire::i, iEvent, inputToken_, eostools::move(), oldreferenceToken_, and referenceToken_.
100 std::vector<value_t> valueVector;
101 auto valueVectorPtr = std::make_unique<Map_t>();
112 for (Map_t::const_iterator valueMap_itr = inputHandle->begin(); valueMap_itr != inputHandle->end(); valueMap_itr++) {
113 for (
unsigned int i = 0;
i < valueMap_itr.size();
i++) {
123 std::cout <<
"Size: " << referenceHandle->size() <<
"\t" << oldreferenceHandle->size() <<
"\t" << inputHandle->size()
124 <<
"\t" << valueVector.size() << std::endl;
126 for (reco::GsfElectronCollection::const_iterator electronNew = referenceHandle->begin();
127 electronNew != referenceHandle->end();
129 for (reco::GsfElectronCollection::const_iterator
electron = oldreferenceHandle->begin();
130 electron != oldreferenceHandle->end();
133 if (
electron->gsfTrack() != electronNew->gsfTrack())
142 std::cout << eleRef->eta() <<
"\t" << eleRef2->eta() <<
"\t" << eleRef->phi() <<
"\t" << eleRef2->phi() <<
"\t" 143 << eleRef->energy() <<
"\t" << eleRef2->energy() <<
"\t" << (eleRef->gsfTrack() == eleRef2->gsfTrack())
144 <<
"\t" << (eleRef == eleRef2) <<
"\t" << (*inputHandle)[eleRef] << std::endl;
146 valueVector.push_back((*inputHandle)[eleRef]);
151 filler.insert(referenceHandle, valueVector.begin(), valueVector.end());
edm::EDGetTokenT< reco::GsfElectronCollection > referenceToken_
edm::EDGetTokenT< reco::GsfElectronCollection > oldreferenceToken_
helper::Filler< ValueMap< T > > Filler
edm::EDGetTokenT< Map_t > inputToken_