Skip to content

Commit a39cf63

Browse files
Merge pull request #100 from mach3-software/feature_PlotKinemDistr
feat: Kinem Distribution
2 parents 67ffee3 + 7ee4cf8 commit a39cf63

19 files changed

Lines changed: 164350 additions & 164254 deletions

.github/workflows/BumpVersion.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
# Checkout the MaCh3Tutorial repository
3232
- name: Checkout MaCh3Tutorial repository
3333
run: |
34-
git clone https://${{ secrets.MACH3_VALIDATIONS_PAT }}@github.com/mach3-software/MaCh3Tutorial.git MaCh3Tutorial
34+
git clone "https://${{ secrets.MACH3_VALIDATIONS_PAT }}@github.com/mach3-software/MaCh3Tutorial.git" MaCh3Tutorial
3535
3636
# Extract the MaCh3Tutorial version from CMakeLists.txt
3737
- name: Get MaCh3Tutorial version
@@ -46,15 +46,16 @@ jobs:
4646
if [ "$MaCh3_VERSION" != "$MaCh3Tutorial_VERSION" ]; then
4747
echo "Versions are different. Creating a new branch in MaCh3Tutorial."
4848
cd MaCh3Tutorial
49-
git checkout -b update_version_${MaCh3_VERSION}
49+
git checkout -b "update_version_${MaCh3_VERSION}"
5050
5151
# Update the MaCh3Tutorial_VERSION in CMakeLists.txt
52-
sed -i "s/SET(MaCh3Tutorial_VERSION .*)/SET(MaCh3Tutorial_VERSION ${MaCh3_VERSION})/" CMakeLists.txt
52+
sed -i "s/^project(MaCh3Tutorial VERSION [^ ]* LANGUAGES CXX)$/project(MaCh3Tutorial VERSION \"${MaCh3_VERSION}\" LANGUAGES CXX)/" CMakeLists.txt
53+
5354
git status
5455
git diff
5556
5657
# Commit the changes
57-
git add CMakeLists.txt
58+
git add "CMakeLists.txt"
5859
git commit -m "Bump MaCh3Tutorial_VERSION to ${MaCh3_VERSION}"
5960
git push origin update_version_${MaCh3_VERSION}
6061

CIValidations/LLHValidation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ int main(int argc, char *argv[])
2828

2929
for (int j = 1; j <= hist->GetNbinsX(); ++j) {
3030
double binContent = hist->GetBinContent(j);
31-
outFile << "Dial " << Names[i] << " bin = " << j << " content = " << std::fixed << std::setprecision(6) << binContent << std::endl;
31+
outFile << "Dial " << Names[i] << " bin = " << j << " content = " << std::fixed << std::setprecision(6) << std::fabs(binContent) << std::endl;
3232
}
3333
}
3434
outFile.close();

CIValidations/MaCh3CLI

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ run_reweight_validations() {
2626
./CIValidations/SplineValidations
2727
./CIValidations/SamplePDFValidations
2828
./CIValidations/LLHValidation
29+
${MaCh3_ROOT}/bin/KinemDistributionTutorial ${MaCh3_ROOT}/TutorialConfigs/FitterConfig.yaml
2930
./CIValidations/NuOscillatorInterfaceValidations
3031
}
3132

CIValidations/MaCh3ModeValidations.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,16 @@ int main(int argc, char *argv[])
3737
outFile << "GetMode for CC2p2h = " << Modes->GetMode("CC2p2h") << std::endl;
3838
outFile << "GetMode for Test = " << Modes->GetMode("Test") << std::endl;
3939

40+
outFile << "SplineSuffixFromMaCh3Mode for 1 = " << Modes->GetSplineSuffixFromMaCh3Mode(1) << std::endl;
41+
outFile << "SplineSuffixFromMaCh3Mode for 2 = " << Modes->GetSplineSuffixFromMaCh3Mode(2) << std::endl;
42+
outFile << "SplineSuffixFromMaCh3Mode for 10 = " << Modes->GetSplineSuffixFromMaCh3Mode(10) << std::endl;
43+
outFile << "SplineSuffixFromMaCh3Mode for 60 = " << Modes->GetSplineSuffixFromMaCh3Mode(60) << std::endl;
44+
45+
outFile << "IsMaCh3ModeNC for 1 = " << Modes->IsMaCh3ModeNC(1) << std::endl;
46+
outFile << "IsMaCh3ModeNC for 2 = " << Modes->IsMaCh3ModeNC(2) << std::endl;
47+
outFile << "IsMaCh3ModeNC for 10 = " << Modes->IsMaCh3ModeNC(10) << std::endl;
48+
outFile << "IsMaCh3ModeNC for 60 = " << Modes->IsMaCh3ModeNC(60) << std::endl;
49+
4050
outFile << "GetNModes = " << Modes->GetNModes() << std::endl;
4151

4252
outFile.close();

CIValidations/Scripts/CreateBinnedSplineFile.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ void CreateBinnedSplineFile(){
2121
//Let's try out 5 systematics
2222
//This gives us a total of 5*10*10*5 = 2500 splines
2323
std::vector<int> SystematicKnots = {5, 7, 7, 2, 3};//, 7, 2, 7, 7, 7};
24-
std::vector<std::vector<std::string>> SystematicModeNames = {{"ccqe"}, {"cc1pipm"}, {"2p2h"}, {"other"}, {"ccqe"}};
24+
std::vector<std::vector<std::string>> SystematicModeNames = {{"ccqe"}, {"cc1pipm"}, {"2p2h"}, {"ccmultipi"}, {"ccdis"}};
2525
//Values to centre the gaussian response on
2626
std::vector<double> SystematicMeanResponse = {1.0, 2.0, 1.0, 1.5, 1.0};
2727
std::vector<int> SystematicNominalKnot = {3, 4, 4, 1, 2};

0 commit comments

Comments
 (0)