SUSYBSMAnalysis
HSCP
src
BetaCalculatorMUON.cc
Go to the documentation of this file.
1
#include "
SUSYBSMAnalysis/HSCP/interface/BetaCalculatorMUON.h
"
2
3
using namespace
edm
;
4
using namespace
reco
;
5
using namespace
susybsm
;
6
7
BetaCalculatorMUON::BetaCalculatorMUON
(
const
edm::ParameterSet
& iConfig,
edm::ConsumesCollector
&& iC) {
8
// m_muontiming_dt = iC.consumes<reco::MuonTimeExtraMap>(iConfig.getParameter<InputTag >("muontimingDt" ));
9
// m_muontiming_csc = iC.consumes<reco::MuonTimeExtraMap>(iConfig.getParameter<InputTag >("muontimingCsc" ));
10
// m_muontiming_combined = iC.consumes<reco::MuonTimeExtraMap>(iConfig.getParameter<InputTag >("muontimingCombined"));
11
}
12
13
void
BetaCalculatorMUON::addInfoToCandidate
(
HSCParticle
& candidate,
edm::Event
&
iEvent
,
const
edm::EventSetup
& iSetup) {
14
//Do nothing since all muonTiming object are external and get be accessed via reference
15
return
;
16
/*
17
if(!candidate.hasMuonRef())return;
18
reco::MuonRef muon = candidate.muonRef();
19
20
Handle<reco::MuonTimeExtraMap> timeMap_Dt_h;
21
iEvent.getByToken(m_muontiming_dt,timeMap_Dt_h);
22
const reco::MuonTimeExtraMap& timeMap_Dt = *timeMap_Dt_h;
23
24
Handle<reco::MuonTimeExtraMap> timeMap_Csc_h;
25
iEvent.getByToken(m_muontiming_dt,timeMap_Csc_h);
26
const reco::MuonTimeExtraMap& timeMap_Csc = *timeMap_Csc_h;
27
28
Handle<reco::MuonTimeExtraMap> timeMap_Combined_h;
29
iEvent.getByToken(m_muontiming_dt,timeMap_Combined_h);
30
const reco::MuonTimeExtraMap& timeMap_Combined = *timeMap_Combined_h;
31
32
candidate.setMuonTimeDt (timeMap_Dt [muon]);
33
candidate.setMuonTimeCsc (timeMap_Csc [muon]);
34
candidate.setMuonTimeCombined(timeMap_Combined[muon]);
35
*/
36
}
susybsm::HSCParticle
Definition:
HSCParticle.h:42
edm
HLT enums.
Definition:
AlignableModifier.h:19
BetaCalculatorMUON::BetaCalculatorMUON
BetaCalculatorMUON(const edm::ParameterSet &iConfig, edm::ConsumesCollector &&iC)
Definition:
BetaCalculatorMUON.cc:7
susybsm
Definition:
HSCParticle.h:16
reco
fixed size matrix
Definition:
AlignmentAlgorithmBase.h:45
edm::ParameterSet
Definition:
ParameterSet.h:36
iEvent
int iEvent
Definition:
GenABIO.cc:224
edm::EventSetup
Definition:
EventSetup.h:57
BetaCalculatorMUON.h
BetaCalculatorMUON::addInfoToCandidate
void addInfoToCandidate(susybsm::HSCParticle &candidate, edm::Event &iEvent, const edm::EventSetup &iSetup)
Definition:
BetaCalculatorMUON.cc:13
edm::Event
Definition:
Event.h:73
edm::ConsumesCollector
Definition:
ConsumesCollector.h:39
Generated for CMSSW Reference Manual by
1.8.16