Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
932c805
Upgrade fastjet from 3.3.2 to 3.4.0 (needed for rivet 3.1.7)
tprocter46 Apr 15, 2023
d41cde1
Update Rivet to 3.1.7
tprocter46 Apr 16, 2023
08bffb2
Add BOSS generated Rivet 3.1.7 files
tprocter46 Apr 16, 2023
3255493
Remove debug messages
tprocter46 Apr 17, 2023
06fe3f4
Fix typo
tprocter46 Apr 17, 2023
8f76b48
Remove CMS_2018_I1663958 from rivet make patch - fixed in rivet 3.1.7
tprocter46 Apr 18, 2023
ea64176
Fix typo
tprocter46 Apr 18, 2023
b9014db
Clear up debug statements
tprocter46 Apr 18, 2023
c83a079
Fix dif to make dependency tracking work
tprocter46 Apr 18, 2023
530839f
Use new --enable-analyses rivet configure option to simplify hack to …
tprocter46 Apr 18, 2023
32a3c14
Go back to old approach of not building unneccessary analyses
tprocter46 Apr 19, 2023
e01f1bb
remove --enable-analyses=False from rivet configure
tprocter46 Apr 19, 2023
0ac4372
Remove last vestiges of rivet 3.1.5
tprocter46 Apr 19, 2023
a706c5a
Update rivet to 3.1.8
tprocter46 May 7, 2023
c806258
Fix 3.1.8 rivet patch
tprocter46 May 10, 2023
04295b9
Clean out stuff from old rivet versions
tprocter46 May 10, 2023
593856c
update backend_locations to rivet 3.1.8
tprocter46 May 10, 2023
c89c1f8
Finally properly fix rivet 3.1.8 patch
tprocter46 May 10, 2023
bc8e0d0
Remove one last rivet 3.1.7 hangover
tprocter46 May 10, 2023
5c5c42a
adjust backends.cmake for weird rivet 3.1.8 install behaviour
tprocter46 May 11, 2023
aab7c6e
patch rivet config to allow rpath of fjcontrib
tprocter46 May 11, 2023
7280949
Update backends cmake to download & build contur 2.4.1
tprocter46 May 5, 2023
96782b2
Update contur init_by_GAMBIT to set new required env variables
tprocter46 May 7, 2023
37430db
Create all the files necessarry for contur 2.4.1
tprocter46 May 10, 2023
2a9c47a
Merge remote-tracking branch 'origin/rivet_3_1_8_upgrade' into contur…
tprocter46 May 11, 2023
e3fc21f
Patch contur db so it doesn't crash if there are no rivet LEP analyses
tprocter46 May 11, 2023
253440e
Changes to backend types/functions for contur 2.4.1 (nearly but not q…
tprocter46 May 13, 2023
4d8bd1b
Removing Contur 2.1.1 stuff
tprocter46 May 13, 2023
277c10b
Fix Contur_output constructor problem
tprocter46 May 13, 2023
25cbe80
More tidying of debug commits
tprocter46 May 14, 2023
983c9d4
Tidy up debug mess
tprocter46 May 30, 2023
cb33815
Expunging stuff from old rivet versions
tprocter46 May 30, 2023
dcbcbd5
Update Rivet/Contur versions for CBS
tprocter46 May 30, 2023
897730e
Upgrade Contur 2.4.1 -> 2.4.3
tprocter46 Jun 20, 2023
87e8416
Upgrade Contur->2.4.4 to allow complete exclusion of multiprocessing …
tprocter46 Jul 10, 2023
b018b46
Merge branch 'master' into contur_2_4_1_upgrade_try3
anderkve Dec 4, 2023
0c8d861
Merge branch 'master' into contur_2_4_1_upgrade_try3
anderkve Dec 4, 2023
1bee86b
Merge branch 'master' into contur_2_4_1_upgrade_try3
anderkve Dec 5, 2023
1cb0283
Merge branch 'master' into contur_2_4_1_upgrade_try3
anderkve Dec 5, 2023
0507862
Update capabilities.dat for rivet 3.1.5, Contur 2.4.4
tprocter46 Dec 5, 2023
964bebe
Upgrade yoda 1.9.7->1.9.9
tprocter46 Dec 6, 2023
2710a66
Merge remote-tracking branch 'origin/contur_2_4_1_upgrade_try3' into …
tprocter46 Dec 6, 2023
ca3b2dc
Added installation of the python module 'pathos' to the Ubuntu CI job…
anderkve Dec 10, 2023
208c291
Temporary changes to ci.yml to debug issue with contur not being foun…
anderkve Dec 11, 2023
e97b60d
Small fixes to debug code in ci.yml
anderkve Dec 11, 2023
26587a4
More debug tweaks to ci.yml
anderkve Dec 11, 2023
afe1220
Added joblib installation in ci.yml. More debug code tweaks.
anderkve Dec 11, 2023
071a509
Removed debug code from ci.yml.
anderkve Dec 11, 2023
81ffb7d
Add joblib to Contur dependencies
tprocter46 Dec 11, 2023
94b0a25
Switched build order in ci.yml to make sure BOSSed backends are built…
anderkve Dec 11, 2023
1371f13
Merge branch 'contur_2_4_1_upgrade_try3' of https://github.com/Gambit…
anderkve Dec 11, 2023
75229dc
Added temporary code to ci_Mac_x64.yml to debug issue with yoda insta…
anderkve Dec 13, 2023
af3d103
Merge branch 'master' into contur_2_4_1_upgrade_try3. Fixed merge con…
anderkve Jan 12, 2024
f73f2bd
Missing capability description
tegonzalo Feb 21, 2024
0325644
Fixed bug in heplike url
tegonzalo Feb 26, 2024
ff59763
Updated HISTORY
tegonzalo Feb 26, 2024
fa180e9
Updated tarball info
tegonzalo Feb 26, 2024
4d8d77d
Merge branch 'release_2.4'
tegonzalo Feb 26, 2024
bf03ae8
Merge branch 'master' into contur_2_4_1_upgrade_try3
anderkve Feb 27, 2024
882f21c
Merge remote-tracking branch 'origin/SUSYRun2' into contur_2_4_1_upgr…
Apr 24, 2024
c2b0545
Merge remote-tracking branch 'origin/SUSYRun2' into contur_2_4_1_upgr…
tprocter46 Jul 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
echo "export PYTHON_INCLUDE_DIR=$PYTHON_INCLUDE_DIR" >> buildenv.sh
echo "export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH" >> buildenv.sh
cat buildenv.sh
pip install --upgrade pyyaml pybind11 h5py scipy numpy pyhf configobj pandas matplotlib setuptools==58.2.0
pip install --upgrade pyyaml pybind11 h5py scipy numpy pyhf configobj pandas matplotlib setuptools==58.2.0 pathos joblib
- name: Configure with cmake
run: |
cd BUILD/ && . buildenv.sh
Expand Down
66 changes: 58 additions & 8 deletions Backends/include/gambit/Backends/backend_types/Contur.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
namespace Gambit
{
// Class that manages the input dictionary for Contur
class Contur_output
class Contur_subOutput
{
friend Contur_output merge_contur_outputs(const Contur_output& output1, const Contur_output& output2);
friend Contur_subOutput merge_contur_suboutputs(const Contur_subOutput& output1, const Contur_subOutput& output2);

public:
//Three member objects:
Expand All @@ -42,15 +42,15 @@
map_str_str pool_tags;

//Default constructor - used if no events produced
Contur_output()
Contur_subOutput()
{
LLR = 0.0;
pool_LLR = {};
pool_tags = {};
LLR = 0.0;
pool_LLR = {};
pool_tags = {};
}

//Constructor using the pybind11::dict we get from contur:
Contur_output(pybind11::dict input_dict)
Contur_subOutput(pybind11::dict input_dict)
{
//Eliminating the factor of -2 for the GAMBIT LLR definition
LLR = -0.5*input_dict.attr("get")("LLR").cast<double>();
Expand All @@ -64,7 +64,7 @@
}

//Constructor with all parts supplied: for the friend merge function
Contur_output(const double newLLR, const map_str_dbl& newPool_LLR, const map_str_str& newPool_tags)
Contur_subOutput(const double newLLR, const map_str_dbl& newPool_LLR, const map_str_str& newPool_tags)
{
LLR = newLLR;
pool_LLR = newPool_LLR;
Expand All @@ -73,9 +73,59 @@

//Automatic destructor should be fine, no need to define

//Print the object and all its data in an easy to read format.
void print_Contur_subOutput_debug(std::ostream&outstream = std::cout) const;
};

class Contur_output
{
friend Contur_output merge_contur_outputs(const Contur_output& output1, const Contur_output& output2);

public:
std::vector<std::string> _bkg_types = {"SMBG", "DATABG", "EXP"};
std::map<str,Contur_subOutput> outputs;

//Default constructor - used if no events produced
Contur_output()
{
for (const str& bkg : _bkg_types){
outputs[bkg] = Contur_subOutput();
}
}

//Constructor using the pybind11::dict we get from contur:
Contur_output(pybind11::dict input_dict)
{
for (const str& bkg : _bkg_types){
outputs[bkg] = Contur_subOutput(input_dict.attr("get")(bkg));
}
}
//Automatic destructor should be fine, no need to define

//Print the object and all its data in an easy to read format.
void print_Contur_output_debug(std::ostream&outstream = std::cout) const;

// TODO: returning a map is probably not super efficient but it fits the existing syntax.
map_str_dbl pool_LLR() const {
map_str_dbl return_map;
for (const str & bkg : _bkg_types){
for (const std::pair<str, double> LLRpair : outputs.at(bkg).pool_LLR){
return_map[LLRpair.first + "_" + bkg] = LLRpair.second;
}
}
return return_map;
}

// TODO: returning a map is probably not super efficient but it fits the existing syntax.
map_str_str pool_tags() const {
map_str_str return_map;
for (const str & bkg : _bkg_types){
for (const std::pair<str, str> LLRpair : outputs.at(bkg).pool_tags){
return_map[LLRpair.first + "_" + bkg] = LLRpair.second;
}
}
return return_map;
}
};

//For running Contur multiple times with different settings.
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading