Skip to content

Commit

Permalink
[PWGLF] adding configurable to test flow and polarization (AliceO2Gro…
Browse files Browse the repository at this point in the history
…up#8184)

Co-authored-by: junleekim <[email protected]>
Co-authored-by: ALICE Action Bot <[email protected]>
  • Loading branch information
3 people authored Oct 29, 2024
1 parent 211deee commit 72bf3a9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions PWGLF/Tasks/Strangeness/lambdapolarization.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@ struct lambdapolarization {
Configurable<std::string> cfgQvecRefAName{"cfgQvecRefAName", "TPCpos", "The name of detector for reference A"};
Configurable<std::string> cfgQvecRefBName{"cfgQvecRefBName", "TPCneg", "The name of detector for reference B"};

Configurable<bool> cfgPhiDepStudy{"cfgPhiDepStudy", false, "cfg for phi dependent study"};
Configurable<float> cfgPhiDepSig{"cfgPhiDepSig", 0.2, "cfg for significance on phi dependent study"};

Configurable<bool> cfgShiftCorr{"cfgShiftCorr", false, "additional shift correction"};
Configurable<bool> cfgShiftCorrDef{"cfgShiftCorrDef", false, "additional shift correction definition"};
Configurable<std::string> cfgShiftPath{"cfgShiftPath", "Users/j/junlee/Qvector/QvecCalib/Shift", "Path for Shift"};
Expand Down Expand Up @@ -549,6 +552,10 @@ struct lambdapolarization {
relphi = TVector2::Phi_0_2pi(static_cast<float>(nmode) * (LambdaVec.Phi() - psidefFT0C - deltapsiFT0C));
}

if (cfgPhiDepStudy && cfgPhiDepSig * std::abs(TMath::Sin(relphi)) > gRandom->Uniform(0, 1)) {
continue;
}

if (nmode == 2) { ////////////
if (LambdaTag) {
histos.fill(HIST("psi2/h_lambda_cos"), v0.mLambda(), v0.pt(), angle, centrality, relphi);
Expand Down

0 comments on commit 72bf3a9

Please sign in to comment.