Skip to content

Commit 60fad30

Browse files
prottayCMTProttay Das
andauthored
[PWGLF] Producing derived data for charged kstar spin alignment study (#11976)
Co-authored-by: Prottay Das <prottay@alipap1.cern.ch>
1 parent 7778770 commit 60fad30

File tree

3 files changed

+492
-0
lines changed

3 files changed

+492
-0
lines changed
Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
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 LFCKSSpinalignmentTables.h
13+
/// \brief DataModel for Charged KStar spin alignment
14+
///
15+
/// \author Prottay Das <prottay.das@cern.ch>
16+
17+
#ifndef PWGLF_DATAMODEL_LFCKSSPINALIGNMENTTABLES_H_
18+
#define PWGLF_DATAMODEL_LFCKSSPINALIGNMENTTABLES_H_
19+
20+
#include "Common/Core/RecoDecay.h"
21+
#include "Common/DataModel/Centrality.h"
22+
#include "Common/DataModel/Multiplicity.h"
23+
#include "Common/DataModel/PIDResponse.h"
24+
#include "Common/DataModel/TrackSelectionTables.h"
25+
26+
#include "Framework/ASoA.h"
27+
#include "Framework/AnalysisDataModel.h"
28+
29+
#include <cmath>
30+
31+
namespace o2::aod
32+
{
33+
namespace kshortpionevent
34+
{
35+
DECLARE_SOA_COLUMN(Cent, cent, float);
36+
DECLARE_SOA_COLUMN(CollIndex, collIndex, float);
37+
DECLARE_SOA_COLUMN(PsiFT0C, psiFT0C, float);
38+
DECLARE_SOA_COLUMN(PsiFT0A, psiFT0A, float);
39+
DECLARE_SOA_COLUMN(PsiTPC, psiTPC, float);
40+
} // namespace kshortpionevent
41+
DECLARE_SOA_TABLE(KShortpionEvents, "AOD", "KSHORTPIONEVENT",
42+
o2::soa::Index<>,
43+
kshortpionevent::Cent,
44+
kshortpionevent::CollIndex,
45+
kshortpionevent::PsiFT0C,
46+
kshortpionevent::PsiFT0A,
47+
kshortpionevent::PsiTPC)
48+
using KShortpionEvent = KShortpionEvents::iterator;
49+
50+
namespace kshortpionpair
51+
{
52+
DECLARE_SOA_INDEX_COLUMN(KShortpionEvent, kshortpionevent);
53+
DECLARE_SOA_COLUMN(V0Cospa, v0Cospa, float); //! V0 Cospa
54+
DECLARE_SOA_COLUMN(V0Radius, v0Radius, float); //! V0 Radius
55+
DECLARE_SOA_COLUMN(DcaPositive, dcaPositive, float); //! DCA Positive
56+
DECLARE_SOA_COLUMN(DcaNegative, dcaNegative, float); //! DCA Negative
57+
DECLARE_SOA_COLUMN(DcaBetweenDaughter, dcaBetweenDaughter, float); //! DCA between daughters
58+
DECLARE_SOA_COLUMN(V0Lifetime, v0Lifetime, float); //! KShort lifetime
59+
DECLARE_SOA_COLUMN(KShortPx, kShortPx, float); //! KShort Px
60+
DECLARE_SOA_COLUMN(KShortPy, kShortPy, float); //! KShort Py
61+
DECLARE_SOA_COLUMN(KShortPz, kShortPz, float); //! KShort Pz
62+
DECLARE_SOA_COLUMN(KShortMass, kShortMass, float); //! KShort Mass
63+
DECLARE_SOA_COLUMN(PionBachPx, pionBachPx, float); //! Bachelor Pion Px
64+
DECLARE_SOA_COLUMN(PionBachPy, pionBachPy, float); //! Bachelor Pion Py
65+
DECLARE_SOA_COLUMN(PionBachPz, pionBachPz, float); //! Bachelor Pion Pz
66+
DECLARE_SOA_COLUMN(PionBachSign, pionBachSign, int); //! Bachelor Pion Sign
67+
DECLARE_SOA_COLUMN(PionBachTPC, pionBachTPC, float); //! Bachelor Pion nsigmatpc
68+
DECLARE_SOA_COLUMN(PionBachTOFHit, pionBachTOFHit, int); //! Bachelor Pion tof hit availability
69+
DECLARE_SOA_COLUMN(PionBachTOF, pionBachTOF, float); //! Bachelor Pion nsigmatof
70+
DECLARE_SOA_COLUMN(PionBachIndex, pionBachIndex, int); //! Bachelor Pion index
71+
DECLARE_SOA_COLUMN(PionIndex1, pionIndex1, int); //! Daughter Pion index1
72+
DECLARE_SOA_COLUMN(PionIndex2, pionIndex2, int); //! Daughter Pion index2
73+
} // namespace kshortpionpair
74+
DECLARE_SOA_TABLE(KShortpionPairs, "AOD", "KSHORTPIONPAIR",
75+
o2::soa::Index<>,
76+
kshortpionpair::KShortpionEventId,
77+
kshortpionpair::V0Cospa,
78+
kshortpionpair::V0Radius,
79+
kshortpionpair::DcaPositive,
80+
kshortpionpair::DcaNegative,
81+
kshortpionpair::DcaBetweenDaughter,
82+
kshortpionpair::V0Lifetime,
83+
// kshortpionpair::Armenteros,
84+
kshortpionpair::KShortPx,
85+
kshortpionpair::KShortPy,
86+
kshortpionpair::KShortPz,
87+
kshortpionpair::KShortMass,
88+
kshortpionpair::PionBachPx,
89+
kshortpionpair::PionBachPy,
90+
kshortpionpair::PionBachPz,
91+
kshortpionpair::PionBachSign,
92+
kshortpionpair::PionBachTPC,
93+
kshortpionpair::PionBachTOFHit,
94+
kshortpionpair::PionBachTOF,
95+
kshortpionpair::PionBachIndex,
96+
kshortpionpair::PionIndex1,
97+
kshortpionpair::PionIndex2);
98+
99+
using KShortpionPair = KShortpionPairs::iterator;
100+
} // namespace o2::aod
101+
#endif // PWGLF_DATAMODEL_LFCKSSPINALIGNMENTTABLES_H_

PWGLF/TableProducer/Resonances/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,8 @@ o2physics_add_dpl_workflow(heptaquarktable
4949
SOURCES HeptaQuarktable.cxx
5050
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore O2::DetectorsVertexing
5151
COMPONENT_NAME Analysis)
52+
53+
o2physics_add_dpl_workflow(cksspinalignment
54+
SOURCES cksspinalignment.cxx
55+
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore
56+
COMPONENT_NAME Analysis)

0 commit comments

Comments
 (0)