5757#include < cstdlib>
5858#include < string>
5959#include < vector>
60+ #include < unordered_set>
6061
6162using namespace o2 ;
6263using namespace o2 ::framework;
@@ -471,15 +472,17 @@ struct sigma0builder {
471472 histos.get <TH1>(HIST (" PhotonSel/hSelectionStatistics" ))->GetXaxis ()->SetBinLabel (12 , " TPCCR" );
472473 histos.get <TH1>(HIST (" PhotonSel/hSelectionStatistics" ))->GetXaxis ()->SetBinLabel (13 , " TPC NSigma" );
473474
474- histos.add (" EMCalPhotonSel/hSelectionStatistics" , " hSelectionStatistics" , kTH1D , {axisCandSel});
475- histos.get <TH1>(HIST (" EMCalPhotonSel/hSelectionStatistics" ))->GetXaxis ()->SetBinLabel (1 , " No Sel" );
476- histos.get <TH1>(HIST (" EMCalPhotonSel/hSelectionStatistics" ))->GetXaxis ()->SetBinLabel (2 , " Definition" );
477- histos.get <TH1>(HIST (" EMCalPhotonSel/hSelectionStatistics" ))->GetXaxis ()->SetBinLabel (3 , " MinCell" );
478- histos.get <TH1>(HIST (" EMCalPhotonSel/hSelectionStatistics" ))->GetXaxis ()->SetBinLabel (4 , " Energy" );
479- histos.get <TH1>(HIST (" EMCalPhotonSel/hSelectionStatistics" ))->GetXaxis ()->SetBinLabel (5 , " Eta" );
480- histos.get <TH1>(HIST (" EMCalPhotonSel/hSelectionStatistics" ))->GetXaxis ()->SetBinLabel (6 , " Time" );
481- histos.get <TH1>(HIST (" EMCalPhotonSel/hSelectionStatistics" ))->GetXaxis ()->SetBinLabel (7 , " Exotic" );
482- histos.get <TH1>(HIST (" EMCalPhotonSel/hSelectionStatistics" ))->GetXaxis ()->SetBinLabel (8 , " Shape" );
475+ if (doprocessPCMVsEMCalQA){
476+ histos.add (" EMCalPhotonSel/hSelectionStatistics" , " hSelectionStatistics" , kTH1D , {axisCandSel});
477+ histos.get <TH1>(HIST (" EMCalPhotonSel/hSelectionStatistics" ))->GetXaxis ()->SetBinLabel (1 , " No Sel" );
478+ histos.get <TH1>(HIST (" EMCalPhotonSel/hSelectionStatistics" ))->GetXaxis ()->SetBinLabel (2 , " Definition" );
479+ histos.get <TH1>(HIST (" EMCalPhotonSel/hSelectionStatistics" ))->GetXaxis ()->SetBinLabel (3 , " MinCell" );
480+ histos.get <TH1>(HIST (" EMCalPhotonSel/hSelectionStatistics" ))->GetXaxis ()->SetBinLabel (4 , " Energy" );
481+ histos.get <TH1>(HIST (" EMCalPhotonSel/hSelectionStatistics" ))->GetXaxis ()->SetBinLabel (5 , " Eta" );
482+ histos.get <TH1>(HIST (" EMCalPhotonSel/hSelectionStatistics" ))->GetXaxis ()->SetBinLabel (6 , " Time" );
483+ histos.get <TH1>(HIST (" EMCalPhotonSel/hSelectionStatistics" ))->GetXaxis ()->SetBinLabel (7 , " Exotic" );
484+ histos.get <TH1>(HIST (" EMCalPhotonSel/hSelectionStatistics" ))->GetXaxis ()->SetBinLabel (8 , " Shape" );
485+ }
483486
484487 } else {
485488 for (const auto & histodir : DirList2) {
@@ -491,6 +494,16 @@ struct sigma0builder {
491494 histos.add (histodir + " /hExotic" , " hExotic" , kTH1D , {{2 , -0 .5f , 1 .5f }});
492495 histos.add (histodir + " /h2dShape" , " h2dShape" , kTH2D , {axisPt, axisClrShape});
493496 }
497+
498+ histos.add (" EMCalPhotonSel/hSelectionStatistics" , " hSelectionStatistics" , kTH1D , {axisCandSel});
499+ histos.get <TH1>(HIST (" EMCalPhotonSel/hSelectionStatistics" ))->GetXaxis ()->SetBinLabel (1 , " No Sel" );
500+ histos.get <TH1>(HIST (" EMCalPhotonSel/hSelectionStatistics" ))->GetXaxis ()->SetBinLabel (2 , " Definition" );
501+ histos.get <TH1>(HIST (" EMCalPhotonSel/hSelectionStatistics" ))->GetXaxis ()->SetBinLabel (3 , " MinCell" );
502+ histos.get <TH1>(HIST (" EMCalPhotonSel/hSelectionStatistics" ))->GetXaxis ()->SetBinLabel (4 , " Energy" );
503+ histos.get <TH1>(HIST (" EMCalPhotonSel/hSelectionStatistics" ))->GetXaxis ()->SetBinLabel (5 , " Eta" );
504+ histos.get <TH1>(HIST (" EMCalPhotonSel/hSelectionStatistics" ))->GetXaxis ()->SetBinLabel (6 , " Time" );
505+ histos.get <TH1>(HIST (" EMCalPhotonSel/hSelectionStatistics" ))->GetXaxis ()->SetBinLabel (7 , " Exotic" );
506+ histos.get <TH1>(HIST (" EMCalPhotonSel/hSelectionStatistics" ))->GetXaxis ()->SetBinLabel (8 , " Shape" );
494507 }
495508
496509 histos.add (" LambdaSel/hSelectionStatistics" , " hSelectionStatistics" , kTH1D , {axisCandSel});
@@ -2773,9 +2786,7 @@ struct sigma0builder {
27732786 }
27742787 }
27752788 }
2776- }
2777-
2778- LOGF (info, " N. photons: %i, N. lambdas: %i, expected pairs: %i, got: %i" , bestGammasArray.size (), bestLambdasArray.size (), bestGammasArray.size () * bestLambdasArray.size (), nSigma0Candidates);
2789+ }
27792790 }
27802791 }
27812792
0 commit comments