11 const char* FitParameter::_initString =
" 1\t0.0\t0.0\t0.0\t0.0";
12 const char* FitParameter::getInitString(){
return _initString;}
14 FitParameter::FitParameter(
const std::string& name
54 ,
const std::vector<double>& blindingPars
97 , _iFixInit((int) fow)
129 TRandom3 rnd(seed + 99);
141 , _blinding(other._blinding)
144 , _psetIndex(other._psetIndex)
146 , _iFixInit(other._iFixInit)
147 , _meanInit(other._meanInit)
148 , _stepInit(other._stepInit)
149 , _minInit(other._minInit)
150 , _maxInit(other._maxInit)
151 , _scanParameters(other._scanParameters)
152 , _blindingParameters(other._blindingParameters)
153 , _meanResult(other._meanResult)
154 , _errResult(other._errResult)
155 , _errPosResult(other._errPosResult)
156 , _errNegResult(other._errNegResult)
183 if(0 == ps)
return false;
189 if(ps ==
_pset)
return true;
193 if(0 != ps) ps->
add(
this);
207 if(!
_quiet) cout <<
"ERROR in FitParameter::setFromParsedLine" 208 <<
" need at least 3 parameters:\n" 209 <<
" iFix, initial mean" 214 if(!
_quiet) std::cout <<
"ERROR in FitParameter::setFromParsedLine" 215 <<
" wrong parameter name. My name is " <<
_name 216 <<
" the line's first element is " << vsl[0]
220 unsigned int start=0;
343 os <<
"\"" <<
name() <<
"\"" 364 os <<
"\"" <<
name() <<
"\"" 370 std::string nameStr =
"** name";
371 if(namelength > 0) nameStr.resize(namelength,
' ');
381 std::string nameStr =
"** name";
382 if(namelength > 0) nameStr.resize(namelength,
' ');
virtual int parSetIndex() const
void stringToAnything(const std::string &str, T &anything)
virtual void print(std::ostream &os=std::cout) const
virtual bool setParSet(MinuitParameterSet *ps)
virtual bool setFromParsedLine(const ParsedParameterLine &line)
virtual bool setFromParsedFile()
NamedParameter< double > _blindingParameters
double blindedMean() const
static void printFormat(std::ostream &os=std::cout, int pad=0)
static MinuitParameterSet * getDefaultSet()
const std::vector< std::string > & parsedStrings() const
static void printResultFormat(std::ostream &os=std::cout, int pad=0)
bool unregister(IMinuitParameter *patPtr)
virtual const std::string & name() const
virtual double blinding() const
virtual void printResultVsInput(std::ostream &os=std::cout) const
virtual void setCurrentFitVal(double fv)
void setCurrentValToInit()
bool add(IMinuitParameter *parPtr)
FitParameter(const FitParameter &other)
virtual double getCurrentFitVal() const
MinuitParameterSet * _pset
void setResult(double fitMean, double fitErr, double fitErrPos, double fitErrNeg)
virtual void printVal(std::ostream &os=std::cout) const
bool gotInitialised() const
static const char * getInitString()
bool setFromInitStringNoName(const std::string &str_in)
NamedParameter< double > _scanParameters
bool addToParSet(MinuitParameterSet *ps)
virtual const T & getVal(int i=0) const
virtual bool setParSetIndex(int psetIndex)
std::ostream & operator<<(std::ostream &os, const FitParameter &fp)