File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -630,10 +630,9 @@ struct HfTaskDstarPolarisationInJet {
630630
631631 // / \param invMass is the invariant mass
632632 // / \return true if candidate in signal region
633- template <charm_polarisation::DecayChannel channel>
634- bool isInSignalRegion (float invMass)
633+ bool isInSignalRegion (charm_polarisation::DecayChannel channel, float invMass)
635634 {
636- if constexpr (channel == charm_polarisation::DecayChannel::DstarToDzeroPi) { // D*+
635+ if (channel == charm_polarisation::DecayChannel::DstarToDzeroPi) { // D*+
637636 float invMassSigMin = 0 .142f ;
638637 float invMassSigMax = 0 .15f ;
639638 if (invMassSigMin < invMass && invMass < invMassSigMax) {
@@ -769,7 +768,7 @@ struct HfTaskDstarPolarisationInJet {
769768 float ptCharmHad = RecoDecay::pt (threeVecCand); // this definition is valid for both rotated and original candidates
770769
771770 if (!isCandidateInSignalRegion) { // it could be that only one mass hypothesis is in signal region
772- isCandidateInSignalRegion = isInSignalRegion<channel>( invMassCharmHadForSparse);
771+ isCandidateInSignalRegion = isInSignalRegion (channel, invMassCharmHadForSparse);
773772 }
774773 float absEtaTrackMin = candidate.absEtaTrackMin ();
775774 int numItsClsMin = candidate.numItsClsMin ();
You can’t perform that action at this time.
0 commit comments