Skip to content

Commit e30c3fd

Browse files
author
Francesco Mazzaschi
committed
move to derived data
1 parent 9e48029 commit e30c3fd

File tree

1 file changed

+21
-27
lines changed

1 file changed

+21
-27
lines changed

PWGLF/Tasks/Strangeness/xiLambdaCorr.cxx

Lines changed: 21 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,15 @@
99
// granted to it by virtue of its status as an Intergovernmental Organization
1010
// or submit itself to any jurisdiction.
1111

12-
#include "PWGLF/DataModel/LFDoubleCascTables.h"
12+
#include "PWGLF/DataModel/LFStrangenessPIDTables.h"
1313
#include "PWGLF/DataModel/LFStrangenessTables.h"
1414

15-
#include "Common/Core/PID/TPCPIDResponse.h"
1615
#include "Common/Core/RecoDecay.h"
17-
#include "Common/Core/trackUtilities.h"
18-
#include "Common/DataModel/Centrality.h"
19-
#include "Common/DataModel/EventSelection.h"
20-
#include "Common/DataModel/Multiplicity.h"
21-
#include "Common/DataModel/PIDResponse.h"
22-
#include "Common/DataModel/TrackSelectionTables.h"
23-
24-
#include "DataFormatsParameters/GRPMagField.h"
25-
#include "DataFormatsParameters/GRPObject.h"
26-
#include "DetectorsBase/GeometryManager.h"
27-
#include "DetectorsBase/Propagator.h"
16+
2817
#include "Framework/ASoAHelpers.h"
2918
#include "Framework/AnalysisDataModel.h"
3019
#include "Framework/AnalysisTask.h"
3120
#include "Framework/runDataProcessing.h"
32-
#include "ReconstructionDataFormats/Track.h"
3321

3422
#include "TDatabasePDG.h"
3523
#include <Math/Vector4D.h>
@@ -42,10 +30,10 @@ using namespace o2;
4230
using namespace o2::framework;
4331
using namespace o2::framework::expressions;
4432

45-
using Collisions = soa::Join<aod::Collisions, aod::EvSels>::iterator;
46-
using FullCascades = aod::CascDataExt;
47-
using FullV0s = aod::V0Datas;
48-
using TracksFull = soa::Join<aod::Tracks, aod::TracksExtra, aod::TracksCovIU, aod::pidTPCPi, aod::pidTPCPr, aod::pidTPCKa>;
33+
using Collisions = soa::Join<aod::StraCollisions, aod::StraCents, aod::StraEvSels, aod::StraStamps>::iterator;
34+
using FullV0s = soa::Join<aod::V0CollRefs, aod::V0Cores, aod::V0Extras>;
35+
using FullCascades = soa::Join<aod::CascCollRefs, aod::CascCores, aod::CascExtras, aod::CascBBs>;
36+
using TracksFull = soa::Join<aod::DauTrackExtras, aod::DauTrackTPCPIDs>;
4937

5038
struct xiLambdaCorr {
5139
ConfigurableAxis zVtxAxis{"zVtxBins", {100, -20.f, 20.f}, "Binning for the vertex z in cm"};
@@ -84,9 +72,6 @@ struct xiLambdaCorr {
8472
template <class T>
8573
bool selectTrack(T const& track)
8674
{
87-
if (std::abs(track.eta()) > etaMax) {
88-
return false;
89-
}
9075
if (track.tpcNClsFound() < minNTPCClus) {
9176
return false;
9277
}
@@ -106,9 +91,13 @@ struct xiLambdaCorr {
10691
bool isSelectedCasc(C const& collision, T const&, FullCascades::iterator const& casc)
10792
{
10893

109-
auto bachelor = casc.bachelor_as<T>();
110-
auto posDau = casc.posTrack_as<T>();
111-
auto negDau = casc.negTrack_as<T>();
94+
if (std::abs(casc.positiveeta()) > 0.9 || std::abs(casc.negativeeta()) > 0.9 || std::abs(casc.bacheloreta()) > 0.9) {
95+
return false;
96+
}
97+
98+
auto bachelor = casc.bachTrackExtra_as<T>();
99+
auto posDau = casc.posTrackExtra_as<T>();
100+
auto negDau = casc.negTrackExtra_as<T>();
112101

113102
if (!selectTrack(bachelor) || !selectTrack(posDau) || !selectTrack(negDau)) {
114103
return false;
@@ -139,6 +128,7 @@ struct xiLambdaCorr {
139128
if (casc.mXi() > o2::constants::physics::MassXiMinus - mXiWindow && casc.mXi() < o2::constants::physics::MassXiMinus + mXiWindow) {
140129
massInWindow = true;
141130
}
131+
142132
if (!massInWindow) {
143133
return false;
144134
}
@@ -149,8 +139,12 @@ struct xiLambdaCorr {
149139
template <class T>
150140
bool isSelectedLambda(T const&, FullV0s::iterator const& v0)
151141
{
152-
auto posDau = v0.posTrack_as<T>();
153-
auto negDau = v0.negTrack_as<T>();
142+
auto posDau = v0.posTrackExtra_as<T>();
143+
auto negDau = v0.negTrackExtra_as<T>();
144+
145+
if (std::abs(v0.positiveeta()) > 0.9 || std::abs(v0.negativeeta()) > 0.9) {
146+
return false;
147+
}
154148

155149
if (!selectTrack(posDau) || !selectTrack(negDau)) {
156150
return false;
@@ -199,7 +193,7 @@ struct xiLambdaCorr {
199193
if (!isSelectedLambda(tracks, v0)) {
200194
continue;
201195
}
202-
if (casc.posTrackId() == v0.posTrackId() || casc.posTrackId() == v0.negTrackId()) {
196+
if (casc.posTrackExtraId() == v0.posTrackExtraId() || casc.posTrackExtraId() == v0.negTrackExtraId()) {
203197
continue;
204198
}
205199

0 commit comments

Comments
 (0)