Skip to content

Commit

Permalink
a couple of fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ronchese committed Jul 6, 2022
1 parent f3a2ccb commit c64ca5e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,9 @@ void BPHDecayConstrainedBuilderBase::setConstr(bool flag) {
return;
outdated = true;
massConstr = flag;
BPHMassFitSelect* mfs = massFitSelector(mFitSel->getMassMin(), mFitSel->getMassMax());
delete mFitSel;
mFitSel = massFitSelector(mFitSel->getMassMin(), mFitSel->getMassMax());
mFitSel = mfs;
mfSelForce = false;
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,14 @@ BPHDecayToResTrkTrkSameMassBuilderBase::BPHDecayToResTrkTrkSameMassBuilderBase(
//--------------
void BPHDecayToResTrkTrkSameMassBuilderBase::fillTrkTrkList() {
double mTotMax = massSel->getMassMax();
double mTpnMax = mTotMax - (0.8 * rMass);

BPHDecayToChargedXXbarBuilder ttBuilder(*evSetup, pName, nName, tMass, tSigma, pCollection, nCollection);
ttBuilder.setPtMin(ptMin);
ttBuilder.setEtaMax(etaMax);
ttBuilder.setDzMax(1.0);
ttBuilder.setMassMin(0.0);
if (mTotMax >= 0.0)
ttBuilder.setMassMax(mTpnMax);
ttBuilder.setMassMax(mTotMax - (0.8 * rMass));
else
ttBuilder.setMassMax(-1.0);
ttBuilder.setMinPDiff(minPDiff);
Expand Down

0 comments on commit c64ca5e

Please sign in to comment.