|
| 1 | +// Copyright 2019-2020 CERN and copyright holders of ALICE O2. |
| 2 | +// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders. |
| 3 | +// All rights not expressly granted are reserved. |
| 4 | +// |
| 5 | +// This software is distributed under the terms of the GNU General Public |
| 6 | +// License v3 (GPL Version 3), copied verbatim in the file "COPYING". |
| 7 | +// |
| 8 | +// In applying this license CERN does not waive the privileges and immunities |
| 9 | +// granted to it by virtue of its status as an Intergovernmental Organization |
| 10 | +// or submit itself to any jurisdiction. |
| 11 | +/// |
| 12 | +/// \file LFPhiStrangeCorrelationTables.h |
| 13 | +/// \brief Data model Phi-Strangeness correlation analysis |
| 14 | +/// \author Stefano Cannito (stefano.cannito@cern.ch) |
| 15 | + |
| 16 | +#ifndef PWGLF_DATAMODEL_LFPHISTRANGECORRELATIONTABLES_H_ |
| 17 | +#define PWGLF_DATAMODEL_LFPHISTRANGECORRELATIONTABLES_H_ |
| 18 | + |
| 19 | +#include "Framework/ASoAHelpers.h" |
| 20 | +#include "Framework/AnalysisDataModel.h" |
| 21 | +#include <Framework/ASoA.h> |
| 22 | + |
| 23 | +namespace o2::aod |
| 24 | +{ |
| 25 | +namespace lf_selection_phi_collision |
| 26 | +{ |
| 27 | +DECLARE_SOA_COLUMN(PhimesonSel, phimesonSel, bool); |
| 28 | +} // namespace lf_selection_phi_collision |
| 29 | + |
| 30 | +DECLARE_SOA_TABLE(PhimesonSelection, "AOD", "PHIINCOLL", |
| 31 | + lf_selection_phi_collision::PhimesonSel); |
| 32 | + |
| 33 | +namespace lf_selection_phi_candidate |
| 34 | +{ |
| 35 | +DECLARE_SOA_INDEX_COLUMN(Collision, collision); |
| 36 | + |
| 37 | +DECLARE_SOA_COLUMN(M, m, float); |
| 38 | +DECLARE_SOA_COLUMN(Pt, pt, float); |
| 39 | +DECLARE_SOA_COLUMN(Y, y, float); |
| 40 | +DECLARE_SOA_COLUMN(Phi, phi, float); |
| 41 | + |
| 42 | +DECLARE_SOA_DYNAMIC_COLUMN(InMassRegion, inMassRegion, |
| 43 | + [](float m, float minM, float maxM) -> bool { |
| 44 | + return (m >= minM && m <= maxM); |
| 45 | + }); |
| 46 | +} // namespace lf_selection_phi_candidate |
| 47 | + |
| 48 | +DECLARE_SOA_TABLE(PhimesonCandidates, "AOD", "PHICANDIDATES", |
| 49 | + lf_selection_phi_candidate::CollisionId, |
| 50 | + lf_selection_phi_candidate::M, |
| 51 | + lf_selection_phi_candidate::Pt, |
| 52 | + lf_selection_phi_candidate::Y, |
| 53 | + lf_selection_phi_candidate::Phi, |
| 54 | + lf_selection_phi_candidate::InMassRegion<lf_selection_phi_candidate::M>); |
| 55 | +} // namespace o2::aod |
| 56 | + |
| 57 | +#endif // PWGLF_DATAMODEL_LFPHISTRANGECORRELATIONTABLES_H_ |
0 commit comments