@@ -317,27 +317,28 @@ struct myAnalysis {
317317 return true ;
318318 }
319319
320- // init Selection
321- template <typename Lambda, typename TrackPos, typename TrackNeg>
322- bool passedInitLambdaSelection (const Lambda& v0, const TrackPos& ptrack, const TrackNeg& ntrack){
320+ // init Selection
321+ template <typename Lambda, typename TrackPos, typename TrackNeg>
322+ bool passedInitLambdaSelection (const Lambda& v0, const TrackPos& ptrack, const TrackNeg& ntrack)
323+ {
323324 if (v0.v0radius () < minimumV0Radius || v0.v0cosPA () < v0cospa ||
324- TMath::Abs (ptrack.eta ()) > etaMax ||
325- TMath::Abs (ntrack.eta ()) > etaMax) {
326- return false ;
327- }
328- if (v0.dcaV0daughters () > dcav0dau){
325+ TMath::Abs (ptrack.eta ()) > etaMax ||
326+ TMath::Abs (ntrack.eta ()) > etaMax) {
329327 return false ;
330328 }
331-
332- if (TMath::Abs (v0.dcanegtopv ()) < dcanegtopv){
329+ if (v0.dcaV0daughters () > dcav0dau) {
333330 return false ;
334331 }
335-
336- if (TMath::Abs (v0.dcapostopv ()) < dcapostopv){
332+
333+ if (TMath::Abs (v0.dcanegtopv ()) < dcanegtopv) {
334+ return false ;
335+ }
336+
337+ if (TMath::Abs (v0.dcapostopv ()) < dcapostopv) {
337338 return false ;
338339 }
339340 return true ;
340- }
341+ }
341342
342343 // Lambda Selections
343344 template <typename Lambda, typename TrackPos, typename TrackNeg>
@@ -599,7 +600,7 @@ bool passedInitLambdaSelection(const Lambda& v0, const TrackPos& ptrack, const T
599600 JEhistos.fill (HIST (" V0DCANegToPV" ), v0.dcanegtopv ());
600601 JEhistos.fill (HIST (" V0DCAPosToPV" ), v0.dcapostopv ());
601602 JEhistos.fill (HIST (" V0DCAV0Daughters" ), v0.dcaV0daughters ());
602- }else if (passedInitLambdaSelection (v0, pos, neg)){
603+ } else if (passedInitLambdaSelection (v0, pos, neg)) {
603604 JEhistos.fill (HIST (" hPt" ), v0.pt ());
604605 JEhistos.fill (HIST (" V0Radius" ), v0.v0radius ());
605606 JEhistos.fill (HIST (" CosPA" ), v0.v0cosPA ());
@@ -620,7 +621,7 @@ bool passedInitLambdaSelection(const Lambda& v0, const TrackPos& ptrack, const T
620621 JEhistos.fill (HIST (" v0Lambdapz" ), v0.pz ());
621622 myTable (outputCollisionsV0.lastIndex (), v0.collisionId (), v0.px (), v0.py (), v0.pz (), v0.pt (), v0.mLambda (), pos.px (), pos.py (), pos.pz ());
622623 JEhistos.fill (HIST (" hV0Lambda" ), nEventsV0, v0.px (), v0.py (), v0.pz (), v0.mLambda (), pos.px (), pos.py (), pos.pz ());
623- }else if (passedInitLambdaSelection (v0, pos, neg)){
624+ } else if (passedInitLambdaSelection (v0, pos, neg)) {
624625 V0LambdaNumbers = V0LambdaNumbers + 1 ;
625626 JEhistos.fill (HIST (" hMassVsPtLambda" ), v0.pt (), v0.mLambda ());
626627 JEhistos.fill (HIST (" hMassLambda" ), v0.mLambda ());
@@ -643,7 +644,7 @@ bool passedInitLambdaSelection(const Lambda& v0, const TrackPos& ptrack, const T
643644 JEhistos.fill (HIST (" v0AntiLambdapx" ), v0.px ());
644645 JEhistos.fill (HIST (" v0AntiLambdapy" ), v0.py ());
645646 JEhistos.fill (HIST (" v0AntiLambdapz" ), v0.pz ());
646- }else if (passedInitLambdaSelection (v0, pos, neg)){
647+ } else if (passedInitLambdaSelection (v0, pos, neg)) {
647648 JEhistos.fill (HIST (" hMassVsPtAntiLambda" ), v0.pt (), v0.mAntiLambda ());
648649 JEhistos.fill (HIST (" hMassAntiLambda" ), v0.mAntiLambda ());
649650 JEhistos.fill (HIST (" TPCNSigmaPosPi" ), pos.tpcNSigmaPi ());
0 commit comments