Skip to content

Commit

Permalink
Merge pull request #238 from MadAnalysis/lumi_scaling_fix
Browse files Browse the repository at this point in the history
Bugfix in lumi scaling
  • Loading branch information
BFuks authored Mar 18, 2024
2 parents e0683e8 + dc3ea9e commit 36e391a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions bin/ma5
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ sys.path.insert(0, servicedir)

# Release version
# Do not touch it !!!!!
version = "1.10.13"
date = "2023/11/08"
version = "1.10.14"
date = "2024/01/22"

# Loading the MadAnalysis session
import madanalysis.core.launcher
Expand Down
5 changes: 4 additions & 1 deletion doc/releases/changelog-v1.10.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,13 @@
* Update of the version of Delphes/DelphesMa5tune + compatibility with M1 chips and Mac OS 13.0.
([#173](https://github.com/orgs/MadAnalysis/discussions/173))

* Covariance matrix implementation has been fixed for HL extrapolations
* Covariance matrix implementation has been fixed for HL extrapolations
(see issue [#223](https://github.com/MadAnalysis/madanalysis5/issues/223)).
([#225](https://github.com/MadAnalysis/madanalysis5/pull/225))

* Minor bugfix in luminosity scaling for recasting
([#238](https://github.com/MadAnalysis/madanalysis5/pull/238))

## Contributors

This release contains contributions from (in alphabetical order):
Expand Down
2 changes: 1 addition & 1 deletion madanalysis/misc/run_recast.py
Original file line number Diff line number Diff line change
Expand Up @@ -1145,7 +1145,7 @@ def header_info_file(self, etree, analysis, extrapolated_lumi):
if self.main.recasting.error_extrapolation=='sqrt':
new_sigma = round(math.sqrt(sigma)*lumi_scaling,8)
elif self.main.recasting.error_extrapolation=='linear':
new_sigma *= lumi_scaling**2
new_sigma = new_sigma * lumi_scaling**2
else:
new_sigma = sigma * lumi_scaling**2 * self.main.recasting.error_extrapolation[0]**2 + \
np.sqrt(sigma) * lumi_scaling * self.main.recasting.error_extrapolation[1]**2
Expand Down
4 changes: 2 additions & 2 deletions tools/SampleAnalyzer/Commons/Base/Configuration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ using namespace MA5;
// Initializing static data members
// -----------------------------------------------------------------------------
// DO NOT TOUCH THESE LINES
const std::string Configuration::sampleanalyzer_version_ = "1.10.13";
const std::string Configuration::sampleanalyzer_date_ = "2023/11/08";
const std::string Configuration::sampleanalyzer_version_ = "1.10.14";
const std::string Configuration::sampleanalyzer_date_ = "2024/01/22";
// DO NOT TOUCH THESE LINES

// -----------------------------------------------------------------------------
Expand Down

0 comments on commit 36e391a

Please sign in to comment.