@@ -93,7 +93,7 @@ struct epvector {
9393 Configurable<float > cfgCutDCAz{" cfgCutDCAz" , 2 .0f , " DCAz range for tracks" };
9494 Configurable<int > cfgITScluster{" cfgITScluster" , 4 , " Number of ITS cluster" };
9595 // Configurable<int> cfgTPCcluster{"cfgTPCcluster", 70, "Number of TPC cluster"};
96- Configurable<int > cfgHarmonic{" cfgHarmonic" , 2 , " Harmonic for event plane calculation" };
96+ Configurable<float > cfgHarmonic{" cfgHarmonic" , 2 , " Harmonic for event plane calculation" };
9797 Configurable<bool > useGainCallib{" useGainCallib" , true , " use gain calibration" };
9898 Configurable<bool > useRecentere{" useRecentere" , true , " use Recentering" };
9999 Configurable<bool > useShift{" useShift" , false , " use Shift" };
@@ -229,10 +229,10 @@ struct epvector {
229229 return TMath::ATan2 (chPos.Y () + offsetY, chPos.X () + offsetX);
230230 }
231231
232- double GetPhiInRange (double phi)
232+ double GetPhiInRange (double phi, double harmonic = 2 )
233233 {
234234 double result = phi;
235- double period = 2 . * TMath::Pi () / cfgHarmonic. value ;
235+ double period = 2 . * TMath::Pi () / harmonic ;
236236 while (result < 0 ) {
237237 result = result + period;
238238 }
@@ -242,10 +242,10 @@ struct epvector {
242242 return result;
243243 }
244244
245- double GetDeltaPsiSubInRange (double psi1, double psi2)
245+ double GetDeltaPsiSubInRange (double psi1, double psi2, double harmonic = 2 )
246246 {
247247 double delta = psi1 - psi2;
248- double period = TMath::Pi () / cfgHarmonic. value ;
248+ double period = TMath::Pi () / harmonic ;
249249 if (TMath::Abs (delta) > period) {
250250 if (delta > 0 .)
251251 delta -= 2 . * period;
0 commit comments