@@ -256,6 +256,7 @@ struct sigma0builder {
256256 histos.add (" PhotonSel/hPhotonDCAPosToPV" , " hPhotonDCAPosToPV" , kTH1F , {axisDCAtoPV});
257257 histos.add (" PhotonSel/hPhotonDCADau" , " hPhotonDCADau" , kTH1F , {axisDCAdau});
258258 histos.add (" PhotonSel/hPhotonRadius" , " hPhotonRadius" , kTH1F , {axisRadius});
259+ histos.add (" PhotonSel/hPhotonpT" , " hPhotonpT" , kTH1F , {axisPt});
259260
260261 histos.add (" LambdaSel/hSelectionStatistics" , " hSelectionStatistics" , kTH1D , {axisCandSel});
261262 histos.get <TH1 >(HIST (" LambdaSel/hSelectionStatistics" ))->GetXaxis ()->SetBinLabel (1 , " No Sel" );
@@ -274,6 +275,7 @@ struct sigma0builder {
274275 histos.add (" LambdaSel/hLambdaDCAPosToPV" , " hLambdaDCAPosToPV" , kTH1F , {axisDCAtoPV});
275276 histos.add (" LambdaSel/hLambdaDCADau" , " hLambdaDCADau" , kTH1F , {axisDCAdau});
276277 histos.add (" LambdaSel/hLambdaRadius" , " hLambdaRadius" , kTH1F , {axisRadius});
278+ histos.add (" LambdaSel/hLambdapT" , " hLambdapT" , kTH1F , {axisPt});
277279
278280 histos.add (" SigmaSel/hSelectionStatistics" , " hSelectionStatistics" , kTH1D , {axisCandSel});
279281 histos.get <TH1 >(HIST (" SigmaSel/hSelectionStatistics" ))->GetXaxis ()->SetBinLabel (1 , " No Sel" );
@@ -307,15 +309,22 @@ struct sigma0builder {
307309 }
308310
309311 if (doAssocStudy && doprocessMonteCarlo) {
312+ histos.add (" V0AssoQA/hGammaCand_pT" , " hGammaCand_pT" , kTH1F , {axisPt});
313+ histos.add (" V0AssoQA/hLambdaCand_pT" , " hLambdaCand_pT" , kTH1F , {axisPt});
314+
310315 histos.add (" V0AssoQA/h2dIRVsPt_TrueGamma" , " h2dIRVsPt_TrueGamma" , kTH2F , {axisIRBinning, axisPt});
311316 histos.add (" V0AssoQA/h3dPAVsIRVsPt_TrueGamma" , " h3dPAVsIRVsPt_TrueGamma" , kTH3F , {axisPA, axisIRBinning, axisPt});
317+ histos.add (" V0AssoQA/h3dDCADauVsIRVsPt_TrueGamma" , " h3dDCADauVsIRVsPt_TrueGamma" , kTH3F , {axisDCAdau, axisIRBinning, axisPt});
312318 histos.add (" V0AssoQA/h2dIRVsPt_TrueGamma_BadCollAssig" , " h2dIRVsPt_TrueGamma_BadCollAssig" , kTH2F , {axisIRBinning, axisPt});
313319 histos.add (" V0AssoQA/h3dPAVsIRVsPt_TrueGamma_BadCollAssig" , " h3dPAVsIRVsPt_TrueGamma_BadCollAssig" , kTH3F , {axisPA, axisIRBinning, axisPt});
320+ histos.add (" V0AssoQA/h3dDCADauVsIRVsPt_TrueGamma_BadCollAssig" , " h3dDCADauVsIRVsPt_TrueGamma_BadCollAssig" , kTH3F , {axisDCAdau, axisIRBinning, axisPt});
314321
315322 histos.add (" V0AssoQA/h2dIRVsPt_TrueLambda" , " h2dIRVsPt_TrueLambda" , kTH2F , {axisIRBinning, axisPt});
316323 histos.add (" V0AssoQA/h3dPAVsIRVsPt_TrueLambda" , " h3dPAVsIRVsPt_TrueLambda" , kTH3F , {axisPA, axisIRBinning, axisPt});
324+ histos.add (" V0AssoQA/h3dDCADauVsIRVsPt_TrueLambda" , " h3dDCADauVsIRVsPt_TrueLambda" , kTH3F , {axisDCAdau, axisIRBinning, axisPt});
317325 histos.add (" V0AssoQA/h2dIRVsPt_TrueLambda_BadCollAssig" , " h2dIRVsPt_TrueLambda_BadCollAssig" , kTH2F , {axisIRBinning, axisPt});
318326 histos.add (" V0AssoQA/h3dPAVsIRVsPt_TrueLambda_BadCollAssig" , " h3dPAVsIRVsPt_TrueLambda_BadCollAssig" , kTH3F , {axisPA, axisIRBinning, axisPt});
327+ histos.add (" V0AssoQA/h3dDCADauVsIRVsPt_TrueLambda_BadCollAssig" , " h3dDCADauVsIRVsPt_TrueLambda_BadCollAssig" , kTH3F , {axisDCAdau, axisIRBinning, axisPt});
319328 }
320329
321330 // MC
@@ -543,25 +552,37 @@ struct sigma0builder {
543552
544553 float V0MCpT = RecoDecay::pt (array<float , 2 >{v0MC.pxMC (), v0MC.pyMC ()});
545554 float V0PA = TMath::ACos (v0.v0cosPA ());
555+ float V0DCADau = v0.dcaV0daughters ();
546556 bool fIsV0CorrectlyAssigned = (v0MC.straMCCollisionId () == v0MCCollision.globalIndex ());
547557 bool isPrimary = v0MC.isPhysicalPrimary ();
548558
549- if ((v0MC.pdgCode () == 22 ) && isPhotonAnalysis && isPrimary) { // True Gamma
550- histos.fill (HIST (" V0AssoQA/h2dIRVsPt_TrueGamma" ), IR , V0MCpT);
551- histos.fill (HIST (" V0AssoQA/h3dPAVsIRVsPt_TrueGamma" ), V0PA , IR , V0MCpT);
552-
553- if (!fIsV0CorrectlyAssigned ) {
554- histos.fill (HIST (" V0AssoQA/h2dIRVsPt_TrueGamma_BadCollAssig" ), IR , V0MCpT);
555- histos.fill (HIST (" V0AssoQA/h3dPAVsIRVsPt_TrueGamma_BadCollAssig" ), V0PA , IR , V0MCpT);
559+ if (isPhotonAnalysis){
560+ histos.fill (HIST (" V0AssoQA/hGammaCand_pT" ), V0MCpT);
561+ if ((v0MC.pdgCode () == 22 ) && isPrimary) { // True Gamma
562+ histos.fill (HIST (" V0AssoQA/h2dIRVsPt_TrueGamma" ), IR , V0MCpT);
563+ histos.fill (HIST (" V0AssoQA/h3dPAVsIRVsPt_TrueGamma" ), V0PA , IR , V0MCpT);
564+ histos.fill (HIST (" V0AssoQA/h3dDCADauVsIRVsPt_TrueGamma" ), V0DCADau, IR , V0MCpT);
565+
566+ if (!fIsV0CorrectlyAssigned ) {
567+ histos.fill (HIST (" V0AssoQA/h2dIRVsPt_TrueGamma_BadCollAssig" ), IR , V0MCpT);
568+ histos.fill (HIST (" V0AssoQA/h3dPAVsIRVsPt_TrueGamma_BadCollAssig" ), V0PA , IR , V0MCpT);
569+ histos.fill (HIST (" V0AssoQA/h3dDCADauVsIRVsPt_TrueGamma_BadCollAssig" ), V0DCADau, IR , V0MCpT);
570+ }
556571 }
557572 }
558- if ((v0MC.pdgCode () == 3122 ) && !isPhotonAnalysis && isPrimary) { // True Lambda
559- histos.fill (HIST (" V0AssoQA/h2dIRVsPt_TrueLambda" ), IR , V0MCpT);
560- histos.fill (HIST (" V0AssoQA/h3dPAVsIRVsPt_TrueLambda" ), V0PA , IR , V0MCpT);
561573
562- if (!fIsV0CorrectlyAssigned ) {
563- histos.fill (HIST (" V0AssoQA/h2dIRVsPt_TrueLambda_BadCollAssig" ), IR , V0MCpT);
564- histos.fill (HIST (" V0AssoQA/h3dPAVsIRVsPt_TrueLambda_BadCollAssig" ), V0PA , IR , V0MCpT);
574+ if (!isPhotonAnalysis){
575+ histos.fill (HIST (" V0AssoQA/hLambdaCand_pT" ), V0MCpT);
576+ if ((v0MC.pdgCode () == 3122 ) && isPrimary) { // True Lambda
577+ histos.fill (HIST (" V0AssoQA/h2dIRVsPt_TrueLambda" ), IR , V0MCpT);
578+ histos.fill (HIST (" V0AssoQA/h3dPAVsIRVsPt_TrueLambda" ), V0PA , IR , V0MCpT);
579+ histos.fill (HIST (" V0AssoQA/h3dDCADauVsIRVsPt_TrueLambda" ), V0DCADau, IR , V0MCpT);
580+
581+ if (!fIsV0CorrectlyAssigned ) {
582+ histos.fill (HIST (" V0AssoQA/h2dIRVsPt_TrueLambda_BadCollAssig" ), IR , V0MCpT);
583+ histos.fill (HIST (" V0AssoQA/h3dPAVsIRVsPt_TrueLambda_BadCollAssig" ), V0PA , IR , V0MCpT);
584+ histos.fill (HIST (" V0AssoQA/h3dDCADauVsIRVsPt_TrueLambda_BadCollAssig" ), V0DCADau, IR , V0MCpT);
585+ }
565586 }
566587 }
567588 }
@@ -868,6 +889,7 @@ struct sigma0builder {
868889 if ((gamma.v0radius () < PhotonMinRadius) || (gamma.v0radius () > PhotonMaxRadius))
869890 return false ;
870891 histos.fill (HIST (" PhotonSel/hSelectionStatistics" ), 6 .);
892+ histos.fill (HIST (" PhotonSel/hPhotonpT" ), gamma.pt ());
871893 }
872894 return true ;
873895 }
@@ -910,6 +932,7 @@ struct sigma0builder {
910932 if (TMath::Abs (lambda.dcaV0daughters ()) > LambdaMaxDCAV0Dau)
911933 return false ;
912934 histos.fill (HIST (" LambdaSel/hSelectionStatistics" ), 6 .);
935+ histos.fill (HIST (" LambdaSel/hLambdapT" ), lambda.pt ());
913936 }
914937
915938 return true ;
0 commit comments