50 produces<edm::ValueMap<reco::MuonMETCorrectionData>>(
"muCorrData");
64 std::vector<std::string>
algos = iConfig.
getParameter<std::vector<std::string>>(
"trackAlgos");
135 auto vm_muCorrData = std::make_unique<edm::ValueMap<reco::MuonMETCorrectionData>>();
137 std::vector<reco::MuonMETCorrectionData> v_muCorrData;
141 for (
unsigned int iMu = 0; iMu <
nMuons; iMu++) {
149 if (
mu->isGlobalMuon() ||
mu->isTrackerMuon() ||
mu->isCaloMuon())
150 mu_track =
mu->innerTrack();
152 v_muCorrData.push_back(muMETCorrData);
158 if (mu_track->pt() <
minpt_)
167 deltax = response * mu_track->p() *
sin(outerTrkPosition.Theta()) *
cos(outerTrkPosition.Phi());
168 deltay = response * mu_track->p() *
sin(outerTrkPosition.Theta()) *
sin(outerTrkPosition.Phi());
176 v_muCorrData.push_back(
180 v_muCorrData.push_back(
184 v_muCorrData.push_back(muMETCorrData);
189 dataFiller.
insert(
muons_, v_muCorrData.begin(), v_muCorrData.end());
202 bool haveBeamSpot =
true;
204 haveBeamSpot =
false;
216 nhits = siTrack->numberOfValidHits();
259 for (
unsigned int iMu = 0; iMu <
nMuons; iMu++) {
269 double deltaEta = inputSiliconTrack.
get()->eta() - testSiliconTrack.
get()->eta();
270 double deltaPhi = acos(
cos(inputSiliconTrack.
get()->phi() - testSiliconTrack.
get()->phi()));
293 double dz = siTrack->dz(pvtx);
297 d0 = -1 * siTrack->dxy(pvtx);
301 bool haveBeamSpot =
true;
303 haveBeamSpot =
false;
306 d0 = -1 * siTrack->dxy(bspot);
310 bool haveBeamSpot =
true;
312 haveBeamSpot =
false;
315 d0 = -1 * siTrack->dxy(bspot);
325 if (fabs(
d0) > d0cut)
342 if (siTrack->numberOfValidHits() <
minhits_)
344 if (siTrack->normalizedChi2() >
maxchi2_)
346 if (fabs(siTrack->eta()) >
maxeta_)
348 if (siTrack->pt() >
maxpt_)
350 if ((siTrack->ptError() / siTrack->pt()) >
maxPtErr_)
352 if (fabs(siTrack->eta()) > 2.5 && siTrack->pt() >
maxpt_eta25_)
354 if (fabs(siTrack->eta()) > 2.0 && siTrack->pt() >
maxpt_eta20_)
362 if (!((siTrack->qualityMask() &
cut) ==
cut))
365 bool isGoodAlgo =
false;
381 TVector3 outerTrkPosition;
383 outerTrkPosition.SetPtEtaPhi(999., -10., 2 *
TMath::Pi());
387 if (!
track.isNonnull()) {
388 return outerTrkPosition;
393 int tpCharge(
track->charge());
397 const double zdist = 314.;
399 const double radius = 130.;
401 const double corner = 1.479;
425 outerTrkPosition.SetPtEtaPhi(999., -10., 2 *
TMath::Pi());
427 return outerTrkPosition;
433 return p.trackerLayersWithMeasurement();