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 Jan 29, 2024
1 parent 8b65b4d commit d37c008
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions PWGLF/TableProducer/lambdakzerobuilder.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,8 @@ struct lambdakzeroBuilder {
Configurable<float> massWindowSafetyMargin{"massWindowSafetyMargin", 0.001, "Extra mass window safety margin"};

// apply lifetime cuts to K0Short and Lambda candidates
// unit of measurement: centimeters
// lifetime of Lambda ~7.9cm but keep in mind feeddown from cascades
// unit of measurement: centimeters
// lifetime of Lambda ~7.9cm but keep in mind feeddown from cascades
// lifetime of K0Short ~2.5cm, no feeddown and plenty to cut
static constexpr float defaultLifetimeCuts[1][2] = {{1e+6, 1e+6}};
Configurable<LabeledArray<float>> lifetimecut{"lifetimecut", {defaultLifetimeCuts[0], 2, {"lifetimecutLambda", "lifetimecutK0S"}}, "lifetimecut"};
Expand Down Expand Up @@ -738,10 +738,10 @@ struct lambdakzeroBuilder {
return false; // reject - daughters have too large eta to be reliable for MC corrections
}

// calculate proper lifetime
// m*L/p for each hypothesis
float lML2P_K0Short = o2::constants::physics::MassKaonNeutral*lLengthTraveled/lPtotal;
float lML2P_Lambda = o2::constants::physics::MassLambda*lLengthTraveled/lPtotal;
// calculate proper lifetime
// m*L/p for each hypothesis
float lML2P_K0Short = o2::constants::physics::MassKaonNeutral * lLengthTraveled / lPtotal;
float lML2P_Lambda = o2::constants::physics::MassLambda * lLengthTraveled / lPtotal;

// Passes momentum window check
statisticsRegistry.v0stats[kWithinMomentumRange]++;
Expand All @@ -762,10 +762,10 @@ struct lambdakzeroBuilder {
bool desiredMassAntiLambda = false;

if (massWindownumberOfSigmas > 1e+3) {
desiredMassK0Short = true; // safety fallback
desiredMassLambda = true; // safety fallback
desiredMassK0Short = true; // safety fallback
desiredMassLambda = true; // safety fallback
desiredMassAntiLambda = true; // safety fallback
}else{
} else {
desiredMassK0Short = TMath::Abs(v0candidate.k0ShortMass - o2::constants::physics::MassKaonNeutral) < massWindownumberOfSigmas * getMassSigmaK0Short(lPt) + massWindowSafetyMargin;
desiredMassLambda = TMath::Abs(v0candidate.lambdaMass - o2::constants::physics::MassLambda) < massWindownumberOfSigmas * getMassSigmaLambda(lPt) + massWindowSafetyMargin;
desiredMassAntiLambda = TMath::Abs(v0candidate.antiLambdaMass - o2::constants::physics::MassLambda) < massWindownumberOfSigmas * getMassSigmaLambda(lPt) + massWindowSafetyMargin;
Expand All @@ -778,8 +778,8 @@ struct lambdakzeroBuilder {
bool dEdxAntiLambda = V0.isdEdxAntiLambda() || !massWindowWithTPCPID;

// check proper lifetime if asked for
bool passML2P_K0Short = lML2P_K0Short < lifetimecut->get("lifetimecutK0S") || lifetimecut->get("lifetimecutK0S") > 1000;
bool passML2P_Lambda = lML2P_Lambda < lifetimecut->get("lifetimecutLambda") || lifetimecut->get("lifetimecutLambda") > 1000;
bool passML2P_K0Short = lML2P_K0Short < lifetimecut->get("lifetimecutK0S") || lifetimecut->get("lifetimecutK0S") > 1000;
bool passML2P_Lambda = lML2P_Lambda < lifetimecut->get("lifetimecutLambda") || lifetimecut->get("lifetimecutLambda") > 1000;

if (passML2P_K0Short && dEdxK0Short && desiredMassK0Short)
keepCandidate = true;
Expand Down

0 comments on commit d37c008

Please sign in to comment.