Skip to content

Commit bae23c8

Browse files
committed
Fold delta phi range
1 parent b016df6 commit bae23c8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

PWGLF/Tasks/Strangeness/lambdaspincorrderived.cxx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ struct lambdaspincorrderived {
9696
Configurable<int> rngSeed{"rngSeed", 12345, "Seed for random mixing (reproducible)"};
9797
std::mt19937 rng{12345};
9898
// Lambda selection ////////////
99-
Configurable<unsigned> harmonic{"harmonic", 1, "Harmonic delta phi"};
99+
Configurable<unsigned> harmonic{"harmonic", 1, "Harmonic phi"};
100+
Configurable<unsigned> harmonicDphi{"harmonicDphi", 2, "Harmonic delta phi"};
100101
Configurable<bool> useweight{"useweight", 0, "Use weight"};
101102
Configurable<bool> usebothweight{"usebothweight", 1, "Use both weight"};
102103
// Configurable<bool> useNUA{"useNUA", 0, "Use NUA weight"};
@@ -376,7 +377,7 @@ struct lambdaspincorrderived {
376377
double deta2 = particle2.Eta();
377378

378379
double deta_pair = std::abs(deta1 - deta2);
379-
double dphi_pair = std::abs(dphi1 - dphi2);
380+
double dphi_pair = RecoDecay::constrainAngle(particle1.Phi() - particle2.Phi(), 0.0F, harmonicDphi);
380381

381382
double deltaR = TMath::Sqrt(deta_pair * deta_pair + dphi_pair * dphi_pair);
382383
double deltaRap = std::abs(particle1.Rapidity() - particle2.Rapidity());

0 commit comments

Comments
 (0)