Skip to content

Commit 8d6e98c

Browse files
committed
linter: Double_t -> double
1 parent 8c3b8ad commit 8d6e98c

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

PWGHF/D2H/Tasks/taskLc.cxx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ struct HfTaskLc {
573573
outputFD = candidate.mlProbLcToPKPi()[MlClassNonPrompt]; /// non-prompt score
574574
}
575575
/// Fill the ML outputScores and variables of candidate
576-
std::vector<Double_t> valuesToFill{massLc, pt, cent, outputBkg, outputPrompt, outputFD, static_cast<Double_t>(numPvContributors), ptRecB, static_cast<Double_t>(originType)};
576+
std::vector<double> valuesToFill{massLc, pt, cent, outputBkg, outputPrompt, outputFD, static_cast<double>(numPvContributors), ptRecB, static_cast<double>(originType)};
577577
if (storeProperLifetime) {
578578
valuesToFill.push_back(properLifetime);
579579
}
@@ -582,7 +582,7 @@ struct HfTaskLc {
582582
}
583583
registry.get<THnSparse>(HIST("hnLcVarsWithBdt"))->Fill(valuesToFill.data());
584584
} else {
585-
std::vector<Double_t> valuesToFill{massLc, pt, cent, ptProng0, ptProng1, ptProng2, chi2PCA, decayLength, cpa, static_cast<Double_t>(numPvContributors), ptRecB, static_cast<Double_t>(originType)};
585+
std::vector<double> valuesToFill{massLc, pt, cent, ptProng0, ptProng1, ptProng2, chi2PCA, decayLength, cpa, static_cast<double>(numPvContributors), ptRecB, static_cast<double>(originType)};
586586
if (storeOccupancy && occEstimator != o2::hf_occupancy::OccupancyEstimator::None) {
587587
valuesToFill.push_back(occ);
588588
}
@@ -599,7 +599,7 @@ struct HfTaskLc {
599599
outputFD = candidate.mlProbLcToPiKP()[MlClassNonPrompt]; /// non-prompt score
600600
}
601601
/// Fill the ML outputScores and variables of candidate (todo: add multiplicity)
602-
std::vector<Double_t> valuesToFill{massLc, pt, cent, outputBkg, outputPrompt, outputFD, static_cast<Double_t>(numPvContributors), ptRecB, static_cast<Double_t>(originType)};
602+
std::vector<double> valuesToFill{massLc, pt, cent, outputBkg, outputPrompt, outputFD, static_cast<double>(numPvContributors), ptRecB, static_cast<double>(originType)};
603603
if (storeProperLifetime) {
604604
valuesToFill.push_back(properLifetime);
605605
}
@@ -608,7 +608,7 @@ struct HfTaskLc {
608608
}
609609
registry.get<THnSparse>(HIST("hnLcVarsWithBdt"))->Fill(valuesToFill.data());
610610
} else {
611-
std::vector<Double_t> valuesToFill{massLc, pt, cent, ptProng0, ptProng1, ptProng2, chi2PCA, decayLength, cpa, static_cast<Double_t>(numPvContributors), ptRecB, static_cast<Double_t>(originType)};
611+
std::vector<double> valuesToFill{massLc, pt, cent, ptProng0, ptProng1, ptProng2, chi2PCA, decayLength, cpa, static_cast<double>(numPvContributors), ptRecB, static_cast<double>(originType)};
612612
if (storeOccupancy && occEstimator != o2::hf_occupancy::OccupancyEstimator::None) {
613613
valuesToFill.push_back(occ);
614614
}
@@ -661,7 +661,7 @@ struct HfTaskLc {
661661

662662
if (particle.originMcGen() == RecoDecay::OriginType::Prompt) {
663663
if (fillTHn) {
664-
std::vector<Double_t> valuesToFill{ptGen, cent, yGen, static_cast<Double_t>(numPvContributors), ptGenB, static_cast<Double_t>(originType)};
664+
std::vector<double> valuesToFill{ptGen, cent, yGen, static_cast<double>(numPvContributors), ptGenB, static_cast<double>(originType)};
665665
if (storeProperLifetime) {
666666
valuesToFill.push_back(properLifetime);
667667
}
@@ -681,7 +681,7 @@ struct HfTaskLc {
681681
if (particle.originMcGen() == RecoDecay::OriginType::NonPrompt) {
682682
ptGenB = mcParticles.rawIteratorAt(particle.idxBhadMotherPart()).pt();
683683
if (fillTHn) {
684-
std::vector<Double_t> valuesToFill{ptGen, cent, yGen, static_cast<Double_t>(numPvContributors), ptGenB, static_cast<Double_t>(originType)};
684+
std::vector<double> valuesToFill{ptGen, cent, yGen, static_cast<double>(numPvContributors), ptGenB, static_cast<double>(originType)};
685685
if (storeProperLifetime) {
686686
valuesToFill.push_back(properLifetime);
687687
}
@@ -790,7 +790,7 @@ struct HfTaskLc {
790790
outputFD = candidate.mlProbLcToPKPi()[MlClassNonPrompt]; /// non-prompt score
791791
}
792792
/// Fill the ML outputScores and variables of candidate
793-
std::vector<Double_t> valuesToFill{massLc, pt, cent, outputBkg, outputPrompt, outputFD, static_cast<Double_t>(numPvContributors)};
793+
std::vector<double> valuesToFill{massLc, pt, cent, outputBkg, outputPrompt, outputFD, static_cast<double>(numPvContributors)};
794794
if (storeProperLifetime) {
795795
valuesToFill.push_back(properLifetime);
796796
}
@@ -799,7 +799,7 @@ struct HfTaskLc {
799799
}
800800
registry.get<THnSparse>(HIST("hnLcVarsWithBdt"))->Fill(valuesToFill.data());
801801
} else {
802-
std::vector<Double_t> valuesToFill{massLc, pt, cent, ptProng0, ptProng1, ptProng2, chi2PCA, decayLength, cpa, static_cast<Double_t>(numPvContributors)};
802+
std::vector<double> valuesToFill{massLc, pt, cent, ptProng0, ptProng1, ptProng2, chi2PCA, decayLength, cpa, static_cast<double>(numPvContributors)};
803803
if (storeOccupancy && occEstimator != o2::hf_occupancy::OccupancyEstimator::None) {
804804
valuesToFill.push_back(occ);
805805
}
@@ -816,7 +816,7 @@ struct HfTaskLc {
816816
outputFD = candidate.mlProbLcToPiKP()[MlClassNonPrompt]; /// non-prompt score
817817
}
818818
/// Fill the ML outputScores and variables of candidate
819-
std::vector<Double_t> valuesToFill{massLc, pt, cent, outputBkg, outputPrompt, outputFD, static_cast<Double_t>(numPvContributors)};
819+
std::vector<double> valuesToFill{massLc, pt, cent, outputBkg, outputPrompt, outputFD, static_cast<double>(numPvContributors)};
820820
if (storeProperLifetime) {
821821
valuesToFill.push_back(properLifetime);
822822
}
@@ -825,7 +825,7 @@ struct HfTaskLc {
825825
}
826826
registry.get<THnSparse>(HIST("hnLcVarsWithBdt"))->Fill(valuesToFill.data());
827827
} else {
828-
std::vector<Double_t> valuesToFill{massLc, pt, cent, ptProng0, ptProng1, ptProng2, chi2PCA, decayLength, cpa, static_cast<Double_t>(numPvContributors)};
828+
std::vector<double> valuesToFill{massLc, pt, cent, ptProng0, ptProng1, ptProng2, chi2PCA, decayLength, cpa, static_cast<double>(numPvContributors)};
829829
if (storeOccupancy && occEstimator != o2::hf_occupancy::OccupancyEstimator::None) {
830830
valuesToFill.push_back(occ);
831831
}

0 commit comments

Comments
 (0)