@@ -177,6 +177,7 @@ struct sigma0builder {
177177 ConfigurableAxis axisRadius{" axisRadius" , {240 , 0 .0f , 120 .0f }, " V0 radius (cm)" };
178178 ConfigurableAxis axisRapidity{" axisRapidity" , {100 , -2 .0f , 2 .0f }, " Rapidity" };
179179 ConfigurableAxis axisCandSel{" axisCandSel" , {13 , 0 .5f , +13 .5f }, " Candidate Selection" };
180+ ConfigurableAxis axisMonteCarloNch{" axisMonteCarloNch" , {300 , 0 .0f , 3000 .0f }, " N_{ch} MC" };
180181
181182 int nSigmaCandidates = 0 ;
182183 void init (InitContext const &)
@@ -294,6 +295,8 @@ struct sigma0builder {
294295
295296 histos.add (" h3dMassSigmasBeforeSel" , " h3dMassSigmasBeforeSel" , kTH3F , {axisCentrality, axisPt, axisSigmaMass});
296297 histos.add (" h3dMassSigmasAfterSel" , " h3dMassSigmasAfterSel" , kTH3F , {axisCentrality, axisPt, axisSigmaMass});
298+
299+ histos.add (" Gen/hNEventsNch" , " hNEventsNch" , kTH1D , {axisMonteCarloNch});
297300 }
298301
299302 template <typename TCollision>
@@ -986,6 +989,12 @@ struct sigma0builder {
986989 }
987990 }
988991
992+ // Simulated processing in Run 3 (subscribes to MC information too)
993+ void processGeneratedCollRun3 (soa::Join<aod::StraMCCollisions, aod::StraMCCollMults>::iterator const & mcCollision)
994+ {
995+ histos.fill (HIST (" Gen/hNEventsNch" ), mcCollision.multMCNParticlesEta05 ());
996+ }
997+
989998 PROCESS_SWITCH (sigma0builder, processMonteCarlo, " process as if MC data" , false );
990999 PROCESS_SWITCH (sigma0builder, processRealData, " process as if real data" , true );
9911000};
0 commit comments