@@ -280,6 +280,19 @@ struct sigmaanalysis {
280280 histos.get <TH1>(HIST (" GeneralQA/hCandidateAnalysisSelection" ))->GetXaxis ()->SetBinLabel (30 , " Lambda/ALambda Mass" );
281281 histos.get <TH1>(HIST (" GeneralQA/hCandidateAnalysisSelection" ))->GetXaxis ()->SetBinLabel (31 , " Sigma Y" );
282282
283+ // Builder output QA
284+ histos.add (" BuilderQA/hPhotonAssociation" , " hPhotonAssociation" , kTH1F , {{2 , 0 .0f , 2 .0f }});
285+ histos.add (" BuilderQA/hLambdaAssociation" , " hLambdaAssociation" , kTH1F , {{2 , 0 .0f , 2 .0f }});
286+ histos.add (" BuilderQA/hPhotonTrackCode" , " hPhotonTrackCode" , kTH1F , {{8 , 0 .5f , 8 .5f }});
287+ histos.add (" BuilderQA/hLambdaTrackCode" , " hLambdaTrackCode" , kTH1F , {{8 , 0 .5f , 8 .5f }});
288+ histos.add (" BuilderQA/hPhotonZ" , " hPhotonZ" , kTH1D , {{240 , -120 .0f , 120 .0f }});
289+ histos.add (" BuilderQA/hPhotonCosPA" , " hPhotonCosPA" , kTH1D , {axisCosPA});
290+ histos.add (" BuilderQA/hPhotonDCADau" , " hPhotonDCADau" , kTH1D , {axisDCAdau});
291+
292+ histos.add (" BuilderQA/hPhotonZ_BadCollAssig" , " hPhotonZ_BadCollAssig" , kTH1D , {{240 , -120 .0f , 120 .0f }});
293+ histos.add (" BuilderQA/hPhotonCosPA_BadCollAssig" , " hPhotonCosPA_BadCollAssig" , kTH1D , {axisCosPA});
294+ histos.add (" BuilderQA/hPhotonDCADau_BadCollAssig" , " hPhotonDCADau_BadCollAssig" , kTH1D , {axisDCAdau});
295+
283296 // Photon Selection QA histos
284297 histos.add (" GeneralQA/hPhotonV0Type" , " hPhotonV0Type" , kTH1F , {{8 , 0 .5f , 8 .5f }});
285298 histos.add (" GeneralQA/hPhotonNegpT" , " hPhotonNegpT" , kTH1F , {axisPt});
@@ -944,6 +957,43 @@ struct sigmaanalysis {
944957 }
945958 }
946959
960+ // BuilderQA
961+ histos.fill (HIST (" BuilderQA/hPhotonAssociation" ), sigma.photonIsCorrectlyAssoc ());
962+ histos.fill (HIST (" BuilderQA/hLambdaAssociation" ), sigma.lambdaIsCorrectlyAssoc ());
963+
964+ int GammaTrkCode = -10 ; // 1: TPC-only, 2: TPC+Something, 3: ITS-Only
965+ int LambdaTrkCode = -10 ; // 1: TPC-only, 2: TPC+Something, 3: ITS-Only, 4: ITS+TPC + Something
966+
967+ if (sigma.photonPosTrackCode ()==1 && sigma.photonNegTrackCode ()==1 )
968+ GammaTrkCode = 1 ;
969+ if ((sigma.photonPosTrackCode ()!=1 && sigma.photonNegTrackCode ()==1 ) || (sigma.photonPosTrackCode ()==1 && sigma.photonNegTrackCode ()!=1 ))
970+ GammaTrkCode = 2 ;
971+ if (sigma.photonPosTrackCode ()==3 && sigma.photonNegTrackCode ()==3 )
972+ GammaTrkCode = 3 ;
973+ if (sigma.lambdaPosTrackCode ()==1 && sigma.lambdaNegTrackCode ()==1 )
974+ LambdaTrkCode = 1 ;
975+ if ((sigma.lambdaPosTrackCode ()!=1 && sigma.lambdaNegTrackCode ()==1 ) || (sigma.lambdaPosTrackCode ()==1 && sigma.lambdaNegTrackCode ()!=1 ))
976+ LambdaTrkCode = 2 ;
977+ if (sigma.lambdaPosTrackCode ()==3 && sigma.lambdaNegTrackCode ()==3 )
978+ LambdaTrkCode = 3 ;
979+ if (sigma.lambdaPosTrackCode ()==2 || sigma.lambdaNegTrackCode ()==2 )
980+ LambdaTrkCode = 4 ;
981+
982+ histos.fill (HIST (" BuilderQA/hPhotonTrackCode" ), GammaTrkCode);
983+ histos.fill (HIST (" BuilderQA/hLambdaTrackCode" ), LambdaTrkCode);
984+
985+ if ((GammaTrkCode==1 ) && (TMath::Abs (sigma.photonY ()) <= 0.5 ) && (sigma.photonCandPDGCode () == 22 )){
986+ histos.fill (HIST (" BuilderQA/hPhotonZ" ), sigma.photonZconv ());
987+ histos.fill (HIST (" BuilderQA/hPhotonCosPA" ), sigma.photonCosPA ());
988+ histos.fill (HIST (" BuilderQA/hPhotonDCADau" ), sigma.photonDCADau ());
989+
990+ if (!sigma.photonIsCorrectlyAssoc ()){
991+ histos.fill (HIST (" BuilderQA/hPhotonZ_BadCollAssig" ), sigma.photonZconv ());
992+ histos.fill (HIST (" BuilderQA/hPhotonCosPA_BadCollAssig" ), sigma.photonCosPA ());
993+ histos.fill (HIST (" BuilderQA/hPhotonDCADau_BadCollAssig" ), sigma.photonDCADau ());
994+ }
995+ }
996+
947997 // Filling histos before analysis selection
948998 histos.fill (HIST (" MC/h2dSigmaMCPtVsLambdaMCPt" ), sigma.sigmaMCPt (), sigma.lambdaMCPt ());
949999 histos.fill (HIST (" MC/h2dSigmaMCPtVsGammaMCPt" ), sigma.sigmaMCPt (), sigma.photonMCPt ());
0 commit comments