Skip to content

Commit

Permalink
Use log function instead of std::cout
Browse files Browse the repository at this point in the history
  • Loading branch information
gianelle committed Nov 18, 2024
1 parent 2ed520b commit 62b5d53
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions ACTSTracking/Helpers.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
#include <EVENT/Track.h>
#include <EVENT/TrackState.h>

#include "streamlog/streamlog.h"

#include <Acts/EventData/TrackParameters.hpp>
#include "Acts/EventData/ParticleHypothesis.hpp"
#include <Acts/MagneticField/MagneticFieldProvider.hpp>
Expand Down
4 changes: 2 additions & 2 deletions src/Helpers.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ EVENT::Track* ACTS2Marlin_track(
track->trackStates().push_back(trackStateAtCalo);
}
else{
std::cout << "Failed propagation! " << std::endl;
streamlog_out(DEBUG) << "Failed propagation (>pi/2)! " << resultPropP.error() << std::endl;
}
}
else{
Expand All @@ -376,7 +376,7 @@ EVENT::Track* ACTS2Marlin_track(
track->trackStates().push_back(trackStateAtCalo);
}
else{
std::cout << "Failed propagation!" << std::endl;
streamlog_out(DEBUG) << "Failed propagation (<pi/2)! " << resultPropM.error() << std::endl;
}
}
}
Expand Down

0 comments on commit 62b5d53

Please sign in to comment.