Skip to content

Commit a63b0b4

Browse files
dstoccoaphecetche
authored andcommitted
Reduce verbosity for MID tracks extrapolated out of acceptance
1 parent 1e60096 commit a63b0b4

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Detectors/MUON/MID/Tracking/src/HitMapBuilder.cxx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,11 @@ int HitMapBuilder::getEffFlag(const std::vector<int>& firedRPCLines, const std::
5959

6060
int HitMapBuilder::getLocId(double xp, double yp, uint8_t deId) const
6161
{
62-
auto stripIndex = mMapping.stripByPosition(xp, yp, 0, deId);
63-
return mMapping.getBoardId(stripIndex.line, stripIndex.column, deId);
62+
auto stripIndex = mMapping.stripByPosition(xp, yp, 0, deId, false);
63+
if (stripIndex.isValid()) {
64+
return mMapping.getBoardId(stripIndex.line, stripIndex.column, deId);
65+
}
66+
return 0;
6467
}
6568

6669
void HitMapBuilder::buildTrackInfo(Track& track, gsl::span<const Cluster> clusters) const
@@ -69,7 +72,7 @@ void HitMapBuilder::buildTrackInfo(Track& track, gsl::span<const Cluster> cluste
6972
std::vector<int> firedDeIds, firedRPCLines, nonFiredRPCLines;
7073
bool outsideAcceptance = false;
7174
for (int ich = 0; ich < 4; ++ich) {
72-
auto icl = track.getClusterMatched(ich);
75+
auto icl = track.getClusterMatchedUnchecked(ich);
7376
if (icl >= 0) {
7477
auto& cl = clusters[icl];
7578
firedDeIds.emplace_back(cl.deId);

0 commit comments

Comments
 (0)