Skip to content

Commit

Permalink
Re-format macro to fix warning
Browse files Browse the repository at this point in the history
This reformatting keeps the existing behavior, but I don't think this
was the intended behavior (judging by how the macro is used).
  • Loading branch information
tmadlener committed Jan 7, 2025
1 parent 5bd272f commit ba87d41
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions tracking/src/DDDiagnostics.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,15 @@ struct invWSort { // sort track segments wtr to higher inverse relative weight

//======================================================================================================
//
#define APPLY_CUT( LEVEL, Cut, Exp ) if( (Exp) == false ) { if ( Cut ) \
streamlog_out( LEVEL ) << " ***** failed cut: [ " << #Exp \
<< " ] in evt: " << evt->getEventNumber() \
<< " run: " << evt->getRunNumber() << std::endl ; \
Cut = false ; }

#define APPLY_CUT(LEVEL, Cut, Exp) \
if ((Exp) == false) { \
if (Cut) { \
streamlog_out(LEVEL) << " ***** failed cut: [ " << #Exp \
<< " ] in evt: " << evt->getEventNumber() \
<< " run: " << evt->getRunNumber() << std::endl; \
} \
Cut = false; \
}
//======================================================================================================

DDDiagnostics aDDDiagnostics ;
Expand Down

0 comments on commit ba87d41

Please sign in to comment.