@@ -107,7 +107,7 @@ struct NetchargeFluctuations {
107107 Configurable<float > itsChiCut{" itsChiCut" , 36 ., " ITS chi2 cluster cut" };
108108 Configurable<float > tpcChiCut{" tpcChiCut" , 4 ., " TPC chi2 cluster cut" };
109109 Configurable<float > centMin{" centMin" , 0 .0f , " cenrality min for delta eta" };
110- Configurable<float > centMax{" centMax" , 10 .0f , " cenrality max for delta eta" };
110+ Configurable<float > centMax{" centMax" , 5 .0f , " cenrality max for delta eta" };
111111 Configurable<int > cfgNSubsample{" cfgNSubsample" , 30 , " Number of subsamples for Error" };
112112 Configurable<int > deltaEta{" deltaEta" , 8 , " Delta eta bin count" };
113113 Configurable<double > threshold{" threshold" , 1e-6 , " Delta eta bin count" };
@@ -370,10 +370,18 @@ struct NetchargeFluctuations {
370370 histogramRegistry.add (" eff/hPt_hEta_np_gen" , " " , kTH2F , {ptAxis, etaAxis});
371371 histogramRegistry.add (" eff/hPt_nm_gen" , " " , kTH1F , {ptAxis});
372372 histogramRegistry.add (" eff/hPt_hEta_nm_gen" , " " , kTH2F , {ptAxis, etaAxis});
373+ histogramRegistry.add (" eff/cent/hPt_np_gen" , " " , kTH1F , {ptAxis});
374+ histogramRegistry.add (" eff/cent/hPt_hEta_np_gen" , " " , kTH2F , {ptAxis, etaAxis});
375+ histogramRegistry.add (" eff/cent/hPt_nm_gen" , " " , kTH1F , {ptAxis});
376+ histogramRegistry.add (" eff/cent/hPt_hEta_nm_gen" , " " , kTH2F , {ptAxis, etaAxis});
373377 histogramRegistry.add (" eff/hPt_np" , " " , kTH1F , {ptAxis});
374378 histogramRegistry.add (" eff/hPt_hEta_np" , " " , kTH2F , {ptAxis, etaAxis});
375379 histogramRegistry.add (" eff/hPt_nm" , " " , kTH1F , {ptAxis});
376380 histogramRegistry.add (" eff/hPt_hEta_nm" , " " , kTH2F , {ptAxis, etaAxis});
381+ histogramRegistry.add (" eff/cent/hPt_np" , " " , kTH1F , {ptAxis});
382+ histogramRegistry.add (" eff/cent/hPt_hEta_np" , " " , kTH2F , {ptAxis, etaAxis});
383+ histogramRegistry.add (" eff/cent/hPt_nm" , " " , kTH1F , {ptAxis});
384+ histogramRegistry.add (" eff/cent/hPt_hEta_nm" , " " , kTH2F , {ptAxis, etaAxis});
377385
378386 // QA histograms for multiplicity correlations
379387 histogramRegistry.add (" MultCorrelationPlots/globalTracks_PV_bef" , " " , {HistType::kTH2D , {nchAxis, nchAxis}});
@@ -781,9 +789,17 @@ struct NetchargeFluctuations {
781789 if (track.sign () == 1 ) {
782790 histogramRegistry.fill (HIST (" eff/hPt_np" ), track.pt ());
783791 histogramRegistry.fill (HIST (" eff/hPt_hEta_np" ), track.pt (), track.eta ());
792+ if (cent >= centMin && cent < centMax) {
793+ histogramRegistry.fill (HIST (" eff/cent/hPt_np" ), track.pt ());
794+ histogramRegistry.fill (HIST (" eff/cent/hPt_hEta_np" ), track.pt (), track.eta ());
795+ }
784796 } else if (track.sign () == -1 ) {
785797 histogramRegistry.fill (HIST (" eff/hPt_nm" ), track.pt ());
786798 histogramRegistry.fill (HIST (" eff/hPt_hEta_nm" ), track.pt (), track.eta ());
799+ if (cent >= centMin && cent < centMax) {
800+ histogramRegistry.fill (HIST (" eff/cent/hPt_nm" ), track.pt ());
801+ histogramRegistry.fill (HIST (" eff/cent/hPt_hEta_nm" ), track.pt (), track.eta ());
802+ }
787803 }
788804
789805 histogramRegistry.fill (HIST (" QA/cent_hEta" ), cent, track.eta ());
@@ -862,11 +878,20 @@ struct NetchargeFluctuations {
862878 if (sign == 1 ) {
863879 histogramRegistry.fill (HIST (" eff/hPt_np_gen" ), mcpart.pt ());
864880 histogramRegistry.fill (HIST (" eff/hPt_hEta_np_gen" ), mcpart.pt (), mcpart.eta ());
881+ if (cent >= centMin && cent < centMax) {
882+ histogramRegistry.fill (HIST (" eff/cent/hPt_np_gen" ), mcpart.pt ());
883+ histogramRegistry.fill (HIST (" eff/cent/hPt_hEta_np_gen" ), mcpart.pt (), mcpart.eta ());
884+ }
885+
865886 } else if (sign == -1 ) {
866887 histogramRegistry.fill (HIST (" eff/hPt_nm_gen" ), mcpart.pt ());
867888 histogramRegistry.fill (HIST (" eff/hPt_hEta_nm_gen" ), mcpart.pt (), mcpart.eta ());
868- }
889+ if (cent >= centMin && cent < centMax) {
890+ histogramRegistry.fill (HIST (" eff/cent/hPt_nm_gen" ), mcpart.pt ());
891+ histogramRegistry.fill (HIST (" eff/cent/hPt_hEta_nm_gen" ), mcpart.pt (), mcpart.eta ());
892+ }
869893
894+ }
870895 histogramRegistry.fill (HIST (" gen/hPt" ), mcpart.pt ());
871896 histogramRegistry.fill (HIST (" gen/cent_hPt" ), cent, mcpart.pt ());
872897 histogramRegistry.fill (HIST (" gen/hEta" ), mcpart.eta ());
@@ -1406,7 +1431,7 @@ struct NetchargeFluctuations {
14061431 }
14071432 }
14081433
1409- PROCESS_SWITCH (NetchargeFluctuations, processDataRun3, " Process for Run3 DATA" , true );
1434+ PROCESS_SWITCH (NetchargeFluctuations, processDataRun3, " Process for Run3 DATA" , false );
14101435
14111436 // process function for Data Run2
14121437 void processDataRun2 (MyCollisionRun2 const & coll, MyTracks const & tracks)
@@ -1434,7 +1459,7 @@ struct NetchargeFluctuations {
14341459 calculationMcDeltaEta<kRun3 >(coll, inputTracks, mcCollisions, mcParticles, etaMin, etaMax);
14351460 }
14361461 }
1437- PROCESS_SWITCH (NetchargeFluctuations, processMcRun3, " Process reconstructed" , false );
1462+ PROCESS_SWITCH (NetchargeFluctuations, processMcRun3, " Process reconstructed" , true );
14381463
14391464 // process function for MC Run2
14401465
0 commit comments