Skip to content

Commit

Permalink
do not remake trajectories if no mtdhits were added
Browse files Browse the repository at this point in the history
  • Loading branch information
slava77devel committed Jul 24, 2020
1 parent 376a099 commit 9ac0a76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RecoMTD/TrackExtender/plugins/TrackExtenderWithMTD.cc
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@ void TrackExtenderWithMTDT<TrackCollection>::produce(edm::Event& ev, const edm::
thits.swap(mtdthits);
}

const auto& trajwithmtd = theTransformer->transform(ttrack, thits);
const auto& trajwithmtd = mtdthits.empty() ? trajs : theTransformer->transform(ttrack, thits);
float pMap = 0.f, betaMap = 0.f, t0Map = 0.f, sigmat0Map = -1.f, pathLengthMap = -1.f, tmtdMap = 0.f,
sigmatmtdMap = -1.f;
int iMap = -1;
Expand Down

0 comments on commit 9ac0a76

Please sign in to comment.