@@ -278,6 +278,7 @@ struct femtoDreamProducerTask {
278278 std::string prefix = std::string(" epCal" );
279279 Configurable<bool > ConfFillFlowQA{" ConfFillFlowQA" , false , " Evt sel: fill flow/event-plane related observables" };
280280 Configurable<bool > ConfQnSeparation{" ConfQnSeparation" , false , " Evt sel: do qn separation of events" };
281+ Configurable<int > ConfHarmonicOrder{" ConfHarmonicOrder" , 2 , " harmonic order for event plane calculation" };
281282 Configurable<std::vector<float >> ConfQnBinSeparator{" ConfQnBinSeparator" , std::vector<float >{-999 .f , -999 .f , -999 .f }, " qn bin separator" };
282283 Configurable<bool > ConfDoCumlant{" ConfDoCumlant" , false , " do cumulant for flow calculation" };
283284 Configurable<float > ConfCentralityMax{" ConfCentralityMax" , 100 .f , " Evt sel: Maximum Centrality cut" };
@@ -782,7 +783,7 @@ struct femtoDreamProducerTask {
782783 }
783784
784785 if constexpr (doFlow) {
785- fillCollisionsFlow (col, tracks, mult, spher, multNtr);
786+ fillCollisionsFlow (col, tracks, mult, spher, multNtr, epCal. ConfHarmonicOrder );
786787 }
787788
788789 std::vector<int > childIDs = {0 , 0 }; // these IDs are necessary to keep track of the children
@@ -1134,10 +1135,10 @@ struct femtoDreamProducerTask {
11341135 }
11351136
11361137 template <typename CollisionType, typename TrackType>
1137- void fillCollisionsFlow (CollisionType const & col, TrackType const & tracks, float mult, float spher, float multNtr)
1138+ void fillCollisionsFlow (CollisionType const & col, TrackType const & tracks, float mult, float spher, float multNtr, int EPHarmonic )
11381139 {
11391140 float myqn = colCuts.computeqnVec (col);
1140- float myEP = TMath::RadToDeg () * colCuts.computeEP (col, 2 );
1141+ float myEP = TMath::RadToDeg () * colCuts.computeEP (col, EPHarmonic );
11411142 // psi from rad(0-pi) to deg, in table psi would be in deg,from 0-180
11421143
11431144 if ((myqn >= 0 && myqn < 1e6 ) || (myEP >= 0 && myEP < 180 )) {
0 commit comments