9 using std::ostringstream;
10 using std::runtime_error;
47 vector<string> sel = {
"numusel",
"nuesel",
"ncsel" };
53 vector<string> pol = {
"fhc",
"rhc" };
59 vector<string> pol = {
"neardet",
"fardet" };
66 throw runtime_error(
"This sample does not have quantiles.");
67 vector<string> qnt = {
"q0",
"q1",
"q2",
"q3" };
83 vector<string> sel = {
"CC $\\nu_{\\mu}$",
"CC $\\nu_{e}$",
"NC" };
85 vector<string> pol = {
"FHC",
"RHC" };
87 vector<string>
det = {
"ND",
"FD" };
119 if (!
axis)
throw runtime_error(
"Axis not set in sample!");
125 if (!
axis)
throw runtime_error(
"Axis not set in sample!");
131 if (!
cut)
throw runtime_error(
"Cut not set in sample!");
137 if (
pot == -1)
throw runtime_error(
"POT not set in sample!");
143 if (
livetime == -1)
throw runtime_error(
"Livetime not set in sample!");
153 if (!
prediction)
throw runtime_error(
"Prediction not set in sample!");
159 if (!
cosmic)
throw runtime_error(
"Cosmic spectrum not set in sample!");
165 if (!
data)
throw runtime_error(
"Data spectrum not set in sample!");
::xsd::cxx::tree::id< char, ncname > id
std::map< const ISyst *, const ISyst * > systMap
Represent the binning of a Spectrum's x-axis.
Cuts and Vars for the 2020 FD DiF Study.
std::string GetQuantile() const
Simple record of shifts applied to systematic parameters.
std::string GetTag() const
Encapsulate code to systematically shift a caf::SRProxy.
Representation of a spectrum in any variable, with associated POT.
const XML_Char const XML_Char * data
std::string GetLatexName() const
std::string GetPolarity() const
Sum up livetimes from individual cosmic triggers.
void SetPrediction(IPrediction *p)
std::string GetSelection() const
T GetShift(const ISyst *syst) const
void SetCosmic(Spectrum *s)
Sample(Selection s, Polarity p, Detector d, Quantile q=kNoQ)
unsigned int quantile(std::vector< std::vector< double >> v, float E, float hadEfrac)
Spectrum * GetCosmic() const
const std::vector< Binning > & GetBinnings() const
const Cut * GetCut() const
std::string GetDetector() const
unsigned int GetID() const
Binning GetBinning() const
std::string GetName() const
Standard interface to all prediction techniques.
Spectrum * GetData() const
std::vector< const ISyst * > ActiveSysts() const
void SetData(Spectrum *s)
double GetLivetime() const
IPrediction * GetPrediction() const
void SetShift(const ISyst *syst, double shift, bool force=false)
const HistAxis * GetAxis() const
SystShifts GetSystShifts(SystShifts shifts) const