Skip to content

Commit

Permalink
Fix error propagation for cut var
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbattistini authored and fgrosa committed Apr 28, 2021
1 parent 2b67560 commit 624c0bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/AnalysisUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ def GetPromptFDYieldsAnalyticMinimisation(effPromptList, effFDList, rawYieldList
for iCutSetCol, (rawYieldUncCol, effPromptUncCol, effFDUncCol) in enumerate(\
zip(rawYieldUncList, effPromptUncList, effFDUncList)):
uncRow = np.sqrt(rawYieldUncRow**2 + effPromptUncRow**2 *
mCorrYield.item(0) + effFDUncRow**2 * mCorrYield.item(1))
mCorrYield.item(0)**2 + effFDUncRow**2 * mCorrYield.item(1)**2)
uncCol = np.sqrt(rawYieldUncCol**2 + effPromptUncCol**2 *
mCorrYield.item(0) + effFDUncCol**2 * mCorrYield.item(1))
mCorrYield.item(0)**2 + effFDUncCol**2 * mCorrYield.item(1)**2)
if corr and uncRow > 0 and uncCol > 0:
if uncRow < uncCol:
rho = uncRow / uncCol
Expand Down

0 comments on commit 624c0bf

Please sign in to comment.