40 produces<std::vector<reco::Muon> >();
52 minDR =
pset.getUntrackedParameter<
double>(
"minDR", 0.1);
60 edm::LogError(
"") <<
">>> Muon collection does not exist !!!";
66 edm::LogError(
"") <<
">>> Old Track collection does not exist !!!";
72 edm::LogError(
"") <<
">>> New Track collection does not exist !!!";
76 unsigned int muonCollectionSize = muonCollectionHandle->size();
79 for (
unsigned int i = 0;
i < muonCollectionSize;
i++) {
81 std::unique_ptr<reco::Muon> newmu{
mu->clone()};
83 if (
mu->innerTrack().isNonnull()) {
92 newmu->setInnerTrack(newTrackRef);
110 if (fabs((1.0 / newTrackRef->pt()) - (1.0 / oldTrackRef->pt())) >
maxInvPtDiff)
112 float dR =
deltaR(newTrackRef->momentum(), oldTrackRef->momentum());