|
9 | 9 | // granted to it by virtue of its status as an Intergovernmental Organization |
10 | 10 | // or submit itself to any jurisdiction. |
11 | 11 |
|
12 | | -/// \file antinucleiTask.cxx |
| 12 | +/// \file antiNucleiTask.cxx |
13 | 13 | /// \brief A task to analyse Anti-nuclei |
14 | 14 | /// \author Arkaprabha Saha <arkaprabha.saha@cern.ch> |
15 | 15 |
|
@@ -48,14 +48,15 @@ static const int minTpcCrossedRowsCut = 70; |
48 | 48 | static const float maxVertexZCut = 10.f; |
49 | 49 | } // namespace |
50 | 50 |
|
51 | | -struct antinucleiTask { |
| 51 | +struct antiNucleiTask { |
52 | 52 | // Histogram registry: for holding histograms |
53 | 53 | HistogramRegistry histos{"histos", {}, OutputObjHandlingPolicy::AnalysisObject}; |
54 | 54 |
|
55 | 55 | // Configurable track cuts |
56 | 56 | Configurable<float> trackNclusTPCcut{"trackNclusTPCcut", 70.0f, "min number of TPC clusters"}; |
57 | 57 | 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"}; |
59 | 60 | Configurable<float> chi2ITS{"chi2ITS", 36.0f, "max chi2 per cluster ITS"}; |
60 | 61 | Configurable<float> trackDCAz{"trackDCAz", 0.1f, "maxDCAz"}; |
61 | 62 | Configurable<float> trackDCAxy{"trackDCAxy", 0.1f, "maxDCAxy"}; |
@@ -101,7 +102,9 @@ struct antinucleiTask { |
101 | 102 | return false; |
102 | 103 | if (track.itsNCls() < trackNclusITScut) |
103 | 104 | return false; |
104 | | - if (track.tpcChi2NCl() > chi2TPC) |
| 105 | + if (track.tpcChi2NCl() > maxChi2TPC) |
| 106 | + return false; |
| 107 | + if (track.tpcChi2NCl() < minChi2TPC) |
105 | 108 | return false; |
106 | 109 | if (track.itsChi2NCl() > chi2ITS) |
107 | 110 | return false; |
@@ -162,11 +165,11 @@ struct antinucleiTask { |
162 | 165 | } |
163 | 166 | } |
164 | 167 |
|
165 | | - PROCESS_SWITCH(antinucleiTask, process, "process", true); |
| 168 | + PROCESS_SWITCH(antiNucleiTask, process, "process", true); |
166 | 169 | }; |
167 | 170 |
|
168 | 171 | WorkflowSpec defineDataProcessing(ConfigContext const& cfgc) |
169 | 172 | { |
170 | 173 | return WorkflowSpec{ |
171 | | - adaptAnalysisTask<antinucleiTask>(cfgc)}; |
| 174 | + adaptAnalysisTask<antiNucleiTask>(cfgc)}; |
172 | 175 | } |
0 commit comments