Skip to content

Commit

Permalink
Another workaround for -O3 ASAN compilation issue
Browse files Browse the repository at this point in the history
  • Loading branch information
makortel committed Aug 23, 2024
1 parent 635e97f commit b054169
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Validation/CTPPS/plugins/CTPPSProtonReconstructionPlotter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,10 @@ void CTPPSProtonReconstructionPlotter::analyze(const edm::Event &event, const ed

// make multi-RP-reco plots
for (const auto &proton : *hRecoProtonsMultiRP) {
CTPPSDetId rpId((*proton.contributingLocalTracks().begin())->rpId());
// workaround for https://github.com/cms-sw/cmssw/issues/44931#issuecomment-2142898754
const auto &pcLTiter = *proton.contributingLocalTracks().begin();
assert(pcLTiter.isNonnull());
CTPPSDetId rpId(pcLTiter->rpId());
unsigned int armId = rpId.arm();

const bool n1f1 = (armTrackCounter_N[armId] == 1 && armTrackCounter_F[armId] == 1);
Expand Down

0 comments on commit b054169

Please sign in to comment.