85 referenceCollectionTAG(iConfig.getParameter<edm::
InputTag>(
"referenceCollection")),
86 oldreferenceCollectionTAG(iConfig.getParameter<edm::
InputTag>(
"oldreferenceCollection")),
87 inputCollectionTAG(iConfig.getParameter<edm::
InputTag>(
"inputCollection")),
88 outputCollectionName(iConfig.getParameter<std::
string>(
"outputCollection"))
119 std::auto_ptr<Map_t> valueVectorPtr(
new Map_t());
131 valueMap_itr != inputHandle->end();
133 for(
unsigned int i = 0;
i < valueMap_itr.size();
i++){
143 std::cout <<
"Size: " << referenceHandle->size() <<
"\t" << oldreferenceHandle->size() <<
"\t" << inputHandle->size() <<
"\t" <<
valueVector.size() << std::endl;
145 for(reco::GsfElectronCollection::const_iterator electronNew = referenceHandle->begin();
146 electronNew!= referenceHandle->end();
149 for(reco::GsfElectronCollection::const_iterator
electron = oldreferenceHandle->begin();
150 electron!= oldreferenceHandle->end();
153 if(
electron->gsfTrack() != electronNew->gsfTrack())
continue;
161 std::cout << eleRef->eta() <<
"\t" << eleRef2->eta() <<
"\t"
162 << eleRef->phi() <<
"\t" << eleRef2->phi() <<
"\t"
163 << eleRef->energy() <<
"\t" << eleRef2->energy() <<
"\t"
164 << (eleRef->gsfTrack() == eleRef2->gsfTrack()) <<
"\t"
165 << (eleRef == eleRef2) <<
"\t"
166 << (*inputHandle)[eleRef] << std::endl;
176 iEvent.
put(valueVectorPtr);
ValueMapTraslator(const edm::ParameterSet &)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void valueVector(const std::map< K, V > &extract, std::vector< V > &output)
#define DEFINE_FWK_MODULE(type)
void insert(const H &h, I begin, I end)
virtual void beginLuminosityBlock(edm::LuminosityBlock &, edm::EventSetup const &)
edm::ValueMap< value_t > Map_t
std::string outputCollectionName
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void addDefault(ParameterSetDescription const &psetDescription)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
edm::InputTag inputCollectionTAG
edm::InputTag oldreferenceCollectionTAG
edm::EDGetTokenT< reco::GsfElectronCollection > referenceToken_
edm::EDGetTokenT< reco::GsfElectronCollection > oldreferenceToken_
virtual void endLuminosityBlock(edm::LuminosityBlock &, edm::EventSetup const &)
virtual void produce(edm::Event &, const edm::EventSetup &)
virtual void endRun(edm::Run &, edm::EventSetup const &)
container::const_iterator begin() const
edm::EDGetTokenT< Map_t > inputToken_
virtual void beginRun(edm::Run &, edm::EventSetup const &)
edm::InputTag referenceCollectionTAG