Skip to content

Commit

Permalink
fix catching polymorphic type
Browse files Browse the repository at this point in the history
  • Loading branch information
Marko Petric committed Apr 17, 2020
1 parent 72b727e commit c16b3e0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/FastJetProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ void FastJetProcessor::processEvent(LCEvent * evt)
throw DataNotAvailableException("Collection is there, but its empty!");
}

} catch (DataNotAvailableException e) {
} catch (const DataNotAvailableException& e) {
streamlog_out(WARNING) << e.what() << std::endl << "Skipping" << std::endl;

//create dummy empty collection only in case there are processor that need the presence of them in later stages
Expand Down Expand Up @@ -138,9 +138,9 @@ void FastJetProcessor::processEvent(LCEvent * evt)
PseudoJetList jets;
try {
jets = _fju->clusterJets(pjList, particleIn);
} catch( SkippedFixedNrJetException& e ) {
} catch(const SkippedFixedNrJetException& e ) {
_statsNrSkippedFixedNrJets++;
} catch( SkippedMaxIterationException& e ) {
} catch(const SkippedMaxIterationException& e ) {
jets = e._jets;
_statsNrSkippedMaxIterations++;
}
Expand Down

0 comments on commit c16b3e0

Please sign in to comment.