CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_6/src/SUSYBSMAnalysis/HSCP/src/BetaCalculatorMUON.cc

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