20 cout <<
"Moving prediction " << s.GetTag() <<
"...";
26 in->GetDirectory((
"pred_"+s.GetTag()).c_str()) :
27 in->GetDirectory(s.GetTag().c_str())->GetDirectory(
"pred");
30 : (
IPrediction*)LoadFrom<FDPredictionSterile>(predDir).release();
31 pred->
SaveTo(out->mkdir(
"pred"));
34 in->GetDirectory((
"pred_interp_"+s.GetTag()).c_str()) :
35 in->GetDirectory(s.GetTag().c_str())->GetDirectory(
"pred_interp");
38 pred = LoadFrom<PredictionInterp>(predDir).
release();
39 pred->
SaveTo(out->mkdir(
"pred_interp"));
43 double seconds = difftime(after, before);
44 cout <<
" done in " << seconds <<
" seconds." <<
endl;
50 string path =
"/nova/data/users/jhewes15/";
52 TFile*
outFile = TFile::Open((path+
"predictions.root").c_str(),
"update");
56 TFile*
inFile = TFile::Open((path+inFileName).c_str(),
"read");
57 CopyPred(inFile, outFile->mkdir(s.GetTag().c_str()), s);
void CopyPred(TDirectory *in, TDirectory *out, Sample s)
Cuts and Vars for the 2020 FD DiF Study.
virtual void SaveTo(TDirectory *dir, const std::string &name) const
::xsd::cxx::tree::time< char, simple_type > time
covmx::Sample GetSampleFromOptString(TString optString)
Function to take an option TString and return a single associated covmx::Sample.
void MergePredictions(TString opt)
inFileName
if we get here, we're doing the base definitions:
Standard interface to all prediction techniques.