diff --git a/Tutorials/PWGLF/Resonance/resonances_step1.cxx b/Tutorials/PWGLF/Resonance/resonances_step1.cxx index d5059005d2e..d681fa1dc3f 100644 --- a/Tutorials/PWGLF/Resonance/resonances_step1.cxx +++ b/Tutorials/PWGLF/Resonance/resonances_step1.cxx @@ -35,7 +35,7 @@ struct resonances_tutorial { Configurable nBins{"nBins", 100, "N bins in all histos"}; // Configurable for min pT cut Configurable cMinPtcut{"cMinPtcut", 0.15, "Track minium pt cut"}; - + // Track selection // primary track condition Configurable cfgPrimaryTrack{"cfgPrimaryTrack", true, "Primary track selection"}; // kGoldenChi2 | kDCAxy | kDCAz @@ -138,19 +138,19 @@ struct resonances_tutorial { } daughter1.SetXYZM(track1.px(), track1.py(), track1.pz(), massKa); // set the daughter1 4-momentum daughter2.SetXYZM(track2.px(), track2.py(), track2.pz(), massKa); // set the daughter2 4-momentum - mother = daughter1 + daughter2; // calculate the mother 4-momentum + mother = daughter1 + daughter2; // calculate the mother 4-momentum mass = mother.M(); pT = mother.Pt(); rapidity = mother.Rapidity(); paircharge = track1.sign() * track2.sign(); - + if (std::abs(rapidity) > 0.5) continue; // rapidity cut - + if (paircharge < 0) { // unlike sign histos.fill(HIST("h3PhiInvMassUnlikeSign"), multiplicity, pT, mass); histos.fill(HIST("h1PhiInvMassUnlikeSign"), mass); - } else { // like sign + } else { // like sign if (track1.sign() > 0 && track2.sign() > 0) { // positive histos.fill(HIST("h3PhiInvMassLikeSignPP"), multiplicity, pT, mass); histos.fill(HIST("h1PhiInvMassLikeSignPP"), mass); diff --git a/Tutorials/PWGLF/Resonance/resonances_step2.cxx b/Tutorials/PWGLF/Resonance/resonances_step2.cxx index 0c6eeb751a5..7fb1d5f3665 100644 --- a/Tutorials/PWGLF/Resonance/resonances_step2.cxx +++ b/Tutorials/PWGLF/Resonance/resonances_step2.cxx @@ -35,7 +35,7 @@ struct resonances_tutorial { Configurable nBins{"nBins", 100, "N bins in all histos"}; // Configurable for min pT cut Configurable cMinPtcut{"cMinPtcut", 0.15, "Track minium pt cut"}; - + // Track selection // primary track condition Configurable cfgPrimaryTrack{"cfgPrimaryTrack", true, "Primary track selection"}; // kGoldenChi2 | kDCAxy | kDCAz @@ -145,20 +145,20 @@ struct resonances_tutorial { } daughter1.SetXYZM(track1.px(), track1.py(), track1.pz(), massKa); // set the daughter1 4-momentum daughter2.SetXYZM(track2.px(), track2.py(), track2.pz(), massKa); // set the daughter2 4-momentum - mother = daughter1 + daughter2; // calculate the mother 4-momentum + mother = daughter1 + daughter2; // calculate the mother 4-momentum mass = mother.M(); pT = mother.Pt(); rapidity = mother.Rapidity(); paircharge = track1.sign() * track2.sign(); - + if (std::abs(rapidity) > 0.5) continue; // rapidity cut - + if constexpr (!IsMix) { // Same event if (paircharge < 0) { // unlike sign histos.fill(HIST("h3PhiInvMassUnlikeSign"), multiplicity, pT, mass); histos.fill(HIST("h1PhiInvMassUnlikeSign"), mass); - } else { // like sign + } else { // like sign if (track1.sign() > 0 && track2.sign() > 0) { // positive histos.fill(HIST("h3PhiInvMassLikeSignPP"), multiplicity, pT, mass); histos.fill(HIST("h1PhiInvMassLikeSignPP"), mass); @@ -167,7 +167,7 @@ struct resonances_tutorial { histos.fill(HIST("h1PhiInvMassLikeSignMM"), mass); } } - } else { // Mixed event + } else { // Mixed event if (paircharge < 0) { // unlike sign histos.fill(HIST("h3PhiInvMassMixed"), multiplicity, pT, mass); histos.fill(HIST("h1PhiInvMassMixed"), mass); @@ -197,7 +197,7 @@ struct resonances_tutorial { SameKindPair pairs{colBinning, nEvtMixing, -1, collisions, tracksTuple, &cache}; // -1 is the number of the bin to skip for (auto& [collision1, tracks1, collision2, tracks2] : pairs) { // loop over all pairs - fillHistograms(collision1, tracks1, tracks2); // Fill histograms, no MC, mixing + fillHistograms(collision1, tracks1, tracks2); // Fill histograms, no MC, mixing } }; PROCESS_SWITCH(resonances_tutorial, processME, "Process EventMixing for combinatorial background", false); // Event Mixing