@@ -75,21 +75,21 @@ struct lambda1405candidate {
7575 float sigmaAlphaAP = -1 ; // Alpha of the Sigma
7676 float sigmaQtAP = -1 ; // qT of the Sigma
7777 float kinkPt = -1 ; // pT of the kink daughter
78- float kinkPiNSigTpc = -1 ; // Number of sigmas for the pion candidate from Sigma kink in Tpc
79- float kinkPiNSigTof = -1 ; // Number of sigmas for the pion candidate from Sigma kink in Tof
80- float kinkPrNSigTpc = -1 ; // Number of sigmas for the proton candidate from Sigma kink in Tpc
81- float kinkPrNSigTof = -1 ; // Number of sigmas for the proton candidate from Sigma kink in Tof
78+ float kinkPiNSigTpc = -1 ; // Number of sigmas for the pion candidate from Sigma kink in Tpc
79+ float kinkPiNSigTof = -1 ; // Number of sigmas for the pion candidate from Sigma kink in Tof
80+ float kinkPrNSigTpc = -1 ; // Number of sigmas for the proton candidate from Sigma kink in Tpc
81+ float kinkPrNSigTof = -1 ; // Number of sigmas for the proton candidate from Sigma kink in Tof
8282 float kinkDcaDauToPv = -1 ; // DCA of the kink daughter to the primary vertex
8383 float sigmaRadius = -1 ; // Radius of the Sigma decay vertex
8484
8585 float piPt = -1 ; // pT of the pion daughter
8686 float bachPiNSigTpc = -1 ; // Number of sigmas for the pion candidate
8787 float bachPiNSigTof = -1 ; // Number of sigmas for the pion candidate using Tof
88- int kinkDauId = 0 ; // Id of the pion from Sigma decay in MC
89- int sigmaId = 0 ; // Id of the Sigma candidate in MC
90- int piId = 0 ; // Id of the pion candidate in MC
88+ int kinkDauId = 0 ; // Id of the pion from Sigma decay in MC
89+ int sigmaId = 0 ; // Id of the Sigma candidate in MC
90+ int piId = 0 ; // Id of the pion candidate in MC
9191
92- float scalarProd = -1 ; // Scalar product for flow analysis
92+ float scalarProd = -1 ; // Scalar product for flow analysis
9393};
9494
9595struct lambda1405analysis {
@@ -430,7 +430,8 @@ struct lambda1405analysis {
430430 }
431431
432432 template <typename TCand, typename TTrack>
433- void fillHistosSigma (const lambda1405candidate& lambda1405Cand, const TCand& sigmaCand, const TTrack& kinkDauTrack) {
433+ void fillHistosSigma (const lambda1405candidate& lambda1405Cand, const TCand& sigmaCand, const TTrack& kinkDauTrack)
434+ {
434435
435436 if (sigmaCand.mothSign () > 0 ) {
436437 rSigmaPlus.fill (HIST (" hSigmaPlusMass" ), sigmaCand.mSigmaPlus ());
@@ -566,15 +567,15 @@ struct lambda1405analysis {
566567 auto kinkDauMom = std::array{sigmaCand.pxDaug (), sigmaCand.pyDaug (), sigmaCand.pzDaug ()};
567568 auto sigmaMom = std::array{sigmaCand.pxMoth (), sigmaCand.pyMoth (), sigmaCand.pzMoth ()};
568569 // Sigma properties
569- lambda1405Cand.sigmaId = sigmaCand.globalIndex ();
570+ lambda1405Cand.sigmaId = sigmaCand.globalIndex ();
570571 lambda1405Cand.sigmaMinusMass = sigmaCand.mSigmaMinus ();
571- lambda1405Cand.sigmaPlusMass = sigmaCand.mSigmaPlus ();
572- lambda1405Cand.xiMinusMass = sigmaCand.mXiMinus ();
573- lambda1405Cand.sigmaSign = sigmaCand.mothSign ();
574- lambda1405Cand.sigmaAlphaAP = alphaAP (sigmaMom, kinkDauMom);
575- lambda1405Cand.sigmaQtAP = qtAP (sigmaMom, kinkDauMom);
576- lambda1405Cand.sigmaPt = sigmaCand.ptMoth ();
577- lambda1405Cand.sigmaRadius = sigmaRad;
572+ lambda1405Cand.sigmaPlusMass = sigmaCand.mSigmaPlus ();
573+ lambda1405Cand.xiMinusMass = sigmaCand.mXiMinus ();
574+ lambda1405Cand.sigmaSign = sigmaCand.mothSign ();
575+ lambda1405Cand.sigmaAlphaAP = alphaAP (sigmaMom, kinkDauMom);
576+ lambda1405Cand.sigmaQtAP = qtAP (sigmaMom, kinkDauMom);
577+ lambda1405Cand.sigmaPt = sigmaCand.ptMoth ();
578+ lambda1405Cand.sigmaRadius = sigmaRad;
578579 lambda1405Cand.kinkDcaDauToPv = sigmaCand.dcaDaugPv ();
579580
580581 if (lambda1405Cand.sigmaQtAP < cutSigmaQtAPMin || lambda1405Cand.sigmaQtAP > cutSigmaQtAPMax) {
@@ -596,8 +597,8 @@ struct lambda1405analysis {
596597 }
597598
598599 // Kink daughter properties
599- lambda1405Cand.kinkDauId = kinkDauTrack.globalIndex ();
600- lambda1405Cand.kinkPt = kinkDauTrack.pt ();
600+ lambda1405Cand.kinkDauId = kinkDauTrack.globalIndex ();
601+ lambda1405Cand.kinkPt = kinkDauTrack.pt ();
601602 lambda1405Cand.kinkPiNSigTpc = kinkDauTrack.tpcNSigmaPi ();
602603 lambda1405Cand.kinkPiNSigTof = kinkDauTrack.tofNSigmaPi ();
603604 lambda1405Cand.kinkPrNSigTpc = kinkDauTrack.tpcNSigmaPr ();
@@ -620,8 +621,8 @@ struct lambda1405analysis {
620621 continue ;
621622 }
622623 rSelections.fill (HIST (" hSelectionsBachPi" ), 5 ); // PID sel
623- rSelections.fill (HIST (" hSelectionsL1405" ), 2 ); // Bach Pi selection
624-
624+ rSelections.fill (HIST (" hSelectionsL1405" ), 2 ); // Bach Pi selection
625+
625626 auto piMom = std::array{piTrack.px (), piTrack.py (), piTrack.pz ()};
626627 float invMass{-1 .f };
627628 if (lambda1405Cand.isSigmaMinus ) {
@@ -632,7 +633,7 @@ struct lambda1405analysis {
632633 if (invMass > cutUpperMass) {
633634 continue ;
634635 }
635- rSelections.fill (HIST (" hSelectionsL1405" ), 3 ); // Upper mass selection
636+ rSelections.fill (HIST (" hSelectionsL1405" ), 3 ); // Upper mass selection
636637
637638 // Daughter Pi properties
638639 lambda1405Cand.piId = piTrack.globalIndex ();
@@ -653,7 +654,7 @@ struct lambda1405analysis {
653654 lambda1405Cand.phi = std::atan2 (lambda1405Cand.py , lambda1405Cand.px );
654655 lambda1405Cand.scalarProd = -1 ;
655656 fillHistosLambda1405 (lambda1405Cand, piTrack);
656- rSelections.fill (HIST (" hSelectionsL1405" ), 4 ); // Accepted
657+ rSelections.fill (HIST (" hSelectionsL1405" ), 4 ); // Accepted
657658 selectedCandidates.push_back (lambda1405Cand);
658659 }
659660 }
@@ -785,8 +786,9 @@ struct lambda1405analysis {
785786 }
786787 PROCESS_SWITCH (lambda1405analysis, processDataWCentQVecs, " Data processing with centrality and Q vectors info" , false );
787788
788- template <typename TMother>
789- int matchGenDecay (const TMother& motherPart, const aod::McParticles& mcParticles) {
789+ template <typename TMother>
790+ int matchGenDecay (const TMother& motherPart, const aod::McParticles& mcParticles)
791+ {
790792 LOG (info) << " Matching MC decay for particle with PDG code " << motherPart.pdgCode () << " and index " << motherPart.globalIndex ();
791793 int pdgMother = motherPart.pdgCode ();
792794 int8_t sign = 0 ;
@@ -795,7 +797,7 @@ struct lambda1405analysis {
795797
796798 // Match L(1405) --> n pi- pi+ final state
797799 std::array<int , 3 > finalState;
798- if (pdgMother > 0 ) { // Change sign of neutral decay products
800+ if (pdgMother > 0 ) { // Change sign of neutral decay products
799801 finalState = {PDG_t::kNeutron , PDG_t::kPiMinus , PDG_t::kPiPlus };
800802 } else {
801803 finalState = {-PDG_t::kNeutron , PDG_t::kPiMinus , PDG_t::kPiPlus };
@@ -815,7 +817,7 @@ struct lambda1405analysis {
815817 }
816818
817819 // Match L(1405) --> p pi0 pi+ final state, only possible for Sigma+
818- if (pdgMother > 0 ) { // Change sign of neutral decay products
820+ if (pdgMother > 0 ) { // Change sign of neutral decay products
819821 finalState = {PDG_t::kProton , PDG_t::kPi0 , PDG_t::kPiMinus };
820822 } else {
821823 finalState = {PDG_t::kProton , -PDG_t::kPi0 , PDG_t::kPiMinus };
@@ -846,7 +848,7 @@ struct lambda1405analysis {
846848 constructCollCandidates (sigmaCand, tracksPerCol, selectedCandidates);
847849 LOG (info) << " Selected " << selectedCandidates.size () << " Lambda(1405) candidates in this collision" ;
848850 for (const auto & lambda1405Cand : selectedCandidates) {
849- rLambda1405.fill (HIST (" hRecoL1405" ), 0 ., lambda1405Cand.pt ()); // All reconstructed
851+ rLambda1405.fill (HIST (" hRecoL1405" ), 0 ., lambda1405Cand.pt ()); // All reconstructed
850852
851853 // Do MC association
852854 auto mcLabPiKink = trackLabelsMC.rawIteratorAt (lambda1405Cand.kinkDauId );
@@ -859,7 +861,7 @@ struct lambda1405analysis {
859861 << " Bachelor Pi MC assoc: " << mcLabPi.has_mcParticle ();
860862 continue ; // Skip if no valid MC association
861863 }
862- rLambda1405.fill (HIST (" hRecoL1405" ), 1 ., lambda1405Cand.pt ()); // All with associated MC particle
864+ rLambda1405.fill (HIST (" hRecoL1405" ), 1 ., lambda1405Cand.pt ()); // All with associated MC particle
863865
864866 auto mcTrackKink = mcLabPiKink.mcParticle_as <aod::McParticles>();
865867 auto mcTrackSigma = mcLabSigma.mcParticle_as <aod::McParticles>();
@@ -876,22 +878,22 @@ struct lambda1405analysis {
876878 << " isSigmaPlusToPrKink: " << isSigmaPlusToPrKink;
877879 continue ; // Skip if not a valid Sigma kink decay
878880 }
879- rLambda1405.fill (HIST (" hRecoL1405" ), 2 ., lambda1405Cand.pt ()); // Has kink decay in MC
881+ rLambda1405.fill (HIST (" hRecoL1405" ), 2 ., lambda1405Cand.pt ()); // Has kink decay in MC
880882
881883 if (std::abs (mcTrackPi.pdgCode ()) != 211 ) {
882884 LOG (info) << " Skipping candidate due to bachelor Pi not being a pion in MC: "
883885 << " Bachelor Pi PDG code: " << mcTrackPi.pdgCode ();
884886 continue ; // Skip if not a valid pion candidate
885887 }
886- rLambda1405.fill (HIST (" hRecoL1405" ), 3 ., lambda1405Cand.pt ()); // Has bach pi
888+ rLambda1405.fill (HIST (" hRecoL1405" ), 3 ., lambda1405Cand.pt ()); // Has bach pi
887889
888890 if (!mcTrackSigma.has_mothers () || !mcTrackPi.has_mothers ()) {
889891 LOG (info) << " Skipping candidate due to missing mothers in MC: "
890892 << " Sigma has mothers: " << mcTrackSigma.has_mothers () << " , "
891893 << " Pi has mothers: " << mcTrackPi.has_mothers ();
892894 continue ; // Skip if no mothers found
893895 }
894- rLambda1405.fill (HIST (" hRecoL1405" ), 4 ., lambda1405Cand.pt ()); // Has mothers for Sigma and Pi
896+ rLambda1405.fill (HIST (" hRecoL1405" ), 4 ., lambda1405Cand.pt ()); // Has mothers for Sigma and Pi
895897
896898 // check that labpi and labsigma have the same mother (a lambda1405 candidate)
897899 int lambda1405Id = -1 ;
@@ -908,7 +910,7 @@ struct lambda1405analysis {
908910 LOG (info) << " Skipping candidate due to Sigma and pion not sharing the same lambda1405 candidate" ;
909911 continue ; // Skip if the Sigma and pion do not share the same lambda1405 candidate
910912 }
911- rLambda1405.fill (HIST (" hRecoL1405" ), 4 ., lambda1405Cand.pt ()); // Has same mother
913+ rLambda1405.fill (HIST (" hRecoL1405" ), 4 ., lambda1405Cand.pt ()); // Has same mother
912914
913915 auto lambda1405Mother = particlesMC.rawIteratorAt (lambda1405Id);
914916 float lambda1405Mass = std::sqrt (lambda1405Mother.e () * lambda1405Mother.e () - lambda1405Mother.p () * lambda1405Mother.p ());
0 commit comments