|
1 | 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. |
| 2 | +// See https://alice-o2.web.cern.ch/copyright for details of the copyright |
| 3 | +// holders. All rights not expressly granted are reserved. |
4 | 4 | // |
5 | 5 | // This software is distributed under the terms of the GNU General Public |
6 | 6 | // License v3 (GPL Version 3), copied verbatim in the file "COPYING". |
7 | 7 | // |
8 | 8 | // In applying this license CERN does not waive the privileges and immunities |
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 | 12 | /// \file trHeAnalysis.cxx |
| 13 | +/// |
13 | 14 | /// \brief triton and helion analysis on Run 3 pp data |
| 15 | +/// |
14 | 16 | /// \author Esther Bartsch <esther.bartsch@cern.ch>, Goethe University Frankfurt |
15 | 17 |
|
16 | 18 | #include "MetadataHelper.h" |
@@ -285,6 +287,7 @@ struct TrHeAnalysis { |
285 | 287 | Configurable<float> cfgMaxDCAXY{"cfgMaxDCAXY", 10000.f, "Maximum DCA to PV in Z"}; |
286 | 288 | Configurable<float> cfgMinDCAZ{"cfgMinDCAZ", 0.f, "Minimum DCA to PV in XY"}; |
287 | 289 | Configurable<float> cfgMaxDCAZ{"cfgMaxDCAZ", 10000.f, "Maximum DCA to PV in Z"}; |
| 290 | + Configurable<int> cfgTrackSign{"cfgTrackSign", 0, "1: positive only, -1: negative only, 0: all tracks"}; |
288 | 291 | } trackCuts; |
289 | 292 |
|
290 | 293 | Configurable<LabeledArray<float>> cfgBetheBlochParams{"cfgBetheBlochParams", |
@@ -459,6 +462,8 @@ struct TrHeAnalysis { |
459 | 462 | if (!track.has_mcParticle()) |
460 | 463 | continue; |
461 | 464 | } |
| 465 | + if (track.sign() * trackCuts.cfgTrackSign < 0) |
| 466 | + continue; |
462 | 467 | float rigidity = getRigidity(track); |
463 | 468 | histos.fill(HIST("PID/histdEdx"), track.sign() * rigidity, |
464 | 469 | track.tpcSignal()); |
@@ -584,13 +589,13 @@ struct TrHeAnalysis { |
584 | 589 | continue; |
585 | 590 | histCuts.at(species)->Fill(12., pt); |
586 | 591 |
|
587 | | - if (track.dcaXY() < trackCuts.cfgMinDCAXY || |
588 | | - track.dcaXY() > trackCuts.cfgMaxDCAXY) |
| 592 | + if (std::abs(track.dcaXY()) < trackCuts.cfgMinDCAXY || |
| 593 | + std::abs(track.dcaXY()) > trackCuts.cfgMaxDCAXY) |
589 | 594 | continue; |
590 | 595 | histCuts.at(species)->Fill(13., pt); |
591 | 596 |
|
592 | | - if (track.dcaZ() < trackCuts.cfgMinDCAZ || |
593 | | - track.dcaZ() > trackCuts.cfgMaxDCAZ) |
| 597 | + if (std::abs(track.dcaZ()) < trackCuts.cfgMinDCAZ || |
| 598 | + std::abs(track.dcaZ()) > trackCuts.cfgMaxDCAZ) |
594 | 599 | continue; |
595 | 600 | histCuts.at(species)->Fill(14., pt); |
596 | 601 |
|
|
0 commit comments