@@ -152,6 +152,8 @@ struct multEstimator {
152152 std::shared_ptr<TH2 > Nch_vs_cent_vs_eta;
153153 std::shared_ptr<TH2 > Nch_vs_cent_vs_eta_conditional;
154154 std::shared_ptr<TH2 > tmp_histo_per_event;
155+ std::shared_ptr<TH1 > Events_vs_cent;
156+ std::shared_ptr<TH1 > Events_vs_cent_conditional;
155157
156158 void init (InitContext&)
157159 {
@@ -170,6 +172,9 @@ struct multEstimator {
170172 Nch_vs_cent_vs_eta_conditional = registry.add <TH2 >(" Nch_vs_cent_vs_eta_conditional" , " Nch_vs_cent_vs_eta_conditional" , kTH2F , {{100 , 0.0 , 100.0 , " cent" }, {200 , -1.0 , 1.0 , " deta" }});
171173 tmp_histo_per_event = std::make_shared<TH2F >(TH2F (" tmp_histo_per_event" , " tmp_histo_per_event" , 100 , 0.0 , 100.0 , 200 , -1.0 , 1.0 ));
172174
175+ Events_vs_cent = std::make_shared<TH1F >(TH1F (" Events_vs_cent" , " Events_vs_cent" , 100 , 0.0 , 100 .));
176+ Events_vs_cent_conditional = std::make_shared<TH1F >(TH1F (" Events_vs_cent_conditional" , " Events_vs_cent_conditional" , 100 , 0.0 , 100 .));
177+
173178 ITShisto = registry.add <TH2 >(Form (" nsigmaITS_PDG%i" , _particlePDG.value ), Form (" nsigmaITS_PDG%i" , _particlePDG.value ), kTH2F , {{100 , 0 ., 5 .}, {100 , -10 ., 10 .}});
174179 TPChisto = registry.add <TH2 >(Form (" nsigmaTPC_PDG%i" , _particlePDG.value ), Form (" nsigmaTPC_PDG%i" , _particlePDG.value ), kTH2F , {{100 , 0 ., 5 .}, {100 , -10 ., 10 .}});
175180 TOFhisto = registry.add <TH2 >(Form (" nsigmaTOF_PDG%i" , _particlePDG.value ), Form (" nsigmaTOF_PDG%i" , _particlePDG.value ), kTH2F , {{100 , 0 ., 5 .}, {100 , -10 ., 10 .}});
@@ -233,6 +238,7 @@ struct multEstimator {
233238 if (centValue < _centCut.value .first || centValue >= _centCut.value .second )
234239 return ;
235240
241+ Events_vs_cent->Fill (centValue);
236242 // ============================ dNch/deta no cuts ================================
237243
238244 int cadidates_counter = 0 ;
@@ -307,8 +313,10 @@ struct multEstimator {
307313 Nch_vs_cent_vs_eta->Add (tmp_histo_per_event.get ());
308314 if (Nch_vs_cent_vs_eta->GetEntries () != tot_counter)
309315 LOGF (fatal, " tot counter != entries" );
310- if (cadidates_counter >= _minNcandidates)
316+ if (cadidates_counter >= _minNcandidates) {
311317 Nch_vs_cent_vs_eta_conditional->Add (tmp_histo_per_event.get ());
318+ Events_vs_cent_conditional->Fill (centValue);
319+ }
312320
313321 tmp_histo_per_event->Reset ();
314322 if (tmp_histo_per_event->GetEntries ())
0 commit comments