Skip to content

Commit eb811aa

Browse files
committed
fix code-check errors
1 parent 9feec55 commit eb811aa

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎PWGEM/PhotonMeson/Tasks/twoPhotonMcTask.cxx‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,13 @@
2424
#include "PWGEM/PhotonMeson/Utils/EventHistograms.h"
2525
#include "PWGEM/PhotonMeson/Utils/MCUtilities.h"
2626

27-
#include "Common/Core/RecoDecay.h"
27+
#include "Common/DataModel/Centrality.h"
2828

29-
#include <CCDB/BasicCCDBManager.h>
3029
#include <CommonConstants/MathConstants.h>
30+
#include <CommonConstants/PhysicsConstants.h>
3131
#include <Framework/ASoA.h>
3232
#include <Framework/ASoAHelpers.h>
3333
#include <Framework/AnalysisDataModel.h>
34-
#include <Framework/AnalysisHelpers.h>
3534
#include <Framework/AnalysisTask.h>
3635
#include <Framework/BinningPolicy.h>
3736
#include <Framework/Concepts.h>
@@ -59,6 +58,7 @@
5958
#include <cstddef>
6059
#include <cstdint>
6160
#include <cstdlib>
61+
#include <format>
6262
#include <optional>
6363
#include <string>
6464
#include <string_view>
@@ -428,7 +428,7 @@ struct TwoPhotonMcTask {
428428
}
429429
registry.add("PCMEMC/SameParticle/hLegEoverP", "cluster from a V0 leg: #it{E}_{cls}/#it{p}_{leg}", HistType::kTH2F, {{200, 0., 4., "#it{E}_{cls}/#it{p}_{leg}"}, axisPtLeg});
430430
for (const auto& [type, title] : {std::pair<std::string_view, std::string_view>{"Prim", "primary"}, {"Sec", "secondary"}}) {
431-
auto hStatus = registry.add<TH2>(Form("PCMEMC/SameParticle/hLeg%sStatus", type.data()), Form("cluster from a V0 leg: leg among the matched %s tracks", title.data()), HistType::kTH2F, {axisStatus, axisPtLeg});
431+
auto hStatus = registry.add<TH2>(std::format("PCMEMC/SameParticle/hLeg{}Status", type.data()).data(), std::format("cluster from a V0 leg: leg among the matched {} tracks", title.data()).data(), HistType::kTH2F, {axisStatus, axisPtLeg});
432432
for (std::size_t i = 0; i < StatusLabels.size(); ++i) {
433433
hStatus->GetXaxis()->SetBinLabel(static_cast<int>(i) + 1, StatusLabels[i].data());
434434
}

0 commit comments

Comments
 (0)