File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed
PWGLF/TableProducer/Strangeness Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments