@@ -219,7 +219,7 @@ class FemtoDreamCollisionSelection
219219 mHistogramQn = registry;
220220 mHistogramQn ->add (" Event/centFT0CBeforeQn" , " ; cent" , kTH1F , {{10 , 0 , 100 }});
221221 mHistogramQn ->add (" Event/centFT0CAfterQn" , " ; cent" , kTH1F , {{10 , 0 , 100 }});
222- mHistogramQn ->add (" Event/centVsqn" , " ; cent; qn" , kTH2F , {{10 , 0 , 100 }, {100 , 0 , 1000 }});
222+ mHistogramQn ->add (" Event/centVsqn" , " ; cent; qn" , kTH2F , {{10 , 0 , 100 }, {1000 , 0 , 1000 }});
223223 mHistogramQn ->add (" Event/centVsqnVsSpher" , " ; cent; qn; Sphericity" , kTH3F , {{10 , 0 , 100 }, {100 , 0 , 1000 }, {100 , 0 , 1 }});
224224 mHistogramQn ->add (" Event/qnBin" , " ; qnBin; entries" , kTH1F , {{20 , 0 , 20 }});
225225 mHistogramQn ->add (" Event/psiEP" , " ; #Psi_{EP} (deg); entries" , kTH1F , {{100 , 0 , 180 }});
@@ -428,8 +428,8 @@ class FemtoDreamCollisionSelection
428428 // / \param doQnSeparation to fill flow in divied qn bins
429429 // / \param qnBin should be <int> in 0-9
430430 // / \param fEtaGap eta gap for flow cumulant
431- template <typename T1, typename T2>
432- void doCumulants (T1 const & col, T2 const & tracks, float centrality, bool doQnSeparation = false , int numQnBins = 10 , float fEtaGap = 0 .5f , float ptMin = 0 .2f , float ptMax = 5 .0f , float harmonic = 2 .0f )
431+ template <typename T1, typename T2, typename TC >
432+ void doCumulants (T1 const & col, T2 const & tracks, TC& trackCuts, float centrality, bool doQnSeparation = false , int numQnBins = 10 , float fEtaGap = 0 .5f , float ptMin = 0 .2f , float ptMax = 5 .0f , float harmonic = 2 .0f )
433433 {
434434 int numOfTracks = col.numContrib ();
435435 if (numOfTracks < 3 )
@@ -441,13 +441,16 @@ class FemtoDreamCollisionSelection
441441 int nA = 0 , nB = 0 ;
442442
443443 for (auto const & trk : tracks) {
444+ if (!trackCuts.isSelectedMinimal (trk)) {
445+ continue ;
446+ }
444447 const double pt = trk.pt ();
445448 const double eta = trk.eta ();
446449 if (pt < ptMin || pt > ptMax) {
447450 continue ;
448451 }
449452
450- const double w = 1.0 ; // TODO: NUA/NUE weight if you want
453+ const double w = 1.0 ; // TODO: NUA/NUE weight
451454 const double phi = trk.phi ();
452455 const double c = w * TMath::Cos (harmonic * phi);
453456 const double s = w * TMath::Sin (harmonic * phi);
0 commit comments