@@ -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