From 42d5baa043f9e8393e1a060a30397fe6e898175e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=20Ku=C4=8Dera?= Date: Thu, 11 Jul 2024 10:24:05 +0200 Subject: [PATCH] PWGHF: Add vertexing protection in XicToXiPiPi (#6810) --- PWGHF/D2H/TableProducer/candidateCreatorB0Reduced.cxx | 2 +- PWGHF/D2H/TableProducer/candidateCreatorBplusReduced.cxx | 2 +- PWGHF/D2H/TableProducer/dataCreatorCharmHadPiReduced.cxx | 4 ++-- PWGHF/TableProducer/candidateCreator2Prong.cxx | 2 +- PWGHF/TableProducer/candidateCreator3Prong.cxx | 2 +- PWGHF/TableProducer/candidateCreatorB0.cxx | 4 ++-- PWGHF/TableProducer/candidateCreatorBplus.cxx | 4 ++-- PWGHF/TableProducer/candidateCreatorBs.cxx | 4 ++-- PWGHF/TableProducer/candidateCreatorCascade.cxx | 2 +- PWGHF/TableProducer/candidateCreatorDstar.cxx | 2 +- PWGHF/TableProducer/candidateCreatorLb.cxx | 4 ++-- PWGHF/TableProducer/candidateCreatorXicToXiPiPi.cxx | 7 ++++++- PWGHF/TableProducer/treeCreatorOmegacSt.cxx | 8 ++++---- 13 files changed, 26 insertions(+), 21 deletions(-) diff --git a/PWGHF/D2H/TableProducer/candidateCreatorB0Reduced.cxx b/PWGHF/D2H/TableProducer/candidateCreatorB0Reduced.cxx index d81347d4eea..383ca9c42b1 100644 --- a/PWGHF/D2H/TableProducer/candidateCreatorB0Reduced.cxx +++ b/PWGHF/D2H/TableProducer/candidateCreatorB0Reduced.cxx @@ -148,7 +148,7 @@ struct HfCandidateCreatorB0Reduced { continue; } } catch (const std::runtime_error& error) { - LOG(info) << "Run time error found: " << error.what() << ". DCFitterN cannot work, skipping the candidate."; + LOG(info) << "Run time error found: " << error.what() << ". DCAFitterN cannot work, skipping the candidate."; hCandidates->Fill(SVFitting::Fail); continue; } diff --git a/PWGHF/D2H/TableProducer/candidateCreatorBplusReduced.cxx b/PWGHF/D2H/TableProducer/candidateCreatorBplusReduced.cxx index 7f7fc71bd6e..d47ac5f3d4d 100644 --- a/PWGHF/D2H/TableProducer/candidateCreatorBplusReduced.cxx +++ b/PWGHF/D2H/TableProducer/candidateCreatorBplusReduced.cxx @@ -142,7 +142,7 @@ struct HfCandidateCreatorBplusReduced { continue; } } catch (const std::runtime_error& error) { - LOG(info) << "Run time error found: " << error.what() << ". DCFitterN cannot work, skipping the candidate."; + LOG(info) << "Run time error found: " << error.what() << ". DCAFitterN cannot work, skipping the candidate."; hCandidates->Fill(SVFitting::Fail); continue; } diff --git a/PWGHF/D2H/TableProducer/dataCreatorCharmHadPiReduced.cxx b/PWGHF/D2H/TableProducer/dataCreatorCharmHadPiReduced.cxx index 2426cf49251..11598709ffc 100644 --- a/PWGHF/D2H/TableProducer/dataCreatorCharmHadPiReduced.cxx +++ b/PWGHF/D2H/TableProducer/dataCreatorCharmHadPiReduced.cxx @@ -570,7 +570,7 @@ struct HfDataCreatorCharmHadPiReduced { continue; } } catch (const std::runtime_error& error) { - LOG(info) << "Run time error found: " << error.what() << ". DCFitterN cannot work, skipping the candidate."; + LOG(info) << "Run time error found: " << error.what() << ". DCAFitterN cannot work, skipping the candidate."; hCandidatesDPlus->Fill(SVFitting::Fail); continue; } @@ -594,7 +594,7 @@ struct HfDataCreatorCharmHadPiReduced { continue; } } catch (const std::runtime_error& error) { - LOG(info) << "Run time error found: " << error.what() << ". DCFitterN cannot work, skipping the candidate."; + LOG(info) << "Run time error found: " << error.what() << ". DCAFitterN cannot work, skipping the candidate."; hCandidatesD0->Fill(SVFitting::Fail); continue; } diff --git a/PWGHF/TableProducer/candidateCreator2Prong.cxx b/PWGHF/TableProducer/candidateCreator2Prong.cxx index ede1240abb7..022173dddb4 100644 --- a/PWGHF/TableProducer/candidateCreator2Prong.cxx +++ b/PWGHF/TableProducer/candidateCreator2Prong.cxx @@ -211,7 +211,7 @@ struct HfCandidateCreator2Prong { continue; } } catch (const std::runtime_error& error) { - LOG(info) << "Run time error found: " << error.what() << ". DCFitterN cannot work, skipping the candidate."; + LOG(info) << "Run time error found: " << error.what() << ". DCAFitterN cannot work, skipping the candidate."; hCandidates->Fill(SVFitting::Fail); continue; } diff --git a/PWGHF/TableProducer/candidateCreator3Prong.cxx b/PWGHF/TableProducer/candidateCreator3Prong.cxx index 03650ed7fa4..3a72c0b5c5e 100644 --- a/PWGHF/TableProducer/candidateCreator3Prong.cxx +++ b/PWGHF/TableProducer/candidateCreator3Prong.cxx @@ -205,7 +205,7 @@ struct HfCandidateCreator3Prong { continue; } } catch (const std::runtime_error& error) { - LOG(info) << "Run time error found: " << error.what() << ". DCFitterN cannot work, skipping the candidate."; + LOG(info) << "Run time error found: " << error.what() << ". DCAFitterN cannot work, skipping the candidate."; hCandidates->Fill(SVFitting::Fail); continue; } diff --git a/PWGHF/TableProducer/candidateCreatorB0.cxx b/PWGHF/TableProducer/candidateCreatorB0.cxx index ec298631266..559734c7b12 100644 --- a/PWGHF/TableProducer/candidateCreatorB0.cxx +++ b/PWGHF/TableProducer/candidateCreatorB0.cxx @@ -241,7 +241,7 @@ struct HfCandidateCreatorB0 { continue; } } catch (const std::runtime_error& error) { - LOG(info) << "Run time error found: " << error.what() << ". DCFitterN for D cannot work, skipping the candidate."; + LOG(info) << "Run time error found: " << error.what() << ". DCAFitterN for D cannot work, skipping the candidate."; hCandidatesD->Fill(SVFitting::Fail); continue; } @@ -303,7 +303,7 @@ struct HfCandidateCreatorB0 { continue; } } catch (const std::runtime_error& error) { - LOG(info) << "Run time error found: " << error.what() << ". DCFitterN for B cannot work, skipping the candidate."; + LOG(info) << "Run time error found: " << error.what() << ". DCAFitterN for B cannot work, skipping the candidate."; hCandidatesB->Fill(SVFitting::Fail); continue; } diff --git a/PWGHF/TableProducer/candidateCreatorBplus.cxx b/PWGHF/TableProducer/candidateCreatorBplus.cxx index 695f42d4710..b8845945df9 100644 --- a/PWGHF/TableProducer/candidateCreatorBplus.cxx +++ b/PWGHF/TableProducer/candidateCreatorBplus.cxx @@ -236,7 +236,7 @@ struct HfCandidateCreatorBplus { continue; } } catch (const std::runtime_error& error) { - LOG(info) << "Run time error found: " << error.what() << ". DCFitterN for D cannot work, skipping the candidate."; + LOG(info) << "Run time error found: " << error.what() << ". DCAFitterN for D cannot work, skipping the candidate."; hCandidatesD->Fill(SVFitting::Fail); continue; } @@ -303,7 +303,7 @@ struct HfCandidateCreatorBplus { continue; } } catch (const std::runtime_error& error) { - LOG(info) << "Run time error found: " << error.what() << ". DCFitterN for B cannot work, skipping the candidate."; + LOG(info) << "Run time error found: " << error.what() << ". DCAFitterN for B cannot work, skipping the candidate."; hCandidatesB->Fill(SVFitting::Fail); continue; } diff --git a/PWGHF/TableProducer/candidateCreatorBs.cxx b/PWGHF/TableProducer/candidateCreatorBs.cxx index 7d8ad642fc2..69fb0c3f178 100644 --- a/PWGHF/TableProducer/candidateCreatorBs.cxx +++ b/PWGHF/TableProducer/candidateCreatorBs.cxx @@ -221,7 +221,7 @@ struct HfCandidateCreatorBs { continue; } } catch (const std::runtime_error& error) { - LOG(info) << "Run time error found: " << error.what() << ". DCFitterN for D cannot work, skipping the candidate."; + LOG(info) << "Run time error found: " << error.what() << ". DCAFitterN for D cannot work, skipping the candidate."; hCandidatesD->Fill(SVFitting::Fail); continue; } @@ -284,7 +284,7 @@ struct HfCandidateCreatorBs { continue; } } catch (const std::runtime_error& error) { - LOG(info) << "Run time error found: " << error.what() << ". DCFitterN for B cannot work, skipping the candidate."; + LOG(info) << "Run time error found: " << error.what() << ". DCAFitterN for B cannot work, skipping the candidate."; hCandidatesB->Fill(SVFitting::Fail); continue; } diff --git a/PWGHF/TableProducer/candidateCreatorCascade.cxx b/PWGHF/TableProducer/candidateCreatorCascade.cxx index 62616b01023..3f391842c93 100644 --- a/PWGHF/TableProducer/candidateCreatorCascade.cxx +++ b/PWGHF/TableProducer/candidateCreatorCascade.cxx @@ -260,7 +260,7 @@ struct HfCandidateCreatorCascade { // LOG(info) << "Vertexing succeeded for Lc candidate"; } } catch (const std::runtime_error& error) { - LOG(info) << "Run time error found: " << error.what() << ". DCFitterN cannot work, skipping the candidate."; + LOG(info) << "Run time error found: " << error.what() << ". DCAFitterN cannot work, skipping the candidate."; hCandidates->Fill(SVFitting::Fail); continue; } diff --git a/PWGHF/TableProducer/candidateCreatorDstar.cxx b/PWGHF/TableProducer/candidateCreatorDstar.cxx index 44e8011e002..e4a13157817 100644 --- a/PWGHF/TableProducer/candidateCreatorDstar.cxx +++ b/PWGHF/TableProducer/candidateCreatorDstar.cxx @@ -230,7 +230,7 @@ struct HfCandidateCreatorDstar { continue; } } catch (const std::runtime_error& error) { - LOG(info) << "Run time error found: " << error.what() << ". DCFitterN cannot work, skipping the candidate."; + LOG(info) << "Run time error found: " << error.what() << ". DCAFitterN cannot work, skipping the candidate."; hCandidates->Fill(SVFitting::Fail); continue; } diff --git a/PWGHF/TableProducer/candidateCreatorLb.cxx b/PWGHF/TableProducer/candidateCreatorLb.cxx index f398865793c..21ab291847c 100644 --- a/PWGHF/TableProducer/candidateCreatorLb.cxx +++ b/PWGHF/TableProducer/candidateCreatorLb.cxx @@ -141,7 +141,7 @@ struct HfCandidateCreatorLb { continue; } } catch (const std::runtime_error& error) { - LOG(info) << "Run time error found: " << error.what() << ". DCFitterN cannot work, skipping the candidate."; + LOG(info) << "Run time error found: " << error.what() << ". DCAFitterN cannot work, skipping the candidate."; hCandidatesLc->Fill(SVFitting::Fail); continue; } @@ -183,7 +183,7 @@ struct HfCandidateCreatorLb { continue; } } catch (const std::runtime_error& error) { - LOG(info) << "Run time error found: " << error.what() << ". DCFitterN cannot work, skipping the candidate."; + LOG(info) << "Run time error found: " << error.what() << ". DCAFitterN cannot work, skipping the candidate."; hCandidatesLb->Fill(SVFitting::Fail); continue; } diff --git a/PWGHF/TableProducer/candidateCreatorXicToXiPiPi.cxx b/PWGHF/TableProducer/candidateCreatorXicToXiPiPi.cxx index 36f9c083625..f0752d56ed5 100644 --- a/PWGHF/TableProducer/candidateCreatorXicToXiPiPi.cxx +++ b/PWGHF/TableProducer/candidateCreatorXicToXiPiPi.cxx @@ -217,7 +217,12 @@ struct HfCandidateCreatorXicToXiPiPi { auto trackParCovCharmBachelor1 = getTrackParCov(trackCharmBachelor1); // reconstruct the 3-prong secondary vertex - if (df.process(trackCasc, trackParCovCharmBachelor0, trackParCovCharmBachelor1) == 0) { + try { + if (df.process(trackCasc, trackParCovCharmBachelor0, trackParCovCharmBachelor1) == 0) { + continue; + } + } catch (const std::runtime_error& error) { + LOG(info) << "Run time error found: " << error.what() << ". DCAFitterN cannot work, skipping the candidate."; continue; } diff --git a/PWGHF/TableProducer/treeCreatorOmegacSt.cxx b/PWGHF/TableProducer/treeCreatorOmegacSt.cxx index 21464557455..b91f65cb654 100644 --- a/PWGHF/TableProducer/treeCreatorOmegacSt.cxx +++ b/PWGHF/TableProducer/treeCreatorOmegacSt.cxx @@ -425,7 +425,7 @@ struct HfTreeCreatorOmegacSt { continue; } } catch (const std::runtime_error& error) { - LOG(info) << "Run time error found: " << error.what() << ". DCFitterN for Pr-Pi cannot work, skipping the candidate."; + LOG(info) << "Run time error found: " << error.what() << ". DCAFitterN for Pr-Pi cannot work, skipping the candidate."; hCandidatesPrPi->Fill(SVFitting::Fail); continue; } @@ -446,7 +446,7 @@ struct HfTreeCreatorOmegacSt { continue; } } catch (const std::runtime_error& error) { - LOG(info) << "Run time error found: " << error.what() << ". DCFitterN for V0-bachelor cannot work, skipping the candidate."; + LOG(info) << "Run time error found: " << error.what() << ". DCAFitterN for V0-bachelor cannot work, skipping the candidate."; hCandidatesV0Pi->Fill(SVFitting::Fail); continue; } @@ -612,7 +612,7 @@ struct HfTreeCreatorOmegacSt { continue; } } catch (const std::runtime_error& error) { - LOG(info) << "Run time error found: " << error.what() << ". DCFitterN for Casc-Pi cannot work, skipping the candidate."; + LOG(info) << "Run time error found: " << error.what() << ". DCAFitterN for Casc-Pi cannot work, skipping the candidate."; hCandidatesCascPi->Fill(SVFitting::Fail); continue; } @@ -764,7 +764,7 @@ struct HfTreeCreatorOmegacSt { hCandidatesCascPi->Fill(SVFitting::FitOk); } } catch (const std::runtime_error& error) { - LOG(info) << "Run time error found: " << error.what() << ". DCFitterN for Casc-Pi cannot work, skipping the candidate."; + LOG(info) << "Run time error found: " << error.what() << ". DCAFitterN for Casc-Pi cannot work, skipping the candidate."; hCandidatesCascPi->Fill(SVFitting::Fail); continue; }