Skip to content

Commit 882155e

Browse files
author
Chiara De Martin
committed
fix unused variable
1 parent d170cde commit 882155e

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

PWGLF/TableProducer/Strangeness/cascadeflow.cxx

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2561,29 +2561,20 @@ struct cascadeFlow {
25612561
if (isV0TopoAccepted(v0) && isALambdaCandidate)
25622562
isSelectedV0[1] = true;
25632563

2564-
int chargeIndex = -1;
25652564
if (isSelectedV0[0] && !isSelectedV0[1]) { // Lambdas
25662565
histos.fill(HIST("hLambdaCandidate"), 0);
2567-
chargeIndex = 0;
25682566
}
25692567
if (isSelectedV0[1] && !isSelectedV0[0]) { // AntiLambdas
25702568
histos.fill(HIST("hLambdaCandidate"), 1);
2571-
chargeIndex = 1;
25722569
}
25732570
if (isSelectedV0[0] && isSelectedV0[1]) {
25742571
histos.fill(HIST("hLambdaCandidate"), 2);
25752572
if (v0.mLambda() > V0Configs.MinMassLambda && v0.mLambda() < V0Configs.MaxMassLambda && v0.mAntiLambda() > V0Configs.MinMassLambda && v0.mAntiLambda() < V0Configs.MaxMassLambda) {
25762573
histos.fill(HIST("hLambdaCandidate"), 3);
25772574
continue; // in case of ambiguity between Lambda and AntiLambda, I skip the particle; checked to be zero in range 1.105 - 1.125
25782575
}
2579-
if (v0.mLambda() > V0Configs.MinMassLambda && v0.mLambda() < V0Configs.MaxMassLambda)
2580-
chargeIndex = 0;
2581-
else if (v0.mAntiLambda() > V0Configs.MinMassLambda && v0.mAntiLambda() < V0Configs.MaxMassLambda)
2582-
chargeIndex = 1;
2583-
else {
2584-
chargeIndex = 2; // these are bkg candidates
2585-
histos.fill(HIST("hLambdaCandidate"), 4);
2586-
}
2576+
if (!(v0.mLambda() > V0Configs.MinMassLambda && v0.mLambda() < V0Configs.MaxMassLambda) && !(v0.mAntiLambda() > V0Configs.MinMassLambda && v0.mAntiLambda() < V0Configs.MaxMassLambda))
2577+
histos.fill(HIST("hLambdaCandidate"), 4); //bkg candidates
25872578
}
25882579
if (!isSelectedV0[0] && !isSelectedV0[1])
25892580
continue;

0 commit comments

Comments
 (0)