Skip to content

Commit 57f4ca5

Browse files
authored
Update v0qaanalysis.cxx
1 parent 8f90673 commit 57f4ca5

File tree

1 file changed

+4
-18
lines changed

1 file changed

+4
-18
lines changed

PWGLF/TableProducer/Strangeness/v0qaanalysis.cxx

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -217,15 +217,8 @@ struct LfV0qaanalysis {
217217
float ctauK0s = v0.distovertotmom(collision.posX(), collision.posY(), collision.posZ()) * o2::constants::physics::MassK0Short;
218218

219219
// 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-
}
220+
cosnt int posITSNhits = v0.posTrack_as<DauTracks>().itsNCls();
221+
const int negITSNhits = v0.negTrack_as<DauTracks>().itsNCls();
229222

230223
// Event flags
231224
int evFlag = 0;
@@ -366,15 +359,8 @@ struct LfV0qaanalysis {
366359
}
367360
}
368361

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-
}
362+
const int posITSNhits = v0.posTrack_as<DauTracksMC>().itsNCls();
363+
const int negITSNhits = v0.negTrack_as<DauTracksMC>().itsNCls();
378364

379365
float ctauLambda = v0.distovertotmom(collision.posX(), collision.posY(), collision.posZ()) * o2::constants::physics::MassLambda0;
380366
float ctauAntiLambda = v0.distovertotmom(collision.posX(), collision.posY(), collision.posZ()) * o2::constants::physics::MassLambda0Bar;

0 commit comments

Comments
 (0)