Skip to content

Commit 26361ab

Browse files
authored
Fix linter
1 parent 60b8faf commit 26361ab

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

ALICE3/TableProducer/OTF/onTheFlyTracker.cxx

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

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

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

378378
// Cross-check
379-
LOGF(info, "Check field at (0, 0, 0): %.1f kG, nominal: %.1f", static_cast<float>(fieldInstance->GetBz(0, 0, 0)), static_cast<float>(field));
379+
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));
380380

381-
LOGF(info, "Initializing empty material cylinder LUT - could be better in the future");
381+
std::LOGF(info, "Initializing empty material cylinder LUT - could be better in the future");
382382
o2::base::MatLayerCylSet* lut = new o2::base::MatLayerCylSet();
383383
lut->addLayer(200, 200.1, 2, 1.0f, 100.0f);
384-
LOGF(info, "MatLayerCylSet::optimizePhiSlices()");
384+
std::LOGF(info, "MatLayerCylSet::optimizePhiSlices()");
385385
lut->optimizePhiSlices();
386-
LOGF(info, "Setting lut now...");
386+
std::LOGF(info, "Setting lut now...");
387387
o2::base::Propagator::Instance()->setMatLUT(lut);
388388

389389
irSampler.setInteractionRate(100);
@@ -447,13 +447,13 @@ struct OnTheFlyTracker {
447447
double pi_mass = o2::constants::physics::MassPionCharged;
448448
double pr_mass = o2::constants::physics::MassProton;
449449

450-
double xi_gamma = 1 / sqrt(1 + (particle.p() * particle.p()) / (xi_mass * xi_mass));
450+
double xi_gamma = 1 / std::sqrt(1 + (particle.p() * particle.p()) / (xi_mass * xi_mass));
451451
double xi_ctau = 4.91 * xi_gamma;
452-
double xi_rxyz = (-xi_ctau * log(1 - u));
452+
double xi_rxyz = (-xi_ctau * std::log(1 - u));
453453
float sna, csa;
454454
o2::math_utils::CircleXYf_t xi_circle;
455455
track.getCircleParams(magneticField, xi_circle, sna, csa);
456-
double xi_rxy = xi_rxyz / sqrt(1. + track.getTgl() * track.getTgl());
456+
double xi_rxy = xi_rxyz / std::sqrt(1. + track.getTgl() * track.getTgl());
457457
double theta = xi_rxy / xi_circle.rC;
458458
double newX = ((particle.vx() - xi_circle.xC) * std::cos(theta) - (particle.vy() - xi_circle.yC) * std::sin(theta)) + xi_circle.xC;
459459
double newY = ((particle.vy() - xi_circle.yC) * std::cos(theta) + (particle.vx() - xi_circle.xC) * std::sin(theta)) + xi_circle.yC;
@@ -471,10 +471,10 @@ struct OnTheFlyTracker {
471471
decayDaughters.push_back(*xiDecay.GetDecay(1));
472472
TLorentzVector la = *xiDecay.GetDecay(0);
473473

474-
double la_gamma = 1 / sqrt(1 + (la.P() * la.P()) / (la_mass * la_mass));
474+
double la_gamma = 1 / std::sqrt(1 + (la.P() * la.P()) / (la_mass * la_mass));
475475
double la_ctau = 7.89 * la_gamma;
476476
std::vector<double> laDaughters = {pi_mass, pr_mass};
477-
double la_rxyz = (-la_ctau * log(1 - u));
477+
double la_rxyz = (-la_ctau * std::log(1 - u));
478478
laDecayVertex.push_back(xiDecayVertex[0] + la_rxyz * (xiDecay.GetDecay(0)->Px() / xiDecay.GetDecay(0)->P()));
479479
laDecayVertex.push_back(xiDecayVertex[1] + la_rxyz * (xiDecay.GetDecay(0)->Py() / xiDecay.GetDecay(0)->P()));
480480
laDecayVertex.push_back(xiDecayVertex[2] + la_rxyz * (xiDecay.GetDecay(0)->Pz() / xiDecay.GetDecay(0)->P()));
@@ -533,7 +533,7 @@ struct OnTheFlyTracker {
533533
}
534534
const auto& pdgInfo = pdgDB->GetParticle(mcParticle.pdgCode());
535535
if (!pdgInfo) {
536-
LOG(warning) << "PDG code " << mcParticle.pdgCode() << " not found in the database";
536+
std::LOG(warning) << "PDG code " << mcParticle.pdgCode() << " not found in the database";
537537
continue;
538538
}
539539
if (pdgInfo->Charge() == 0) {
@@ -558,8 +558,8 @@ struct OnTheFlyTracker {
558558
o2::track::TrackParCov xiTrackParCov;
559559
o2::upgrade::convertMCParticleToO2Track(mcParticle, xiTrackParCov, pdgDB);
560560
decayParticle(mcParticle, xiTrackParCov, decayProducts, xiDecayVertex, laDecayVertex);
561-
xiDecayRadius2D = sqrt(xiDecayVertex[0] * xiDecayVertex[0] + xiDecayVertex[1] * xiDecayVertex[1]);
562-
laDecayRadius2D = sqrt(laDecayVertex[0] * laDecayVertex[0] + laDecayVertex[1] * laDecayVertex[1]);
561+
xiDecayRadius2D = std::sqrt(xiDecayVertex[0] * xiDecayVertex[0] + xiDecayVertex[1] * xiDecayVertex[1]);
562+
laDecayRadius2D = std::sqrt(laDecayVertex[0] * laDecayVertex[0] + laDecayVertex[1] * laDecayVertex[1]);
563563
}
564564
}
565565

@@ -703,7 +703,7 @@ struct OnTheFlyTracker {
703703
try {
704704
nCand = fitter.process(xiDaughterTrackParCovsTracked[1], xiDaughterTrackParCovsTracked[2]);
705705
} catch (...) {
706-
// LOG(error) << "Exception caught in DCA fitter process call!";
706+
// std::LOG(error) << "Exception caught in DCA fitter process call!";
707707
dcaFitterOK_V0 = false;
708708
}
709709
if (nCand == 0) {
@@ -756,7 +756,7 @@ struct OnTheFlyTracker {
756756
try {
757757
nCand = fitter.process(v0Track, xiDaughterTrackParCovsTracked[0]);
758758
} catch (...) {
759-
// LOG(error) << "Exception caught in DCA fitter process call!";
759+
// std::LOG(error) << "Exception caught in DCA fitter process call!";
760760
dcaFitterOK_Cascade = false;
761761
}
762762
if (nCand == 0) {

0 commit comments

Comments
 (0)