00001 #include "SUSYBSMAnalysis/HSCP/interface/BetaCalculatorMUON.h" 00002 00003 BetaCalculatorMUON::BetaCalculatorMUON(const edm::ParameterSet& iConfig){ 00004 // m_muontiming_dt = iConfig.getParameter<InputTag >("muontimingDt" ); 00005 // m_muontiming_csc = iConfig.getParameter<InputTag >("muontimingCsc" ); 00006 // m_muontiming_combined = iConfig.getParameter<InputTag >("muontimingCombined"); 00007 } 00008 00009 00010 void BetaCalculatorMUON::addInfoToCandidate(HSCParticle& candidate, edm::Event& iEvent, const edm::EventSetup& iSetup) 00011 { 00012 //Do nothing since all muonTiming object are external and get be accessed via reference 00013 return; 00014 /* 00015 if(!candidate.hasMuonRef())return; 00016 reco::MuonRef muon = candidate.muonRef(); 00017 00018 Handle<reco::MuonTimeExtraMap> timeMap_Dt_h; 00019 iEvent.getByLabel(m_muontiming_dt,timeMap_Dt_h); 00020 const reco::MuonTimeExtraMap& timeMap_Dt = *timeMap_Dt_h; 00021 00022 Handle<reco::MuonTimeExtraMap> timeMap_Csc_h; 00023 iEvent.getByLabel(m_muontiming_dt,timeMap_Csc_h); 00024 const reco::MuonTimeExtraMap& timeMap_Csc = *timeMap_Csc_h; 00025 00026 Handle<reco::MuonTimeExtraMap> timeMap_Combined_h; 00027 iEvent.getByLabel(m_muontiming_dt,timeMap_Combined_h); 00028 const reco::MuonTimeExtraMap& timeMap_Combined = *timeMap_Combined_h; 00029 00030 candidate.setMuonTimeDt (timeMap_Dt [muon]); 00031 candidate.setMuonTimeCsc (timeMap_Csc [muon]); 00032 candidate.setMuonTimeCombined(timeMap_Combined[muon]); 00033 */ 00034 } 00035