Skip to content

Commit 7ef1fb0

Browse files
committed
do not use assert
1 parent 84356e0 commit 7ef1fb0

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

PWGHF/D2H/Tasks/taskCharmPolarisation.cxx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1979,11 +1979,6 @@ struct HfTaskCharmPolarisation {
19791979
template <charm_polarisation::DecayChannel Channel, bool WithMl, bool DoMc, bool StudyLcPkPiBkgMc = false, bool WithEp = false, typename Cand, typename Part, typename Trk, typename T, typename QVecs = void>
19801980
bool runPolarisationAnalysis(Cand const& candidate, int bkgRotationId, T numPvContributors, Part const& particles, Trk const& /*tracks*/, float centrality = -999.f, QVecs const* qVecs = nullptr)
19811981
{
1982-
if constexpr (WithEp && !DoMc) {
1983-
assert(qVecs && "EP analysis requested but qVecs == nullptr");
1984-
assert(centrality && "EP analysis requested but centrality == nullptr");
1985-
}
1986-
19871982
constexpr std::size_t NScores{3u};
19881983

19891984
bool isCandidateInSignalRegion{false};
@@ -2576,9 +2571,6 @@ struct HfTaskCharmPolarisation {
25762571
template <charm_polarisation::DecayChannel Channel, bool WithCent = false, typename Part, typename Particles, typename T, typename Cent = void>
25772572
void runMcGenPolarisationAnalysis(Part const& mcParticle, Particles const& mcParticles, T numPvContributors, Cent const* centrality = nullptr)
25782573
{
2579-
if constexpr (WithCent) {
2580-
assert(qVecs && "Centrality analysis requested but Cent == nullptr");
2581-
}
25822574
if constexpr (WithCent) {
25832575
if (*centrality < centralityMin || *centrality > centralityMax) {
25842576
return; // skip this collision if outside of the centrality range

0 commit comments

Comments
 (0)