MINT2
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
MINT::FitComplexCart Class Reference

#include <FitComplexCart.h>

Inheritance diagram for MINT::FitComplexCart:
MINT::FitComplex MINT::IReturnComplex MINT::FitParDependent MINT::IFitParRegister MINT::PolymorphVector< FitParRef > MINT::IFitParDependent

Public Member Functions

const FitParameterreal () const
 
const FitParameterimag () const
 
FitParameterreal ()
 
FitParameterimag ()
 
virtual FitComplex::TYPE type () const
 
virtual FitParameterp1 ()
 
virtual FitParameterp2 ()
 
virtual const FitParameterp1 () const
 
virtual const FitParameterp2 () const
 
virtual void set (std::complex< double > z)
 
 FitComplexCart (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)
 
 FitComplexCart (const std::string &varName, MinuitParameterSet *pset, MINT::IFitParRegister *daddy=0, FitParameter::FIX_OR_WHAT fow=FitParameter::FIX, NamedParameterBase::VERBOSITY vb=NamedParameterBase::VERBOSE)
 
virtual ~FitComplexCart ()
 
virtual std::complex< double > getVal () const
 
virtual std::complex< double > getValInit () const
 
virtual bool gotInitialised () const
 
virtual void print (std::ostream &os=std::cout) const
 
virtual operator std::complex< double > () const
 
virtual bool isZero () const
 
- Public Member Functions inherited from MINT::FitComplex
bool gotInitialised () const
 
double getReal () const
 
double getImag () const
 
double getAmp () const
 
double getPhase () const
 
bool isConstant () const
 
virtual std::complex< double > ComplexVal ()
 
 FitComplex (IFitParRegister *daddy=0)
 
virtual ~FitComplex ()
 
void setParameterSet (MinuitParameterSet *pset)
 
std::complex< double > operator- () const
 
- Public Member Functions inherited from MINT::IReturnComplex
virtual ~IReturnComplex ()
 
- Public Member Functions inherited from MINT::FitParDependent
virtual unsigned int size () const
 
virtual const FitParRefoperator[] (unsigned int i) const
 
virtual FitParRefoperator[] (unsigned int i)
 
virtual bool changedSinceLastCall () const
 
virtual void rememberFitParValues ()
 
virtual bool registerFitParDependence (const IFitParDependent &fpd)
 
bool registerFitParDependence (const FitParRef &fpr)
 
void removeAllFitParDependencies ()
 
 FitParDependent (IFitParRegister *daddy=0)
 
 FitParDependent (const FitParDependent &other, IFitParRegister *newDaddy=0)
 
void listFitParDependencies (std::ostream &os=std::cout) const
 
- Public Member Functions inherited from MINT::PolymorphVector< FitParRef >
 PolymorphVector ()
 
 PolymorphVector (unsigned int N)
 
 PolymorphVector (unsigned int N, const FitParRef &c)
 
 PolymorphVector (const PolymorphVector &other)
 
 PolymorphVector (const typename std::vector< FitParRef > &other)
 
virtual ~PolymorphVector ()
 
std::vector< FitParRef > & theVector ()
 
const std::vector< FitParRef > & theVector () const
 
FitParRefoperator[] (unsigned int i)
 
const FitParRefoperator[] (unsigned int i) const
 
FitParRefat (unsigned int i)
 
const FitParRefat (unsigned int i) const
 
std::vector< FitParRef >::iterator begin ()
 
std::vector< FitParRef >::const_iterator begin () const
 
std::vector< FitParRef >::iterator end ()
 
std::vector< FitParRef >::const_iterator end () const
 
std::vector< FitParRef >::iterator find (const FitParRef &c)
 
std::vector< FitParRef >::const_iterator find (const FitParRef &c) const
 
FitParReffront ()
 
const FitParReffront () const
 
FitParRefback ()
 
const FitParRefback () const
 
unsigned int size () const
 
bool empty () const
 
void push_back (const FitParRef &c)
 
void pop_back ()
 
void erase (typename std::vector< FitParRef >::iterator pos)
 
void erase (typename std::vector< FitParRef >::iterator first, typename std::vector< FitParRef >::iterator last)
 
