Skip to content

Commit 9bfbbbb

Browse files
committed
Linter fixes
1 parent e74c2b5 commit 9bfbbbb

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

PWGHF/TableProducer/treeCreatorDplusToPiKPi.cxx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ DECLARE_SOA_COLUMN(Eta, eta, float);
7474
DECLARE_SOA_COLUMN(Phi, phi, float); //! Azimuth angle of candidate
7575
DECLARE_SOA_COLUMN(E, e, float); //! Energy of candidate (GeV)
7676
DECLARE_SOA_COLUMN(Centrality, centrality, float); //! Collision centrality
77-
DECLARE_SOA_INDEX_COLUMN(HfCandDpFullEv, getEvent); //! The collision index this candidate belongs to
77+
DECLARE_SOA_INDEX_COLUMN(HfCandDpFullEv, hfCandDpFullEv); //! The collision index this candidate belongs to
7878
DECLARE_SOA_COLUMN(NSigTpcPi0, nSigTpcPi0, float); //! TPC Nsigma separation for prong0 with pion mass hypothesis
7979
DECLARE_SOA_COLUMN(NSigTpcKa0, nSigTpcKa0, float); //! TPC Nsigma separation for prong0 with kaon mass hypothesis
8080
DECLARE_SOA_COLUMN(NSigTofPi0, nSigTofPi0, float); //! TOF Nsigma separation for prong0 with pion mass hypothesis
@@ -273,29 +273,29 @@ struct HfTreeCreatorDplusToPiKPi {
273273
Configurable<int> centEstimator{"centEstimator", 0, "Centrality estimation (None: 0, FT0C: 2, FT0M: 3)"};
274274
Configurable<bool> cfgSkimmedProcessing{"cfgSkimmedProcessing", true, "Enables processing of skimmed datasets"};
275275

276-
HistogramRegistry registry{
277-
"registry"};
278-
279276
HfHelper hfHelper;
280277

278+
Service<o2::ccdb::BasicCCDBManager> ccdb;
279+
281280
using SelectedCandidates = soa::Filtered<soa::Join<aod::HfCand3ProngWPidPiKa, aod::HfSelDplusToPiKPi>>;
282281
using SelectedCandidatesMc = soa::Filtered<soa::Join<aod::HfCand3ProngWPidPiKa, aod::HfCand3ProngMcRec, aod::HfSelDplusToPiKPi>>;
283282
using MatchedGenCandidatesMc = soa::Filtered<soa::Join<aod::McParticles, aod::HfCand3ProngMcGen>>;
284283
using SelectedCandidatesMcWithMl = soa::Filtered<soa::Join<aod::HfCand3ProngWPidPiKa, aod::HfCand3ProngMcRec, aod::HfSelDplusToPiKPi, aod::HfMlDplusToPiKPi>>;
285284
using TracksWPid = soa::Join<aod::Tracks, aod::TracksPidPi, aod::PidTpcTofFullPi, aod::TracksPidKa, aod::PidTpcTofFullKa>;
286-
287285
using CollisionsCent = soa::Join<aod::Collisions, aod::CentFT0Cs, aod::CentFT0Ms>;
288286

289287
Filter filterSelectCandidates = aod::hf_sel_candidate_dplus::isSelDplusToPiKPi >= selectionFlagDplus;
290288
Filter filterMcGenMatching = (nabs(o2::aod::hf_cand_3prong::flagMcMatchGen) == static_cast<int8_t>(hf_decay::hf_cand_3prong::DecayChannelMain::DplusToPiKPi)) || (fillCorrBkgs && (nabs(o2::aod::hf_cand_3prong::flagMcMatchGen) != 0));
291289

290+
Preslice<SelectedCandidates> tracksPerCollision = o2::aod::track::collisionId;
291+
292292
Partition<SelectedCandidatesMc> reconstructedCandSig = (nabs(aod::hf_cand_3prong::flagMcMatchRec) == static_cast<int8_t>(hf_decay::hf_cand_3prong::DecayChannelMain::DplusToPiKPi)) || (fillCorrBkgs && (nabs(o2::aod::hf_cand_3prong::flagMcMatchRec) != 0));
293293
Partition<SelectedCandidatesMc> reconstructedCandBkg = nabs(aod::hf_cand_3prong::flagMcMatchRec) != static_cast<int8_t>(hf_decay::hf_cand_3prong::DecayChannelMain::DplusToPiKPi);
294294
Partition<SelectedCandidatesMcWithMl> reconstructedCandSigMl = (nabs(aod::hf_cand_3prong::flagMcMatchRec) == static_cast<int8_t>(hf_decay::hf_cand_3prong::DecayChannelMain::DplusToPiKPi)) || (fillCorrBkgs && (nabs(o2::aod::hf_cand_3prong::flagMcMatchRec) != 0));
295295

296-
Preslice<SelectedCandidates> tracksPerCollision = o2::aod::track::collisionId;
296+
HistogramRegistry registry{
297+
"registry"};
297298

298-
Service<o2::ccdb::BasicCCDBManager> ccdb;
299299
Zorro zorro;
300300
OutputObj<ZorroSummary> zorroSummary{"zorroSummary"};
301301

PWGHF/TableProducer/treeReaderDplusToPiKPi.cxx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// granted to it by virtue of its status as an Intergovernmental Organization
1010
// or submit itself to any jurisdiction.
1111

12-
/// \file treeCreatorDplusToPiKPi.cxx
12+
/// \file treeReaderDplusToPiKPi.cxx
1313
/// \brief Writer of D+ → π+ K- π+ candidates in the form of flat tables to be stored in TTrees.
1414
/// Intended for debug, local optimization of analysis on small samples or ML training.
1515
/// In this file are defined and filled the output tables
@@ -56,7 +56,7 @@ DECLARE_SOA_COLUMN(Eta, eta, float);
5656
DECLARE_SOA_COLUMN(Phi, phi, float); //! Azimuth angle of candidate
5757
DECLARE_SOA_COLUMN(E, e, float); //! Energy of candidate (GeV)
5858
DECLARE_SOA_COLUMN(Centrality, centrality, float); //! Collision centrality
59-
DECLARE_SOA_INDEX_COLUMN(HfCandDpFullEv, getEvent); //! The collision index this candidate belongs to
59+
DECLARE_SOA_INDEX_COLUMN(HfCandDpFullEv, hfCandDpFullEv); //! The collision index this candidate belongs to
6060
DECLARE_SOA_COLUMN(NSigTpcPi0, nSigTpcPi0, float); //! TPC Nsigma separation for prong0 with pion mass hypothesis
6161
DECLARE_SOA_COLUMN(NSigTpcKa0, nSigTpcKa0, float); //! TPC Nsigma separation for prong0 with kaon mass hypothesis
6262
DECLARE_SOA_COLUMN(NSigTofPi0, nSigTofPi0, float); //! TOF Nsigma separation for prong0 with pion mass hypothesis
@@ -236,14 +236,14 @@ DECLARE_SOA_TABLE(HfCandDpFullPs, "AOD", "HFCANDDPFULLP",
236236
struct HfTreeReaderDplusToPiKPi {
237237
Configurable<int> selectionFlagDplus{"selectionFlagDplus", 1, "Selection Flag for Dplus"};
238238

239+
using SelectedCandidates = soa::Filtered<o2::aod::HfCandDpFulls>;
240+
Filter filterSelectCandidates = aod::full::candidateSelFlag >= selectionFlagDplus;
241+
239242
HistogramConfigSpec hTH1NCand{HistType::kTH1F, {{7, -0.5, 6.5}}};
240243
HistogramRegistry registry{
241244
"registry",
242245
{{"hNCand", "Number of D candidates per event;xxxx", hTH1NCand}}};
243246

244-
using SelectedCandidates = soa::Filtered<o2::aod::HfCandDpFulls>;
245-
Filter filterSelectCandidates = aod::full::candidateSelFlag >= selectionFlagDplus;
246-
247247
void init(InitContext const&)
248248
{
249249
registry.add("hMassDplus", "D+ candidates;inv. mass (#pi#pi K) (GeV/#it{c}^{2}))", {HistType::kTH1F, {{120, 1.5848, 2.1848}}});
@@ -275,7 +275,7 @@ struct HfTreeReaderDplusToPiKPi {
275275
for (const auto& cand1 : localCandidates) {
276276
auto mass1 = cand1.m();
277277
registry.fill(HIST("hMassDplus"), mass1);
278-
if (abs(cand1.flagMcMatchRec()) == hf_decay::hf_cand_3prong::DecayChannelMain::DplusToPiKPi)
278+
if (std::abs(cand1.flagMcMatchRec()) == hf_decay::hf_cand_3prong::DecayChannelMain::DplusToPiKPi)
279279
registry.fill(HIST("hMassDplusMatched"), mass1);
280280
}
281281
}

0 commit comments

Comments
 (0)