35 TFile*
outFile = TFile::Open(outFileName.c_str(),
"recreate");
40 TIter
next(inFile->GetListOfKeys());
42 while ((key = (TKey*)
next())) {
45 cout <<
"Generating ISysts for sample " << sample.GetTag() <<
endl;
51 systsMaker->
Go(sample, calc);
55 TDirectory*
dir = outFile->mkdir((
"isysts_"+sample.GetTag()).c_str());
58 syst->SaveTo(dir->mkdir((sample.GetTag()+
"_"+syst->BaseName()).c_str()),
"NCSyst");
60 syst->SaveTo(dir->mkdir((sample.GetTag()+
"_"+syst->BaseName()).c_str()),
"NumuSyst");
62 syst->SaveTo(dir->mkdir((sample.GetTag()+
"_"+syst->BaseName()).c_str()),
"NueSyst");
Cuts and Vars for the 2020 FD DiF Study.
void SetNus20Params(osc::OscCalcSterile *calc, std::string type="3flav")
::xsd::cxx::tree::exception< char > exception
void SetInfo(covmx::Sample &sample, double res=0)
covmx::Sample GetSampleFromOptString(TString optString)
Function to take an option TString and return a single associated covmx::Sample.
osc::OscCalcSterile * DefaultSterileCalc(int nflavors)
Create a sterile calculator with default assumptions for all parameters.
std::vector< NuISyst * > MakeISysts()
Make ISyst objects for each attached systematic and return them.
const std::string kNus20Path
inFileName
if we get here, we're doing the base definitions:
void MakeISysts(std::string nd_path="/nova/data/users/jhewes15/nus19/systmakers/neardet", std::string nd_file="systsmaker_nc_fhc_2019.root", std::string fd_path="/nova/data/users/jhewes15/nus19/systmakers/fardet", std::string fd_file="systsmaker_nc_fhc_2019.root")
void Go(const covmx::Sample sample, osc::IOscCalc *calc)
static std::unique_ptr< SystematicsMaker > LoadFrom(TDirectory *dir)