PolymorphVector< FitParRef > & operator= (const PolymorphVector< FitParRef > &other)
 
void clear ()
 
void resize (unsigned int N)
 
void resize (unsigned int N, const FitParRef &c)
 
 operator const typename std::vector< FitParRef > & () const
 
 operator typename std::vector< FitParRef > & ()
 
bool operator== (const MINT::PolymorphVector< FitParRef > &v2) const
 
bool operator!= (const MINT::PolymorphVector< FitParRef > &v2) const
 
bool operator< (const MINT::PolymorphVector< FitParRef > &v2) const
 
bool operator> (const MINT::PolymorphVector< FitParRef > &v2) const
 

Static Public Member Functions

static std::string makeRealName (const std::string &varName)
 
static std::string makeImagName (const std::string &varName)
 

Protected Member Functions

void defaultInit ()
 
- Protected Member Functions inherited from MINT::IReturnComplex
 IReturnComplex ()
 

Static Protected Member Functions

static double degFac ()
 

Protected Attributes

FitParameter _real
 
FitParameter _imag
 
- Protected Attributes inherited from MINT::PolymorphVector< FitParRef >
std::vector< FitParRef_vec
 

Static Protected Attributes

static double _degFac
 

Additional Inherited Members

- Public Types inherited from MINT::FitComplex
enum  TYPE { POLAR =0, CARTESIAN =1, UNDEFINED =2 }
 

Detailed Description

Definition at line 22 of file FitComplexCart.h.

Constructor & Destructor Documentation

◆ FitComplexCart() [1/2]

FitComplexCart::FitComplexCart ( 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 
)

Definition at line 22 of file FitComplexCart.cpp.

29  : FitComplex(daddy)
30  , _real(makeRealName(varName), fname, pset, fow, vb)
31  , _imag(makeImagName(varName), fname, pset, fow, vb)
32 {
33  // cout << "pset pointer in FitComplexCart " << pset << endl;
34 }
static std::string makeImagName(const std::string &varName)
static std::string makeRealName(const std::string &varName)
FitComplex(IFitParRegister *daddy=0)
Definition: FitComplex.cpp:66

◆ FitComplexCart() [2/2]

FitComplexCart::FitComplexCart ( const std::string &  varName,
MinuitParameterSet pset,
MINT::IFitParRegister daddy = 0,
FitParameter::FIX_OR_WHAT  fow = FitParameter::FIX,
NamedParameterBase::VERBOSITY  vb = NamedParameterBase::VERBOSE 
)

Definition at line 35 of file FitComplexCart.cpp.

41  : FitComplex(daddy)
42  , _real(makeRealName(varName), pset, fow, vb)
43  , _imag(makeImagName(varName), pset, fow, vb)
44 {
45 }
static std::string makeImagName(const std::string &varName)
static std::string makeRealName(const std::string &varName)
FitComplex(IFitParRegister *daddy=0)
Definition: FitComplex.cpp:66

◆ ~FitComplexCart()

FitComplexCart::~FitComplexCart ( )
virtual

Definition at line 47 of file FitComplexCart.cpp.

47  {
48 }

Member Function Documentation

◆ defaultInit()

void FitComplexCart::defaultInit ( )
protected

Definition at line 68 of file FitComplexCart.cpp.

68  {
69  real().defaultInit();
70  imag().defaultInit();
71 }
const FitParameter & real() const
const FitParameter & imag() const

◆ degFac()

static double MINT::FitComplexCart::degFac ( )
staticprotected

◆ getVal()

std::complex< double > FitComplexCart::getVal ( ) const
virtual

Implements MINT::FitComplex.

Definition at line 57 of file FitComplexCart.cpp.

57  {
58  return complex<double>((double)real(), (double) imag() );
59 }
const FitParameter & real() const
const FitParameter & imag() const

◆ getValInit()

std::complex< double > FitComplexCart::getValInit ( ) const
virtual

Implements MINT::FitComplex.

Definition at line 60 of file FitComplexCart.cpp.

60  {
61  return complex<double>( real().meanInit(), imag().meanInit());
62 }
const FitParameter & real() const
const FitParameter & imag() const

◆ gotInitialised()

bool FitComplexCart::gotInitialised ( ) const
virtual

