28 , fIsNuisance (false )
29 , fIsConstrained(false )
41 float const& sigmaSize,
45 bool const& constrained,
46 float const& lowerBound,
47 float const& upperBound)
86 <<
" is set to be fixed but is also set to be a nuisance parameter, " 87 <<
"assume that leaving it fixed is correct and set IsNuisance to " 108 o <<
"-- parameter: " 109 << std::setw(30) << par.
Name() << std::setw(10)
110 <<
" val: " << par.
Value()
112 <<
" oscillation " << par.
IsOscPar()
126 o <<
" -- parameter: " 131 << itr.second.Value()
134 << itr.second.IsFixed();
139 << loc.
FDLocation().find(itr.first)->second.Value()
142 << itr.second.IsFixed();
148 o <<
" -- parameter: " 153 << itr.second.Value()
156 << itr.second.IsFixed()
166 for(
auto const& itr : oscPars){
226 if(fNDLoc.count(par.
Name()) < 1) fNDLoc.emplace(par.
Name(),
par);
230 if(fFDLoc.count(par.
Name()) < 1) fFDLoc.emplace(par.
Name(),
par);
241 if(fNDLoc.count(parName) > 0) fNDLoc.find(parName)->second.SetValue(value);
245 <<
" is not a recognized parameter for the NearDet";
248 if(fFDLoc.count(parName) > 0) fFDLoc.find(parName)->second.SetValue(value);
252 <<
" is not a recognized parameter for the FarDet";
261 for(
auto const& itr : fFDLoc){
266 return std::move(oscMap);
float const & LowerBound() const
enum cmf::osc_params OscParm_t
bool const & IsConstrained() const
float fSigmaSize
size of 1 sigma
static const double kGarbageDouble
float fCentralVal
central value for the parameter
bool const & IsFixed() const
bool fIsConstrained
is this parameter constrained in allowed values?
enum cmf::det_type DetType_t
cmf::OscillationParameterMap AsOscillationParameterMap()
float fUpperBound
upper bound for the constrained parameter
std::ostream & operator<<(std::ostream &o, cmf::Event const &event)
const std::string cOscParams_Strings[kNumOscParams]
static uint8_t VarNameToKey(std::string const &name)
std::map< cmf::OscParm_t, float > OscillationParameterMap
const XML_Char int const XML_Char * value
cmf::ParameterSpaceLoc const & NDLocation() const
float fLowerBound
lower bound for the constrained parameter
static const float kGarbageFloat
const std::string cv[Ncv]
bool const & IsNuisance() const
friend std::ostream & operator<<(std::ostream &o, cmf::Parameter const &par)
cmf::ParameterSpaceLoc const & FDLocation() const
uint8_t fDetector
which detector is this parameter for?
cmf::DetType_t const Detector() const
void InsertParameter(cmf::Parameter const &par)
float const & Value() const
uint8_t const & Key() const
bool fIsNuisance
is this parameter treated as a nuisance parameter?
bool operator<(cmf::Parameter const &other) const
double fVal
current value for the parameter in the fit
#define LOG_WARNING(category)
static bool IsOscillationParameter(std::string const &str)
float fVariance
amount parameter can vary when making random universes
Module to combine a set of results into a single file currently only does one data product type at a ...
cmf::OscParm_t const & Param() const
bool fIsFixed
is this parameter fixed during fits?
float const & UpperBound() const
bool operator==(cmf::Parameter const &other) const
uint8_t fKey
key for this parameter
double const & Value() const
std::string const Name() const
double variance(Eigen::VectorXd x)
static cmf::OscParm_t StringToOscParmType(std::string const &str)
void SetParameterValue(std::string const &parName, double const &value, cmf::DetType_t const &det)
uint8_t fParType
type of paramter this is