@@ -280,8 +280,8 @@ struct FlowGenericFramework {
280280 TF1* fMultGlobalT0ACutHigh = nullptr ;
281281
282282 // Track selection - pt-phi cuts
283- TF1* fPhiCutLow ;
284- TF1* fPhiCutHigh ;
283+ TF1* fPhiCutLow = nullptr ;
284+ TF1* fPhiCutHigh = nullptr ;
285285
286286 void init (InitContext const &)
287287 {
@@ -334,11 +334,11 @@ struct FlowGenericFramework {
334334 }
335335 AxisSpec nchAxis = {nchbinning, " N_{ch}" };
336336 AxisSpec bAxis = {200 , 0 , 20 , " #it{b}" };
337- AxisSpec t0cAxis = {1000 , 0 , 10000 , " N_{ch} (T0C)" };
338- AxisSpec t0aAxis = {300 , 0 , 30000 , " N_{ch} (T0A)" };
339- AxisSpec v0aAxis = {800 , 0 , 80000 , " N_{ch} (V0A)" };
340- AxisSpec multpvAxis = {600 , 0 , 600 , " N_{ch} (PV)" };
341- AxisSpec occAxis = {600 , 0 , 3000 , " occupancy" };
337+ AxisSpec t0cAxis = {1000 , 0 , 50000 , " N_{ch} (T0C)" };
338+ AxisSpec t0aAxis = {1800 , 0 , 180000 , " N_{ch} (T0A)" };
339+ AxisSpec v0aAxis = {1800 , 0 , 180000 , " N_{ch} (V0A)" };
340+ AxisSpec multpvAxis = {3500 , 0 , 3500 , " N_{ch} (PV)" };
341+ AxisSpec occAxis = {500 , 0 , 5000 , " occupancy" };
342342 AxisSpec multAxis = (doprocessOnTheFly && !cfgUseNch) ? bAxis : (cfgUseNch) ? nchAxis
343343 : centAxis;
344344 AxisSpec dcaZAXis = {200 , -2 , 2 , " DCA_{z} (cm)" };
@@ -380,8 +380,8 @@ struct FlowGenericFramework {
380380 registry.add (" eventQA/before/PVTracks_centT0C" , " ; FT0C centrality (%); N_{PV}" , {HistType::kTH2D , {centAxis, multpvAxis}});
381381 registry.add (" eventQA/before/globalTracks_PVTracks" , " ; N_{PV}; N_{global}" , {HistType::kTH2D , {multpvAxis, nchAxis}});
382382 registry.add (" eventQA/before/globalTracks_multT0A" , " ; multT0A; N_{global}" , {HistType::kTH2D , {t0aAxis, nchAxis}});
383- registry.add (" eventQA/before/globalTracks_multV0A" , " ; multV0A; N_{global}" , {HistType::kTH2D , {t0aAxis , nchAxis}});
384- registry.add (" eventQA/before/multV0A_multT0A" , " ; multV0A; multT0A" , {HistType::kTH2D , {t0aAxis, t0aAxis }});
383+ registry.add (" eventQA/before/globalTracks_multV0A" , " ; multV0A; N_{global}" , {HistType::kTH2D , {v0aAxis , nchAxis}});
384+ registry.add (" eventQA/before/multV0A_multT0A" , " ; multV0A; multT0A" , {HistType::kTH2D , {t0aAxis, v0aAxis }});
385385 registry.add (" eventQA/before/multT0C_centT0C" , " ; multT0C; FT0C centrality (%)" , {HistType::kTH2D , {centAxis, t0cAxis}});
386386 registry.add (" eventQA/before/occ_mult_cent" , " ; occupancy; N_{ch}; centrality (%)" , {HistType::kTH3D , {occAxis, nchAxis, centAxis}});
387387 registry.addClone (" eventQA/before/" , " eventQA/after/" );
@@ -633,7 +633,7 @@ struct FlowGenericFramework {
633633 }
634634
635635 template <typename TCollision>
636- bool eventSelected (TCollision collision, const int & multTrk, const float & centrality, const int & run)
636+ bool eventSelected (TCollision collision, const int multTrk, const float & centrality, const int run)
637637 {
638638 // Cut on trigger alias
639639 if (cfgEventCutFlags.cfgTVXinTRD ) {
@@ -686,7 +686,7 @@ struct FlowGenericFramework {
686686 }
687687
688688 template <typename TCollision>
689- bool selectMultiplicityCorrelation (TCollision collision, const int & multTrk, const float & centrality, const int & run)
689+ bool selectMultiplicityCorrelation (TCollision collision, const int multTrk, const float & centrality, const int run)
690690 {
691691 auto multNTracksPV = collision.multNTracksPV ();
692692 if (multNTracksPV < fMultPVCutLow ->Eval (centrality))
@@ -715,7 +715,7 @@ struct FlowGenericFramework {
715715 }
716716
717717 template <typename TTrack>
718- bool trackSelected (TTrack track, const int & field)
718+ bool trackSelected (TTrack track, const int field)
719719 {
720720 if (cfgTrackCuts.cfgTPCSectorCut ) {
721721 double phimodn = track.phi ();
@@ -754,7 +754,7 @@ struct FlowGenericFramework {
754754 };
755755
756756 template <typename TTrack>
757- void fillWeights (const TTrack track, const double vtxz, const int & pid_index, const int & run)
757+ void fillWeights (const TTrack track, const double vtxz, const int pid_index, const int run)
758758 {
759759 if (cfgUsePID) {
760760 double ptpidmins[] = {o2::analysis::gfw::ptpoilow, o2::analysis::gfw::ptpoilow, 0.3 , 0.5 }; // min pt for ch, pi, ka, pr
@@ -795,7 +795,7 @@ struct FlowGenericFramework {
795795 return ;
796796 }
797797
798- void createRunByRunHistograms (const int & run)
798+ void createRunByRunHistograms (const int run)
799799 {
800800 AxisSpec phiAxis = {o2::analysis::gfw::phibins, o2::analysis::gfw::philow, o2::analysis::gfw::phiup, " #phi" };
801801 AxisSpec phiModAxis = {100 , 0 , constants::math::PI / 9 , " fmod(#varphi,#pi/9)" };
@@ -883,7 +883,7 @@ struct FlowGenericFramework {
883883 }
884884
885885 template <DataType dt, typename TCollision, typename TTracks>
886- void processCollision (TCollision collision, TTracks tracks, const float & centrality, const int & field, const int & run)
886+ void processCollision (TCollision collision, TTracks tracks, const float & centrality, const int field, const int run)
887887 {
888888 if (tracks.size () < 1 )
889889 return ;
@@ -974,7 +974,7 @@ struct FlowGenericFramework {
974974 };
975975
976976 template <typename TTrack>
977- inline void processTrack (TTrack const & track, const float & vtxz, const int & field, const int & run, DensityCorr densitycorrections, AcceptedTracks& acceptedTracks)
977+ inline void processTrack (TTrack const & track, const float & vtxz, const int field, const int run, DensityCorr densitycorrections, AcceptedTracks& acceptedTracks)
978978 {
979979 if constexpr (framework::has_type_v<aod::mctracklabel::McParticleId, typename TTrack::all_columns>) {
980980 if (track.mcParticleId () < 0 || !(track.has_mcParticle ()))
@@ -1297,9 +1297,31 @@ struct FlowGenericFramework {
12971297 if (cfgRunByRun)
12981298 createRunByRunHistograms (run);
12991299 }
1300+
1301+ registry.fill (HIST (" eventQA/eventSel" ), 0.5 );
1302+ if (cfgRunByRun)
1303+ th1sList[run][hEventSel]->Fill (0.5 );
1304+
13001305 if (!collision.sel8 ())
13011306 return ;
1307+
1308+ registry.fill (HIST (" eventQA/eventSel" ), 1.5 );
1309+ if (cfgRunByRun)
1310+ th1sList[run][hEventSel]->Fill (1.5 );
1311+
13021312 const auto centrality = getCentrality (collision);
1313+
1314+ if (cfgDoOccupancySel) {
1315+ int occupancy = collision.trackOccupancyInTimeRange ();
1316+ registry.fill (HIST (" eventQA/before/occ_mult_cent" ), occupancy, tracks.size (), centrality);
1317+ if (occupancy < 0 || occupancy > cfgOccupancySelection)
1318+ return ;
1319+ registry.fill (HIST (" eventQA/after/occ_mult_cent" ), occupancy, tracks.size (), centrality);
1320+ }
1321+ registry.fill (HIST (" eventQA/eventSel" ), 2.5 );
1322+ if (cfgRunByRun)
1323+ th1sList[run][hEventSel]->Fill (2.5 );
1324+
13031325 if (cfgFillQA)
13041326 fillEventQA<kBefore >(collision, tracks);
13051327 if (!eventSelected (collision, tracks.size (), centrality, run))
0 commit comments