Skip to content

Commit d913dba

Browse files
committed
ITS: const log func
1 parent a6af317 commit d913dba

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

Detectors/ITSMFT/ITS/tracking/include/ITStracking/Tracker.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ class Tracker
5757

5858
void adoptTimeFrame(TimeFrame& tf);
5959

60-
void clustersToTracks(LogFunc = [](std::string s) { std::cout << s << std::endl; }, LogFunc = [](std::string s) { std::cerr << s << std::endl; });
60+
void clustersToTracks(
61+
LogFunc = [](const std::string& s) { std::cout << s << '\n'; },
62+
LogFunc = [](const std::string& s) { std::cerr << s << '\n'; });
6163

6264
void setParameters(const std::vector<TrackingParameters>&);
6365
std::vector<TrackingParameters>& getParameters() { return mTrkParams; }

Detectors/ITSMFT/ITS/tracking/src/TrackingInterface.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,9 +211,9 @@ void ITSTrackingInterface::run(framework::ProcessingContext& pc)
211211
loadROF(trackROFspan, compClusters, pattIt, labels);
212212
pattIt = patterns.begin();
213213
std::vector<int> savedROF;
214-
auto logger = [&](std::string s) { LOG(info) << s; };
215-
auto fatalLogger = [&](std::string s) { LOG(fatal) << s; };
216-
auto errorLogger = [&](std::string s) { LOG(error) << s; };
214+
auto logger = [&](const std::string& s) { LOG(info) << s; };
215+
auto fatalLogger = [&](const std::string& s) { LOG(fatal) << s; };
216+
auto errorLogger = [&](const std::string& s) { LOG(error) << s; };
217217

218218
FastMultEst multEst; // mult estimator
219219
std::vector<uint8_t> processingMask, processUPCMask;

0 commit comments

Comments
 (0)