@@ -345,6 +345,10 @@ struct HfEventSelectionMc {
345345 // histogram names
346346 static constexpr char nameHistGenCollisionsCent[] = " hGenCollisionsCent" ;
347347 std::shared_ptr<TH1> hGenCollisionsCent;
348+ static constexpr char nameHistRecCollisionsCentMc[] = " hRecCollisionsCentMc" ;
349+ std::shared_ptr<TH1> hRecCollisionsCentMc;
350+ static constexpr char nameHistNSplitVertices[] = " hNSplitVertices" ;
351+ std::shared_ptr<TH1> hNSplitVertices;
348352 static constexpr char nameHistParticles[] = " hParticles" ;
349353 std::shared_ptr<TH1> hParticles;
350354
@@ -353,6 +357,8 @@ struct HfEventSelectionMc {
353357 void addHistograms (o2::framework::HistogramRegistry& registry)
354358 {
355359 hGenCollisionsCent = registry.add <TH1>(nameHistGenCollisionsCent, " HF event counter;T0M;# of generated collisions" , {o2::framework::HistType::kTH1D , {{100 , 0 ., 100 .}}});
360+ hRecCollisionsCentMc = registry.add <TH1>(nameHistRecCollisionsCentMc, " HF event counter;T0M;# of reconstructed collisions" , {o2::framework::HistType::kTH1D , {{100 , 0 ., 100 .}}});
361+ hNSplitVertices = registry.add <TH1>(nameHistNSplitVertices, " HF split vertices counter;;# of reconstructed collisions per mc collision" , {o2::framework::HistType::kTH1D , {{4 , 1 ., 5 .}}});
356362 hParticles = registry.add <TH1>(nameHistParticles, " HF particle counter;;# of accepted particles" , {o2::framework::HistType::kTH1D , {axisEvents}});
357363 // Puts labels on the collision monitoring histogram.
358364 setEventRejectionLabels (hParticles);
@@ -428,7 +434,7 @@ struct HfEventSelectionMc {
428434 // / \param collision analysed collision
429435 // / \param rejectionMask bitmask storing the info about which ev. selections are not satisfied by the collision
430436 template <o2::hf_centrality::CentralityEstimator centEstimator, typename Coll>
431- void fillHistograms (Coll const & mcCollision, const uint16_t rejectionMask)
437+ void fillHistograms (Coll const & mcCollision, const uint16_t rejectionMask, int nSplitColl = 0 )
432438 {
433439 hParticles->Fill (EventRejection::None);
434440
@@ -444,6 +450,13 @@ struct HfEventSelectionMc {
444450 }
445451 hParticles->Fill (reason);
446452 }
453+
454+ if constexpr (centEstimator == o2::hf_centrality::CentralityEstimator::FT0M) {
455+ hNSplitVertices->Fill (nSplitColl);
456+ for (int nColl = 0 ; nColl < nSplitColl; nColl++) {
457+ hRecCollisionsCentMc->Fill (mcCollision.centFT0M ());
458+ }
459+ }
447460 }
448461};
449462} // namespace o2::hf_evsel
0 commit comments