@@ -486,30 +486,31 @@ struct sigmaanalysis {
486486 histos.add (" Gen/hCentralityVsPVzMC" , " hCentralityVsPVzMC" , kTH2F , {{101 , 0 .0f , 101 .0f }, {100 , -20 .0f , +20 .0f }});
487487
488488 // Sigma0 specific
489- histos.add (" Gen/h2dGenSigma0" , " h2dGenSigma0" , kTH2D , {axisCentrality, axisPt});
490- histos.add (" Gen/h2dGenAntiSigma0" , " h2dGenAntiSigma0" , kTH2D , {axisCentrality, axisPt});
491- histos.add (" Gen/h2dGenSigma0VsMultMC_RecoedEvt" , " h2dGenSigma0VsMultMC_RecoedEvt" , kTH2D , {axisNch, axisPt});
492- histos.add (" Gen/h2dGenAntiSigma0VsMultMC_RecoedEvt" , " h2dGenAntiSigma0VsMultMC_RecoedEvt" , kTH2D , {axisNch, axisPt});
493- histos.add (" Gen/h2dGenSigma0VsMultMC" , " h2dGenSigma0VsMultMC" , kTH2D , {axisNch, axisPt});
494- histos.add (" Gen/h2dGenAntiSigma0VsMultMC" , " h2dGenAntiSigma0VsMultMC" , kTH2D , {axisNch, axisPt});
495-
496- auto hGenSigma0Type = histos.add <TH1>(" Gen/hGenSigma0Type" , " hGenSigma0Type" , kTH1D , {{4 , -0 .5f , 3 .5f }});
497- hGenSigma0Type->GetXaxis ()->SetBinLabel (1 , " All Sigma0s" );
498- hGenSigma0Type->GetXaxis ()->SetBinLabel (2 , " Sterile" );
499- hGenSigma0Type->GetXaxis ()->SetBinLabel (3 , " Lambda+Gamma" );
500- hGenSigma0Type->GetXaxis ()->SetBinLabel (4 , " Others" );
501-
502- auto h2DGenSigma0Type = histos.add <TH2>(" Gen/h2DGenSigma0Type" , " h2DGenSigma0Type" , kTH2D , {{4 , -0 .5f , 3 .5f }, axisGeneratorIds});
503- h2DGenSigma0Type->GetXaxis ()->SetBinLabel (1 , " All Sigma0s" );
504- h2DGenSigma0Type->GetXaxis ()->SetBinLabel (2 , " Sterile" );
505- h2DGenSigma0Type->GetXaxis ()->SetBinLabel (3 , " Lambda+Gamma" );
506- h2DGenSigma0Type->GetXaxis ()->SetBinLabel (4 , " Others" );
507-
508- // Pi0 specific
509- histos.add (" Gen/h2dGenPi0VsMultMC_RecoedEvt" , " h2dGenPi0VsMultMC_RecoedEvt" , kTH2D , {axisNch, axisPt});
510- histos.add (" Gen/h2dGenPi0" , " h2dGenPi0" , kTH2D , {axisCentrality, axisPt});
511- histos.add (" Gen/h2dGenPi0VsMultMC" , " h2dGenPi0VsMultMC" , kTH2D , {axisNch, axisPt});
512-
489+ if (doprocessGeneratedRun3){
490+ histos.add (" Gen/h2dGenSigma0" , " h2dGenSigma0" , kTH2D , {axisCentrality, axisPt});
491+ histos.add (" Gen/h2dGenAntiSigma0" , " h2dGenAntiSigma0" , kTH2D , {axisCentrality, axisPt});
492+ histos.add (" Gen/h2dGenSigma0VsMultMC_RecoedEvt" , " h2dGenSigma0VsMultMC_RecoedEvt" , kTH2D , {axisNch, axisPt});
493+ histos.add (" Gen/h2dGenAntiSigma0VsMultMC_RecoedEvt" , " h2dGenAntiSigma0VsMultMC_RecoedEvt" , kTH2D , {axisNch, axisPt});
494+ histos.add (" Gen/h2dGenSigma0VsMultMC" , " h2dGenSigma0VsMultMC" , kTH2D , {axisNch, axisPt});
495+ histos.add (" Gen/h2dGenAntiSigma0VsMultMC" , " h2dGenAntiSigma0VsMultMC" , kTH2D , {axisNch, axisPt});
496+
497+ auto hGenSigma0Type = histos.add <TH1>(" Gen/hGenSigma0Type" , " hGenSigma0Type" , kTH1D , {{4 , -0 .5f , 3 .5f }});
498+ hGenSigma0Type->GetXaxis ()->SetBinLabel (1 , " All Sigma0s" );
499+ hGenSigma0Type->GetXaxis ()->SetBinLabel (2 , " Sterile" );
500+ hGenSigma0Type->GetXaxis ()->SetBinLabel (3 , " Lambda+Gamma" );
501+ hGenSigma0Type->GetXaxis ()->SetBinLabel (4 , " Others" );
502+
503+ auto h2DGenSigma0Type = histos.add <TH2>(" Gen/h2DGenSigma0Type" , " h2DGenSigma0Type" , kTH2D , {{4 , -0 .5f , 3 .5f }, axisGeneratorIds});
504+ h2DGenSigma0Type->GetXaxis ()->SetBinLabel (1 , " All Sigma0s" );
505+ h2DGenSigma0Type->GetXaxis ()->SetBinLabel (2 , " Sterile" );
506+ h2DGenSigma0Type->GetXaxis ()->SetBinLabel (3 , " Lambda+Gamma" );
507+ h2DGenSigma0Type->GetXaxis ()->SetBinLabel (4 , " Others" );
508+ }
509+ else { // Pi0 specific
510+ histos.add (" Gen/h2dGenPi0VsMultMC_RecoedEvt" , " h2dGenPi0VsMultMC_RecoedEvt" , kTH2D , {axisNch, axisPt});
511+ histos.add (" Gen/h2dGenPi0" , " h2dGenPi0" , kTH2D , {axisCentrality, axisPt});
512+ histos.add (" Gen/h2dGenPi0VsMultMC" , " h2dGenPi0VsMultMC" , kTH2D , {axisNch, axisPt});
513+ }
513514 }
514515 }
515516
0 commit comments