Skip to content

Commit 6ec95e2

Browse files
authored
[PWGLF] Code refactoring for phi-strange correlation analysis (#14463)
1 parent e406921 commit 6ec95e2

File tree

6 files changed

+1238
-2
lines changed

6 files changed

+1238
-2
lines changed
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
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_

PWGLF/TableProducer/Strangeness/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,3 +168,8 @@ if(FastJet_FOUND)
168168
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore O2Physics::PWGJECore FastJet::FastJet FastJet::Contrib O2Physics::EventFilteringUtils
169169
COMPONENT_NAME Analysis)
170170
endif()
171+
172+
o2physics_add_dpl_workflow(phi-strange-correlator
173+
SOURCES phiStrangeCorrelator.cxx
174+
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore
175+
COMPONENT_NAME Analysis)

0 commit comments

Comments
 (0)