Skip to content

Commit

Permalink
Please consider the following formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
alibuild committed Nov 8, 2023
1 parent 6cbf0e6 commit eeb0017
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
10 changes: 5 additions & 5 deletions Tutorials/PWGLF/Resonance/resonances_step1.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ struct resonances_tutorial {
Configurable<int> nBins{"nBins", 100, "N bins in all histos"};
// Configurable for min pT cut
Configurable<double> cMinPtcut{"cMinPtcut", 0.15, "Track minium pt cut"};

// Track selection
// primary track condition
Configurable<bool> cfgPrimaryTrack{"cfgPrimaryTrack", true, "Primary track selection"}; // kGoldenChi2 | kDCAxy | kDCAz
Expand Down Expand Up @@ -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);
Expand Down
14 changes: 7 additions & 7 deletions Tutorials/PWGLF/Resonance/resonances_step2.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ struct resonances_tutorial {
Configurable<int> nBins{"nBins", 100, "N bins in all histos"};
// Configurable for min pT cut
Configurable<double> cMinPtcut{"cMinPtcut", 0.15, "Track minium pt cut"};

// Track selection
// primary track condition
Configurable<bool> cfgPrimaryTrack{"cfgPrimaryTrack", true, "Primary track selection"}; // kGoldenChi2 | kDCAxy | kDCAz
Expand Down Expand Up @@ -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);
Expand All @@ -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);
Expand Down Expand Up @@ -197,7 +197,7 @@ struct resonances_tutorial {
SameKindPair<aod::ResoCollisions, aod::ResoTracks, BinningTypeVtxZT0M> 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<false, true>(collision1, tracks1, tracks2); // Fill histograms, no MC, mixing
fillHistograms<false, true>(collision1, tracks1, tracks2); // Fill histograms, no MC, mixing
}
};
PROCESS_SWITCH(resonances_tutorial, processME, "Process EventMixing for combinatorial background", false); // Event Mixing
Expand Down

0 comments on commit eeb0017

Please sign in to comment.