24 (iConfig.getParameter<edm::
InputTag>(
"ChargedCandidates"))),
26 (iConfig.getParameter<edm::
InputTag>(
"Tracks"))),
28 "EcalPFClusterIsoMap"))),
30 "HcalPFClusterIsoMap"))),
31 TrackIsoMap_(consumes<edm::ValueMap<double>>(iConfig.getParameter<edm::
InputTag>(
33 muonPtCut(iConfig.getParameter<double>(
"muonPtCut")),
34 muonEtaCut(iConfig.getParameter<double>(
"muonEtaCut"))
37 produces<ScoutingMuonCollection>();
53 <<
"invalid collection: ChargedCandidateCollection" <<
"\n";
61 <<
"invalid collection: TrackCollection" <<
"\n";
69 <<
"invalid collection: hltMuonEcalPFClusterIsoForMuons" <<
"\n";
77 <<
"invalid collection: hltMuonHcalPFClusterIsoForMuons" <<
"\n";
85 <<
"invalid collection: TrackIsoMap" <<
"\n";
92 for (
auto &
muon : *ChargedCandidateCollection) {
108 (*EcalPFClusterIsoMap)[muonRef], (*HcalPFClusterIsoMap)[muonRef],
109 (*TrackIsoMap)[muonRef], track->chi2(), track->ndof(),
110 track->charge(), track->dxy(), track->dz(),
111 track->hitPattern().numberOfValidMuonHits(),
112 track->hitPattern().numberOfValidPixelHits(),
114 track->hitPattern().trackerLayersWithMeasurement(),
119 iEvent.
put(outMuons);
130 "hltMuonTkRelIsolationCut0p09Map:combinedRelativeIsoDeposits"));
131 desc.
add<
double>(
"muonPtCut", 4.0);
132 desc.
add<
double>(
"muonEtaCut", 2.4);
133 descriptions.
add(
"scoutingMuonProducer", desc);
helper::MatcherGetRef< C >::ref_type getRef(const Handle< C > &c, size_t k)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::vector< Track > TrackCollection
collection of Tracks
const edm::EDGetTokenT< RecoChargedCandMap > EcalPFClusterIsoMap_
~HLTScoutingMuonProducer()
const edm::EDGetTokenT< reco::TrackCollection > TrackCollection_
const edm::EDGetTokenT< RecoChargedCandMap > HcalPFClusterIsoMap_
virtual void produce(edm::StreamID sid, edm::Event &iEvent, edm::EventSetup const &setup) const overridefinal
const edm::EDGetTokenT< edm::ValueMap< double > > TrackIsoMap_
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
std::vector< ScoutingMuon > ScoutingMuonCollection
ParameterDescriptionBase * add(U const &iLabel, T const &value)
bool isNull() const
Checks for null.
std::vector< RecoChargedCandidate > RecoChargedCandidateCollection
collectin of RecoChargedCandidate objects
const edm::EDGetTokenT< reco::RecoChargedCandidateCollection > ChargedCandidateCollection_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
HLTScoutingMuonProducer(const edm::ParameterSet &)
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")