|
13 | 13 | /// |
14 | 14 | /// \author Francesca Ercolessi ([email protected]) |
15 | 15 |
|
| 16 | +#include <vector> |
| 17 | +#include <utility> |
| 18 | + |
16 | 19 | #include "Framework/AnalysisTask.h" |
17 | 20 | #include "Common/DataModel/TrackSelectionTables.h" |
18 | 21 | #include "PWGLF/DataModel/LFStrangenessTables.h" |
@@ -217,15 +220,8 @@ struct LfV0qaanalysis { |
217 | 220 | float ctauK0s = v0.distovertotmom(collision.posX(), collision.posY(), collision.posZ()) * o2::constants::physics::MassK0Short; |
218 | 221 |
|
219 | 222 | // ITS clusters |
220 | | - int posITSNhits = 0, negITSNhits = 0; |
221 | | - for (unsigned int i = 0; i < 7; i++) { |
222 | | - if (v0.posTrack_as<DauTracks>().itsClusterMap() & (1 << i)) { |
223 | | - posITSNhits++; |
224 | | - } |
225 | | - if (v0.negTrack_as<DauTracks>().itsClusterMap() & (1 << i)) { |
226 | | - negITSNhits++; |
227 | | - } |
228 | | - } |
| 223 | + const int posITSNhits = v0.posTrack_as<DauTracks>().itsNCls(); |
| 224 | + const int negITSNhits = v0.negTrack_as<DauTracks>().itsNCls(); |
229 | 225 |
|
230 | 226 | // Event flags |
231 | 227 | int evFlag = 0; |
@@ -366,15 +362,8 @@ struct LfV0qaanalysis { |
366 | 362 | } |
367 | 363 | } |
368 | 364 |
|
369 | | - int posITSNhits = 0, negITSNhits = 0; |
370 | | - for (unsigned int i = 0; i < 7; i++) { |
371 | | - if (v0.posTrack_as<DauTracksMC>().itsClusterMap() & (1 << i)) { |
372 | | - posITSNhits++; |
373 | | - } |
374 | | - if (v0.negTrack_as<DauTracksMC>().itsClusterMap() & (1 << i)) { |
375 | | - negITSNhits++; |
376 | | - } |
377 | | - } |
| 365 | + const int posITSNhits = v0.posTrack_as<DauTracksMC>().itsNCls(); |
| 366 | + const int negITSNhits = v0.negTrack_as<DauTracksMC>().itsNCls(); |
378 | 367 |
|
379 | 368 | float ctauLambda = v0.distovertotmom(collision.posX(), collision.posY(), collision.posZ()) * o2::constants::physics::MassLambda0; |
380 | 369 | float ctauAntiLambda = v0.distovertotmom(collision.posX(), collision.posY(), collision.posZ()) * o2::constants::physics::MassLambda0Bar; |
|
0 commit comments