Skip to content

Commit e62eb26

Browse files
authored
[PWGLF] Derived data producer for lambda spin correlation study (#11676)
1 parent fa49c26 commit e62eb26

File tree

3 files changed

+435
-1
lines changed

3 files changed

+435
-1
lines changed
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
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+
///
13+
/// \author Sourav Kundu <sourav.kundu@cern.ch>
14+
15+
#ifndef PWGLF_DATAMODEL_LFSPINCORRELATIONTABLES_H_
16+
#define PWGLF_DATAMODEL_LFSPINCORRELATIONTABLES_H_
17+
18+
#include "Common/Core/RecoDecay.h"
19+
#include "Common/DataModel/Centrality.h"
20+
#include "Common/DataModel/Multiplicity.h"
21+
#include "Common/DataModel/PIDResponse.h"
22+
#include "Common/DataModel/TrackSelectionTables.h"
23+
24+
#include "Framework/ASoA.h"
25+
#include "Framework/AnalysisDataModel.h"
26+
27+
#include <cmath>
28+
29+
namespace o2::aod
30+
{
31+
namespace lambdaspincorrevent
32+
{
33+
DECLARE_SOA_COLUMN(Cent, cent, float);
34+
DECLARE_SOA_COLUMN(Posz, posz, float);
35+
} // namespace lambdaspincorrevent
36+
DECLARE_SOA_TABLE(LambdaSpinCorrEvents, "AOD", "LAMBDASPINCOREVENT",
37+
o2::soa::Index<>,
38+
lambdaspincorrevent::Cent,
39+
lambdaspincorrevent::Posz)
40+
using LambdaSpinCorrEvent = LambdaSpinCorrEvents::iterator;
41+
42+
namespace lambdaspincorrpair
43+
{
44+
DECLARE_SOA_INDEX_COLUMN(LambdaSpinCorrEvent, lambdaspincorrevent);
45+
DECLARE_SOA_COLUMN(V0Status, v0Status, float); //! Lambda or Anti-Lambda status
46+
DECLARE_SOA_COLUMN(DoubleStatus, doubleStatus, bool); //! Double status
47+
DECLARE_SOA_COLUMN(V0Cospa, v0Cospa, float); //! V0 Cospa
48+
DECLARE_SOA_COLUMN(V0Radius, v0Radius, float); //! V0 Radius
49+
DECLARE_SOA_COLUMN(DcaPositive, dcaPositive, float); //! DCA Positive
50+
DECLARE_SOA_COLUMN(DcaNegative, dcaNegative, float); //! DCA Negative
51+
DECLARE_SOA_COLUMN(DcaBetweenDaughter, dcaBetweenDaughter, float); //! DCA between daughters
52+
DECLARE_SOA_COLUMN(LambdaPt, lambdaPt, float); //! Lambda Pt
53+
DECLARE_SOA_COLUMN(LambdaEta, lambdaEta, float); //! Lambda Eta
54+
DECLARE_SOA_COLUMN(LambdaPhi, lambdaPhi, float); //! Lambda Phi
55+
DECLARE_SOA_COLUMN(LambdaMass, lambdaMass, float); //! Lambda Mass
56+
DECLARE_SOA_COLUMN(ProtonPt, protonPt, float); //! Proton Pt
57+
DECLARE_SOA_COLUMN(ProtonEta, protonEta, float); //! Proton Eta
58+
DECLARE_SOA_COLUMN(ProtonPhi, protonPhi, float); //! Proton Phi
59+
DECLARE_SOA_COLUMN(ProtonIndex, protonIndex, int); //! Proton index
60+
DECLARE_SOA_COLUMN(PionIndex, pionIndex, int); //! Pion index
61+
} // namespace lambdaspincorrpair
62+
DECLARE_SOA_TABLE(LambdaSpinCorrPairs, "AOD", "LAMBDAPAIR",
63+
o2::soa::Index<>,
64+
lambdaspincorrpair::LambdaSpinCorrEventId,
65+
lambdaspincorrpair::V0Status,
66+
lambdaspincorrpair::DoubleStatus,
67+
lambdaspincorrpair::V0Cospa,
68+
lambdaspincorrpair::V0Radius,
69+
lambdaspincorrpair::DcaPositive,
70+
lambdaspincorrpair::DcaNegative,
71+
lambdaspincorrpair::DcaBetweenDaughter,
72+
lambdaspincorrpair::LambdaPt,
73+
lambdaspincorrpair::LambdaEta,
74+
lambdaspincorrpair::LambdaPhi,
75+
lambdaspincorrpair::LambdaMass,
76+
lambdaspincorrpair::ProtonPt,
77+
lambdaspincorrpair::ProtonEta,
78+
lambdaspincorrpair::ProtonPhi,
79+
lambdaspincorrpair::ProtonIndex,
80+
lambdaspincorrpair::PionIndex);
81+
82+
using LambdaSpinCorrPair = LambdaSpinCorrPairs::iterator;
83+
} // namespace o2::aod
84+
#endif // PWGLF_DATAMODEL_LFSPINCORRELATIONTABLES_H_

PWGLF/TableProducer/Strangeness/CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,4 +160,9 @@ o2physics_add_dpl_workflow(lambdajetpolarizationbuilder
160160
o2physics_add_dpl_workflow(stracents
161161
SOURCES stracents.cxx
162162
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore
163-
COMPONENT_NAME Analysis)
163+
COMPONENT_NAME Analysis)
164+
165+
o2physics_add_dpl_workflow(lambdaspincorrelation
166+
SOURCES lambdaspincorrelation.cxx
167+
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore
168+
COMPONENT_NAME Analysis)

0 commit comments

Comments
 (0)