3 #include "OscLib/IOscCalc.h"
6 #include "TDirectory.h"
8 #include "TObjString.h"
19 std::cerr <<
"WARNING: Using 2014 Solar constraints."
20 <<
"Are you sure you don't want kSolarConstraintsPDG2017 ?"
32 const double ss2th,
const double errorSs2th)
33 :fCentralDmsq (dmsq), fErrorDmsq (errorDmsq),
34 fCentralAngle(ss2th), fErrorAngle(errorSs2th)
45 const double ss2th12 =
util::sqr(sin(2*osc->GetTh12()));
55 TDirectory* tmp =
dir;
58 TObjString(
"SolarConstraints").Write(
"type");
60 TH1D params(
"",
"", 4, 0, 4);
65 params.Write(
"params");
73 TObjString* tag = (TObjString*)dir->Get(
"type");
75 assert(tag->GetString() ==
"SolarConstraints");
79 TH1* params = (TH1*)dir->Get(
"params");
82 ret->fCentralDmsq = params->GetBinContent(1);
83 ret->fErrorDmsq = params->GetBinContent(2);
84 ret->fCentralAngle = params->GetBinContent(3);
85 ret->fErrorAngle = params->GetBinContent(4);
Constraints on the parameters and from solar experiments.
BEGIN_PROLOG could also be cerr
Simple record of shifts applied to systematic parameters.
virtual void SaveTo(TDirectory *dir) const override
process_name opflashCryoW ana
virtual double ChiSq(osc::IOscCalcAdjustable *osc, const SystShifts &syst=SystShifts::Nominal()) const override
T sqr(T x)
More efficient square function than pow(x,2)
static std::unique_ptr< SolarConstraints > LoadFrom(TDirectory *dir)