|
9 | 9 | // granted to it by virtue of its status as an Intergovernmental Organization |
10 | 10 | // or submit itself to any jurisdiction. |
11 | 11 |
|
12 | | -/// \file treeCreatorDplusToPiKPi.cxx |
| 12 | +/// \file treeReaderDplusToPiKPi.cxx |
13 | 13 | /// \brief Writer of D+ → π+ K- π+ candidates in the form of flat tables to be stored in TTrees. |
14 | 14 | /// Intended for debug, local optimization of analysis on small samples or ML training. |
15 | 15 | /// In this file are defined and filled the output tables |
@@ -56,7 +56,7 @@ DECLARE_SOA_COLUMN(Eta, eta, float); |
56 | 56 | DECLARE_SOA_COLUMN(Phi, phi, float); //! Azimuth angle of candidate |
57 | 57 | DECLARE_SOA_COLUMN(E, e, float); //! Energy of candidate (GeV) |
58 | 58 | 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 |
60 | 60 | DECLARE_SOA_COLUMN(NSigTpcPi0, nSigTpcPi0, float); //! TPC Nsigma separation for prong0 with pion mass hypothesis |
61 | 61 | DECLARE_SOA_COLUMN(NSigTpcKa0, nSigTpcKa0, float); //! TPC Nsigma separation for prong0 with kaon mass hypothesis |
62 | 62 | 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", |
236 | 236 | struct HfTreeReaderDplusToPiKPi { |
237 | 237 | Configurable<int> selectionFlagDplus{"selectionFlagDplus", 1, "Selection Flag for Dplus"}; |
238 | 238 |
|
| 239 | + using SelectedCandidates = soa::Filtered<o2::aod::HfCandDpFulls>; |
| 240 | + Filter filterSelectCandidates = aod::full::candidateSelFlag >= selectionFlagDplus; |
| 241 | + |
239 | 242 | HistogramConfigSpec hTH1NCand{HistType::kTH1F, {{7, -0.5, 6.5}}}; |
240 | 243 | HistogramRegistry registry{ |
241 | 244 | "registry", |
242 | 245 | {{"hNCand", "Number of D candidates per event;xxxx", hTH1NCand}}}; |
243 | 246 |
|
244 | | - using SelectedCandidates = soa::Filtered<o2::aod::HfCandDpFulls>; |
245 | | - Filter filterSelectCandidates = aod::full::candidateSelFlag >= selectionFlagDplus; |
246 | | - |
247 | 247 | void init(InitContext const&) |
248 | 248 | { |
249 | 249 | 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 { |
275 | 275 | for (const auto& cand1 : localCandidates) { |
276 | 276 | auto mass1 = cand1.m(); |
277 | 277 | 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) |
279 | 279 | registry.fill(HIST("hMassDplusMatched"), mass1); |
280 | 280 | } |
281 | 281 | } |
|
0 commit comments