Skip to content

Commit 810c7db

Browse files
authored
Replace std::LOG with LOG for logging
1 parent 3042dfd commit 810c7db

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

ALICE3/TableProducer/OTF/onTheFlyTracker.cxx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ struct OnTheFlyTracker {
256256
auto loadLUT = [&](int pdg, const std::string& lutFile) {
257257
bool success = mSmearer.loadTable(pdg, lutFile.c_str());
258258
if (!success && !lutFile.empty()) {
259-
std::LOG(fatal) << "Having issue with loading the LUT " << pdg << " " << lutFile;
259+
LOG(fatal) << "Having issue with loading the LUT " << pdg << " " << lutFile;
260260
}
261261
};
262262
loadLUT(kElectron, lutEl.value);
@@ -364,7 +364,7 @@ struct OnTheFlyTracker {
364364
hFastTrackerQA->GetXaxis()->SetBinLabel(8, "efficiency");
365365
}
366366

367-
std::LOGF(info, "Initializing magnetic field to value: %.3f kG", static_cast<float>(magneticField));
367+
LOGF(info, "Initializing magnetic field to value: %.3f kG", static_cast<float>(magneticField));
368368
o2::parameters::GRPMagField grpmag;
369369
grpmag.setFieldUniformity(true);
370370
grpmag.setL3Current(30000.f * (magneticField / 5.0f));
@@ -373,18 +373,18 @@ struct OnTheFlyTracker {
373373

374374
auto fieldInstance = static_cast<o2::field::MagneticField*>(TGeoGlobalMagField::Instance()->GetField());
375375
if (!fieldInstance) {
376-
std::LOGF(fatal, "Failed to set up magnetic field! Stopping now!");
376+
LOGF(fatal, "Failed to set up magnetic field! Stopping now!");
377377
}
378378

379379
// Cross-check
380-
std::LOGF(info, "Check field at (0, 0, 0): %.1f kG, nominal: %.1f", static_cast<float>(fieldInstance->GetBz(0, 0, 0)), static_cast<float>(field));
380+
LOGF(info, "Check field at (0, 0, 0): %.1f kG, nominal: %.1f", static_cast<float>(fieldInstance->GetBz(0, 0, 0)), static_cast<float>(field));
381381

382-
std::LOGF(info, "Initializing empty material cylinder LUT - could be better in the future");
382+
LOGF(info, "Initializing empty material cylinder LUT - could be better in the future");
383383
o2::base::MatLayerCylSet* lut = new o2::base::MatLayerCylSet();
384384
lut->addLayer(200, 200.1, 2, 1.0f, 100.0f);
385-
std::LOGF(info, "MatLayerCylSet::optimizePhiSlices()");
385+
LOGF(info, "MatLayerCylSet::optimizePhiSlices()");
386386
lut->optimizePhiSlices();
387-
std::LOGF(info, "Setting lut now...");
387+
LOGF(info, "Setting lut now...");
388388
o2::base::Propagator::Instance()->setMatLUT(lut);
389389

390390
irSampler.setInteractionRate(100);
@@ -450,7 +450,7 @@ struct OnTheFlyTracker {
450450

451451
double xi_gamma = 1 / std::sqrt(1 + (particle.p() * particle.p()) / (xi_mass * xi_mass));
452452
double xi_ctau = 4.91 * xi_gamma;
453-
double xi_rxyz = (-xi_ctau * std::log(1 - u));
453+
double xi_rxyz = (-xi_ctau * log(1 - u));
454454
float sna, csa;
455455
o2::math_utils::CircleXYf_t xi_circle;
456456
track.getCircleParams(magneticField, xi_circle, sna, csa);
@@ -475,7 +475,7 @@ struct OnTheFlyTracker {
475475
double la_gamma = 1 / std::sqrt(1 + (la.P() * la.P()) / (la_mass * la_mass));
476476
double la_ctau = 7.89 * la_gamma;
477477
std::vector<double> laDaughters = {pi_mass, pr_mass};
478-
double la_rxyz = (-la_ctau * std::log(1 - u));
478+
double la_rxyz = (-la_ctau * log(1 - u));
479479
laDecayVertex.push_back(xiDecayVertex[0] + la_rxyz * (xiDecay.GetDecay(0)->Px() / xiDecay.GetDecay(0)->P()));
480480
laDecayVertex.push_back(xiDecayVertex[1] + la_rxyz * (xiDecay.GetDecay(0)->Py() / xiDecay.GetDecay(0)->P()));
481481
laDecayVertex.push_back(xiDecayVertex[2] + la_rxyz * (xiDecay.GetDecay(0)->Pz() / xiDecay.GetDecay(0)->P()));
@@ -534,7 +534,7 @@ struct OnTheFlyTracker {
534534
}
535535
const auto& pdgInfo = pdgDB->GetParticle(mcParticle.pdgCode());
536536
if (!pdgInfo) {
537-
std::LOG(warning) << "PDG code " << mcParticle.pdgCode() << " not found in the database";
537+
LOG(warning) << "PDG code " << mcParticle.pdgCode() << " not found in the database";
538538
continue;
539539
}
540540
if (pdgInfo->Charge() == 0) {
@@ -705,7 +705,7 @@ struct OnTheFlyTracker {
705705
try {
706706
nCand = fitter.process(xiDaughterTrackParCovsTracked[1], xiDaughterTrackParCovsTracked[2]);
707707
} catch (...) {
708-
// std::LOG(error) << "Exception caught in DCA fitter process call!";
708+
// LOG(error) << "Exception caught in DCA fitter process call!";
709709
dcaFitterOK_V0 = false;
710710
}
711711
if (nCand == 0) {
@@ -761,7 +761,7 @@ struct OnTheFlyTracker {
761761
try {
762762
nCand = fitter.process(v0Track, xiDaughterTrackParCovsTracked[0]);
763763
} catch (...) {
764-
// std::LOG(error) << "Exception caught in DCA fitter process call!";
764+
// LOG(error) << "Exception caught in DCA fitter process call!";
765765
dcaFitterOK_Cascade = false;
766766
}
767767
if (nCand == 0) {

0 commit comments

Comments
 (0)