Definition at line 64 of file FitComplexCart.cpp.

64  {
65  return real().gotInitialised() && imag().gotInitialised();
66 }
const FitParameter & real() const
const FitParameter & imag() const

◆ imag() [1/2]

const FitParameter& MINT::FitComplexCart::imag ( ) const
inline

Definition at line 39 of file FitComplexCart.h.

39 {return _imag;}

◆ imag() [2/2]

FitParameter& MINT::FitComplexCart::imag ( )
inline

Definition at line 42 of file FitComplexCart.h.

42 {return _imag;}

◆ isZero()

virtual bool MINT::FitComplexCart::isZero ( ) const
inlinevirtual

Reimplemented from MINT::FitComplex.

Definition at line 81 of file FitComplexCart.h.

81  {
82  return (0.0 == real() && 0.0 == imag());
83  }
const FitParameter & real() const
const FitParameter & imag() const

◆ makeImagName()

std::string FitComplexCart::makeImagName ( const std::string &  varName)
static

Definition at line 18 of file FitComplexCart.cpp.

18  {
19  return varName + "_Im";
20 }

◆ makeRealName()

std::string FitComplexCart::makeRealName ( const std::string &  varName)
static

Definition at line 15 of file FitComplexCart.cpp.

15  {
16  return varName + "_Re";
17 }

◆ operator std::complex< double >()

virtual MINT::FitComplexCart::operator std::complex< double > ( ) const
inlinevirtual

Reimplemented from MINT::FitComplex.

Definition at line 77 of file FitComplexCart.h.

77  {
78  return getVal();
79  }
virtual std::complex< double > getVal() const

◆ p1() [1/2]

virtual FitParameter& MINT::FitComplexCart::p1 ( )
inlinevirtual

Implements MINT::FitComplex.

Definition at line 46 of file FitComplexCart.h.

46 {return _real;}

◆ p1() [2/2]

virtual const FitParameter& MINT::FitComplexCart::p1 ( ) const
inlinevirtual

Implements MINT::FitComplex.

Definition at line 48 of file FitComplexCart.h.

48 {return _real;}

◆ p2() [1/2]

virtual FitParameter& MINT::FitComplexCart::p2 ( )
inlinevirtual

Implements MINT::FitComplex.

Definition at line 47 of file FitComplexCart.h.

47 {return _imag;}

◆ p2() [2/2]

virtual const FitParameter& MINT::FitComplexCart::p2 ( ) const
inlinevirtual

Implements MINT::FitComplex.

Definition at line 49 of file FitComplexCart.h.

49 {return _imag;}

◆ print()

void FitComplexCart::print ( std::ostream &  os = std::cout) const
virtual

Reimplemented from MINT::FitComplex.

Definition at line 72 of file FitComplexCart.cpp.

72  {
73  os << real() << "\n"
74  << imag();
75 }
const FitParameter & real() const
const FitParameter & imag() const

◆ real() [1/2]

const FitParameter& MINT::FitComplexCart::real ( ) const
inline

Definition at line 38 of file FitComplexCart.h.

38 {return _real;}

◆ real() [2/2]

FitParameter& MINT::FitComplexCart::real ( )
inline

Definition at line 41 of file FitComplexCart.h.

41 {return _real;}

◆ set()

void FitComplexCart::set ( std::complex< double >  z)
virtual

Implements MINT::FitComplex.

Definition at line 77 of file FitComplexCart.cpp.

77  {
78  _real = z.real();
79  _imag = z.imag();
80 }

◆ type()

virtual FitComplex::TYPE MINT::FitComplexCart::type ( ) const
inlinevirtual

Implements MINT::FitComplex.

Definition at line 44 of file FitComplexCart.h.

Member Data Documentation

◆ _degFac

double MINT::FitComplexCart::_degFac
staticprotected

Definition at line 35 of file FitComplexCart.h.

◆ _imag

FitParameter MINT::FitComplexCart::_imag
protected

Definition at line 31 of file FitComplexCart.h.

◆ _real

FitParameter MINT::FitComplexCart::_real
protected

Definition at line 31 of file FitComplexCart.h.


The documentation for this class was generated from the following files: