Skip to content

Commit b235825

Browse files
ArkaprabhaSaha001arkaprabha
andauthored
[PWGLF] Edited my task for light nuclei analysis (#13208)
Co-authored-by: arkaprabha <arkaprabha.saha@cern.ch>
1 parent cbbbfec commit b235825

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

PWGLF/Tasks/Nuspex/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ o2physics_add_dpl_workflow(nuclei-ebye
120120
COMPONENT_NAME Analysis)
121121

122122
o2physics_add_dpl_workflow(anti-nuclei-hist
123-
SOURCES antinucleiTask.cxx
123+
SOURCES antiNucleiTask.cxx
124124
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore
125125
COMPONENT_NAME Analysis)
126126

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

12-
/// \file antinucleiTask.cxx
12+
/// \file antiNucleiTask.cxx
1313
/// \brief A task to analyse Anti-nuclei
1414
/// \author Arkaprabha Saha <arkaprabha.saha@cern.ch>
1515

@@ -48,14 +48,15 @@ static const int minTpcCrossedRowsCut = 70;
4848
static const float maxVertexZCut = 10.f;
4949
} // namespace
5050

51-
struct antinucleiTask {
51+
struct antiNucleiTask {
5252
// Histogram registry: for holding histograms
5353
HistogramRegistry histos{"histos", {}, OutputObjHandlingPolicy::AnalysisObject};
5454

5555
// Configurable track cuts
5656
Configurable<float> trackNclusTPCcut{"trackNclusTPCcut", 70.0f, "min number of TPC clusters"};
5757
Configurable<float> trackNclusITScut{"trackNclusITScut", 4.0f, "min number of ITS clusters"};
58-
Configurable<float> chi2TPC{"chi2TPC", 4.0f, "max chi2 per cluster TPC"};
58+
Configurable<float> maxChi2TPC{"maxChi2TPC", 4.0f, "max chi2 per cluster TPC"};
59+
Configurable<float> minChi2TPC{"minChi2TPC", 0.0f, "min chi2 per cluster TPC"};
5960
Configurable<float> chi2ITS{"chi2ITS", 36.0f, "max chi2 per cluster ITS"};
6061
Configurable<float> trackDCAz{"trackDCAz", 0.1f, "maxDCAz"};
6162
Configurable<float> trackDCAxy{"trackDCAxy", 0.1f, "maxDCAxy"};
@@ -101,7 +102,9 @@ struct antinucleiTask {
101102
return false;
102103
if (track.itsNCls() < trackNclusITScut)
103104
return false;
104-
if (track.tpcChi2NCl() > chi2TPC)
105+
if (track.tpcChi2NCl() > maxChi2TPC)
106+
return false;
107+
if (track.tpcChi2NCl() < minChi2TPC)
105108
return false;
106109
if (track.itsChi2NCl() > chi2ITS)
107110
return false;
@@ -162,11 +165,11 @@ struct antinucleiTask {
162165
}
163166
}
164167

165-
PROCESS_SWITCH(antinucleiTask, process, "process", true);
168+
PROCESS_SWITCH(antiNucleiTask, process, "process", true);
166169
};
167170

168171
WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)
169172
{
170173
return WorkflowSpec{
171-
adaptAnalysisTask<antinucleiTask>(cfgc)};
174+
adaptAnalysisTask<antiNucleiTask>(cfgc)};
172175
}

0 commit comments

Comments
 (0)