Skip to content

Commit 72bf3a9

Browse files
jikim1290junleekimalibuild
authored
[PWGLF] adding configurable to test flow and polarization (#8184)
Co-authored-by: junleekim <junleekim@maccbookjunlee2024.dyndns.cern.ch> Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
1 parent 211deee commit 72bf3a9

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

PWGLF/Tasks/Strangeness/lambdapolarization.cxx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,9 @@ struct lambdapolarization {
121121
Configurable<std::string> cfgQvecRefAName{"cfgQvecRefAName", "TPCpos", "The name of detector for reference A"};
122122
Configurable<std::string> cfgQvecRefBName{"cfgQvecRefBName", "TPCneg", "The name of detector for reference B"};
123123

124+
Configurable<bool> cfgPhiDepStudy{"cfgPhiDepStudy", false, "cfg for phi dependent study"};
125+
Configurable<float> cfgPhiDepSig{"cfgPhiDepSig", 0.2, "cfg for significance on phi dependent study"};
126+
124127
Configurable<bool> cfgShiftCorr{"cfgShiftCorr", false, "additional shift correction"};
125128
Configurable<bool> cfgShiftCorrDef{"cfgShiftCorrDef", false, "additional shift correction definition"};
126129
Configurable<std::string> cfgShiftPath{"cfgShiftPath", "Users/j/junlee/Qvector/QvecCalib/Shift", "Path for Shift"};
@@ -549,6 +552,10 @@ struct lambdapolarization {
549552
relphi = TVector2::Phi_0_2pi(static_cast<float>(nmode) * (LambdaVec.Phi() - psidefFT0C - deltapsiFT0C));
550553
}
551554

555+
if (cfgPhiDepStudy && cfgPhiDepSig * std::abs(TMath::Sin(relphi)) > gRandom->Uniform(0, 1)) {
556+
continue;
557+
}
558+
552559
if (nmode == 2) { ////////////
553560
if (LambdaTag) {
554561
histos.fill(HIST("psi2/h_lambda_cos"), v0.mLambda(), v0.pt(), angle, centrality, relphi);

0 commit comments

Comments
 (0)