78 referenceCollectionTAG(iConfig.getParameter<edm::
InputTag>(
"referenceCollection")),
79 oldreferenceCollectionTAG(iConfig.getParameter<edm::
InputTag>(
"oldreferenceCollection")),
80 inputCollectionTAG(iConfig.getParameter<edm::
InputTag>(
"inputCollection")),
81 outputCollectionName(iConfig.getParameter<std::
string>(
"outputCollection"))
112 auto valueVectorPtr = std::make_unique<Map_t>();
124 valueMap_itr != inputHandle->end();
126 for(
unsigned int i = 0;
i < valueMap_itr.size();
i++){
136 std::cout <<
"Size: " << referenceHandle->size() <<
"\t" << oldreferenceHandle->size() <<
"\t" << inputHandle->size() <<
"\t" <<
valueVector.size() << std::endl;
138 for(reco::GsfElectronCollection::const_iterator electronNew = referenceHandle->begin();
139 electronNew!= referenceHandle->end();
142 for(reco::GsfElectronCollection::const_iterator
electron = oldreferenceHandle->begin();
143 electron!= oldreferenceHandle->end();
146 if(
electron->gsfTrack() != electronNew->gsfTrack())
continue;
154 std::cout << eleRef->eta() <<
"\t" << eleRef2->eta() <<
"\t"
155 << eleRef->phi() <<
"\t" << eleRef2->phi() <<
"\t"
156 << eleRef->energy() <<
"\t" << eleRef2->energy() <<
"\t"
157 << (eleRef->gsfTrack() == eleRef2->gsfTrack()) <<
"\t"
158 << (eleRef == eleRef2) <<
"\t"
159 << (*inputHandle)[eleRef] << std::endl;
ValueMapTraslator(const edm::ParameterSet &)
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
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)
edm::ValueMap< value_t > Map_t
std::string outputCollectionName
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void addDefault(ParameterSetDescription const &psetDescription)
edm::InputTag inputCollectionTAG
edm::InputTag oldreferenceCollectionTAG
edm::EDGetTokenT< reco::GsfElectronCollection > referenceToken_
edm::EDGetTokenT< reco::GsfElectronCollection > oldreferenceToken_
virtual void produce(edm::Event &, const edm::EventSetup &)
container::const_iterator begin() const
edm::EDGetTokenT< Map_t > inputToken_
edm::InputTag referenceCollectionTAG