Skip to content

Commit

Permalink
PWGHF: Add vertexing protection in XicToXiPiPi (AliceO2Group#6810)
Browse files Browse the repository at this point in the history
  • Loading branch information
vkucera authored Jul 11, 2024
1 parent c31daaa commit 42d5baa
Show file tree
Hide file tree
Showing 13 changed files with 26 additions and 21 deletions.
2 changes: 1 addition & 1 deletion PWGHF/D2H/TableProducer/candidateCreatorB0Reduced.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion PWGHF/D2H/TableProducer/candidateCreatorBplusReduced.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
4 changes: 2 additions & 2 deletions PWGHF/D2H/TableProducer/dataCreatorCharmHadPiReduced.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion PWGHF/TableProducer/candidateCreator2Prong.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion PWGHF/TableProducer/candidateCreator3Prong.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
4 changes: 2 additions & 2 deletions PWGHF/TableProducer/candidateCreatorB0.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
}
Expand Down
4 changes: 2 additions & 2 deletions PWGHF/TableProducer/candidateCreatorBplus.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
}
Expand Down
4 changes: 2 additions & 2 deletions PWGHF/TableProducer/candidateCreatorBs.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion PWGHF/TableProducer/candidateCreatorCascade.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion PWGHF/TableProducer/candidateCreatorDstar.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
4 changes: 2 additions & 2 deletions PWGHF/TableProducer/candidateCreatorLb.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
}
Expand Down
7 changes: 6 additions & 1 deletion PWGHF/TableProducer/candidateCreatorXicToXiPiPi.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
8 changes: 4 additions & 4 deletions PWGHF/TableProducer/treeCreatorOmegacSt.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;
}
Expand Down Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 42d5baa

Please sign in to comment.