15 double FitComplexPolar::_degFac = -9999;
16 void FitComplexPolar::calculateDegFac(){
18 , (std::string)
"degrees");
19 if(phaseOpt.
getVal() == (std::string)
"degrees"){
21 }
else if(phaseOpt.
getVal() == (std::string)
"rad"){
24 cout <<
" ERROR in FitComplexPolar::calculateDegFac()" 25 <<
" Unknown option " << phaseOpt
26 <<
" Allowed values are are: \"degrees\" and \"rad\"." 27 <<
" Assuming you mean rad." 34 std::string FitComplexPolar::makeAmpName(
const std::string& varName){
35 return varName +
"_Amp";
37 std::string FitComplexPolar::makePhaseName(
const std::string& varName){
38 return varName +
"_Phase";
41 FitComplexPolar::FitComplexPolar(
const std::string& varName
50 , _amp (makeAmpName( varName), fname, pset, fow, vb)
51 , _phase(makePhaseName(varName), fname, pset, fow, vb)
63 , _amp (makeAmpName( varName), pset, fow, vb)
64 , _phase(makePhaseName(varName), pset, fow, vb)
84 if(0.0 == a)
return 0;
87 return std::complex<double>(a*cos(p), a*sin(p));
100 return std::complex<double>(a*cos(p), a*sin(p));
virtual void set(std::complex< double > z)
const FitParameter & phase() const
FitComplexPolar(const std::string &varName, const char *fname=0, MinuitParameterSet *pset=0, MINT::IFitParRegister *daddy=0, FitParameter::FIX_OR_WHAT fow=FitParameter::FIX, NamedParameterBase::VERBOSITY vb=NamedParameterBase::VERBOSE)
const FitParameter & amp() const
virtual void print(std::ostream &os=std::cout) const
virtual std::complex< double > getValInit() const
bool gotInitialised() const
virtual std::complex< double > getVal() const
virtual bool gotInitialised() const
virtual ~FitComplexPolar()
virtual const T & getVal(int i=0) const