Skip to content

Commit

Permalink
Fixing another not declared product
Browse files Browse the repository at this point in the history
  • Loading branch information
bachtis committed Dec 10, 2013
1 parent 00821e8 commit 0abdcbe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions RecoMuon/MuonIdentification/plugins/MuonProducer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ MuonProducer::MuonProducer(const edm::ParameterSet& pSet):debug_(pSet.getUntrack

if(fillCosmicsIdMap_){
theCosmicCompMapName = pSet.getParameter<edm::InputTag>("CosmicIdMap");
theCosmicCompMapToken_ = consumes<edm::ValueMap<unsigned int> >(theCosmicCompMapName);
theCosmicIdMapToken_ = consumes<edm::ValueMap<unsigned int> >(theCosmicCompMapName);
theCosmicCompMapToken_ = consumes<edm::ValueMap<reco::MuonCosmicCompatibility> >(theCosmicCompMapName);

produces<edm::ValueMap<reco::MuonCosmicCompatibility> >(labelOrInstance(theCosmicCompMapName));
produces<edm::ValueMap<unsigned int> >(labelOrInstance(theCosmicCompMapName));
Expand Down Expand Up @@ -278,7 +279,7 @@ void MuonProducer::produce(edm::Event& event, const edm::EventSetup& eventSetup)
std::vector<reco::MuonShower> showerInfoColl(nMuons);

edm::Handle<edm::ValueMap<unsigned int> > cosmicIdMap;
if(fillCosmicsIdMap_) event.getByToken(theCosmicCompMapToken_,cosmicIdMap);
if(fillCosmicsIdMap_) event.getByToken(theCosmicIdMapToken_,cosmicIdMap);
std::vector<unsigned int> cosmicIdColl(fillCosmicsIdMap_ ? nMuons : 0);

edm::Handle<edm::ValueMap<reco::MuonCosmicCompatibility> > cosmicCompMap;
Expand Down
4 changes: 2 additions & 2 deletions RecoMuon/MuonIdentification/plugins/MuonProducer.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ class MuonProducer : public edm::EDProducer {
edm::EDGetTokenT<edm::ValueMap<reco::MuonShower> > theShowerMapToken_;

edm::InputTag theCosmicCompMapName;
edm::EDGetTokenT<edm::ValueMap<unsigned int> > theCosmicCompMapToken_;

edm::EDGetTokenT<edm::ValueMap<unsigned int> > theCosmicIdMapToken_;
edm::EDGetTokenT<edm::ValueMap<reco::MuonCosmicCompatibility> > theCosmicCompMapToken_;
std::string theMuToMuMapName;

MuPFIsoHelper *thePFIsoHelper;
Expand Down

0 comments on commit 0abdcbe

Please sign in to comment.