Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
43 changes: 42 additions & 1 deletion CIValidations/CovarianceValidations.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -350,11 +350,52 @@ int main(int argc, char *argv[])
////////////// Now PCA with several undecomposed //////////////
TestPCA("PCA_2",
{TutorialPath + "/TutorialConfigs/CovObjs/SystematicModel.yaml",
TutorialPath + "/TutorialConfigs/CovObjs/PCATest.yaml"},
TutorialPath + "/TutorialConfigs/CovObjs/PCATest.yaml"},
0.01,
10, 19,
Ntoys,
outFile);
////////////// Now PCA with two block //////////////
TestPCA("PCA_3",
{TutorialPath + "/TutorialConfigs/CovObjs/SystematicModel.yaml",
TutorialPath + "/TutorialConfigs/CovObjs/PCATest.yaml",
TutorialPath + "/TutorialConfigs/CovObjs/OscillationModel.yaml"
},
0.01,
10, 19,
Ntoys,
outFile);
////////////// Now we PCA first block //////////////
TestPCA("PCA_4",
{ TutorialPath + "/TutorialConfigs/CovObjs/PCATest.yaml",
TutorialPath + "/TutorialConfigs/CovObjs/SystematicModel.yaml",
TutorialPath + "/TutorialConfigs/CovObjs/OscillationModel.yaml"
},
0.01,
0, 10,
Ntoys,
outFile);
////////////// Now we PCA last block //////////////
TestPCA("PCA_5",
{ TutorialPath + "/TutorialConfigs/CovObjs/SystematicModel.yaml",
TutorialPath + "/TutorialConfigs/CovObjs/OscillationModel.yaml",
TutorialPath + "/TutorialConfigs/CovObjs/PCATest.yaml"
},
0.01,
20, 29,
Ntoys,
outFile);
////////////// Now PCA with two block and threshold equal 0//////////////
TestPCA("PCA_6",
{TutorialPath + "/TutorialConfigs/CovObjs/SystematicModel.yaml",
TutorialPath + "/TutorialConfigs/CovObjs/PCATest.yaml",
TutorialPath + "/TutorialConfigs/CovObjs/OscillationModel.yaml"
},
0.0000000000001,
10, 19,
Ntoys,
outFile);

////////////// Now Osc //////////////
std::vector<std::string> OscCovMatrixFile = {TutorialPath + "/TutorialConfigs/CovObjs/OscillationModel.yaml"};
auto osc = std::make_unique<ParameterHandlerGeneric>(OscCovMatrixFile, "osc_cov");
Expand Down
Loading