22 string filePath =
InputPath() +
"/covmx/mgr.root";
23 TFile*
inFile = TFile::Open(filePath.c_str(),
"read");
26 vector<const ISyst*>
systs = GetAllSysts();
27 auto mgr = LoadFrom<CovMxManager>(
inFile);
28 CovarianceMatrix* mx = mgr->GetCovarianceMatrix(samples, systs);
30 TFile*
outFile = TFile::Open(
"covmx.root",
"recreate");
32 for (
size_t i = 0;
i < samples.size(); ++
i) {
33 if (
i > 0) dirName <<
"_";
34 dirName << samples[
i].GetID();
36 mx->SaveTo(outFile->mkdir(dirName.str().c_str()));
40 cout <<
endl <<
"Exception occurred! " << e.what() <<
endl;
Cuts and Vars for the 2020 FD DiF Study.
::xsd::cxx::tree::exception< char > exception
std::vector< covmx::Sample > GetSamplesFromOptString(TString optString)
Function to take an option TString and return a vector of associated covmx::Samples.
A class for generating a covariance matrices as a function of oscillation parameters and systematics ...