Skip to content

Commit c1ea3a2

Browse files
committed
MegaLinter fixes
1 parent e2e6f0e commit c1ea3a2

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

PWGLF/Tasks/Resonances/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ o2physics_add_dpl_workflow(k892hadronphoton
310310
COMPONENT_NAME Analysis)
311311

312312
o2physics_add_dpl_workflow(k892hadronphotonbkg
313-
SOURCES K892hadronphotonBkg.cxx
313+
SOURCES k892hadronphotonBkg.cxx
314314
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore O2Physics::AnalysisCCDB
315315
COMPONENT_NAME Analysis)
316316

PWGLF/Tasks/Resonances/k892hadronphoton.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -999,15 +999,15 @@ struct k892hadronphoton {
999999
"TPCTOFPID", "DCADauToPV", "Mass"};
10001000

10011001
if (std::abs(PDGRequired) == PDG_t::kGamma) {
1002-
if constexpr (selection_index >= 0 && selection_index < (int)std::size(PhotonSelsLocal)) {
1002+
if constexpr (selection_index >= 0 && selection_index < static_cast<int>(std::size(PhotonSelsLocal))) {
10031003
histos.fill(HIST("Selection/Photon/hCandidateSel"), selection_index);
10041004
histos.fill(HIST("Selection/Photon/h2d") + HIST(PhotonSelsLocal[selection_index]), kstar.photonPt(), kstar.photonMass());
10051005
histos.fill(HIST("Selection/KStar/h2dPhoton") + HIST(PhotonSelsLocal[selection_index]), kstar.pt(), kstar.kstarMass());
10061006
}
10071007
}
10081008

10091009
if (std::abs(PDGRequired) == PDG_t::kK0Short) {
1010-
if constexpr (selection_index >= 0 && selection_index < (int)std::size(KShortSelsLocal)) {
1010+
if constexpr (selection_index >= 0 && selection_index < static_cast<int>(std::size(KShortSelsLocal))) {
10111011
histos.fill(HIST("Selection/KShort/hCandidateSel"), selection_index);
10121012
histos.fill(HIST("Selection/KShort/h2d") + HIST(KShortSelsLocal[selection_index]), kstar.kshortPt(), kstar.kshortMass());
10131013
histos.fill(HIST("Selection/KStar/h2dKShort") + HIST(KShortSelsLocal[selection_index]), kstar.pt(), kstar.kstarMass());

PWGLF/Tasks/Resonances/K892hadronphotonBkg.cxx renamed to PWGLF/Tasks/Resonances/k892hadronphotonBkg.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -645,16 +645,16 @@ struct k892hadronphotonBkg {
645645
histos.fill(HIST("KStarBkg/h2dCentralityCollPair"),
646646
getCentralityRun3Bkg(coll1), getCentralityRun3Bkg(coll2));
647647

648-
if (std::abs(int64_t(coll1.globalIndex()) - int64_t(coll2.globalIndex())) < kstarBkgConfig.deltaCollision)
648+
if (std::abs(static_cast<int64_t>(coll1.globalIndex()) - static_cast<int64_t>(coll2.globalIndex())) < kstarBkgConfig.deltaCollision)
649649
continue;
650-
650+
xww
651651
auto const& photons1 = photonPool[coll1.globalIndex()];
652652
auto const& kshorts1 = kshortPool[coll1.globalIndex()];
653653
auto const& photons2 = photonPool[coll2.globalIndex()];
654654
auto const& kshorts2 = kshortPool[coll2.globalIndex()];
655655

656656
// K0s(coll1) × γ(coll2)
657-
if (!kshorts1.empty() && !photons2.empty()) {
657+
if (!kshorts1.empty() && !photons2.empty()) {xw
658658
for (int kIdx : kshorts1) {
659659
auto kshort = fullV0s.rawIteratorAt(kIdx);
660660
float kP = std::hypot(kshort.px(), kshort.py(), kshort.pz());

0 commit comments

Comments
 (0)