MINT2
Public Types | Public Member Functions | List of all members
MINT::FitComplex Class Referenceabstract

#include <FitComplex.h>

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

Public Types

enum  TYPE { POLAR =0, CARTESIAN =1, UNDEFINED =2 }
 

Public Member Functions

virtual TYPE type () const =0
 
virtual FitParameterp1 ()=0
 
virtual FitParameterp2 ()=0
 
virtual const FitParameterp1 () const =0
 
virtual const FitParameterp2 () const =0
 
virtual void set (std::complex< double > z)=0
 
virtual std::complex< double > getVal () const =0
 
virtual std::complex< double > getValInit () const =0
 
bool gotInitialised () const
 
virtual void print (std::ostream &os=std::cout) const
 
double getReal () const
 
double getImag () const
 
double getAmp () const
 
double getPhase () const
 
bool isConstant () const
 
virtual bool isZero () const
 
virtual operator std::complex< double > () 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
 

Additional Inherited Members

- Protected Member Functions inherited from MINT::IReturnComplex
 IReturnComplex ()
 
- Protected Attributes inherited from MINT::PolymorphVector< FitParRef >
std::vector< FitParRef_vec
 

Detailed Description

Definition at line 24 of file FitComplex.h.

Member Enumeration Documentation

◆ TYPE

Enumerator
POLAR 
CARTESIAN 
UNDEFINED 

Definition at line 38 of file FitComplex.h.

Constructor & Destructor Documentation

◆ FitComplex()

FitComplex::FitComplex ( IFitParRegister daddy = 0)

Definition at line 66 of file FitComplex.cpp.

66 : FitParDependent(daddy){}
FitParDependent(IFitParRegister *daddy=0)

◆ ~FitComplex()

virtual MINT::FitComplex::~FitComplex ( )
inlinevirtual

Definition at line 81 of file FitComplex.h.

81 {}

Member Function Documentation

◆ ComplexVal()

virtual std::complex<double> MINT::FitComplex::ComplexVal ( )
inlinevirtual

Implements MINT::IReturnComplex.

Definition at line 75 of file FitComplex.h.

75  {
76  return getVal();
77  }
virtual std::complex< double > getVal() const =0

◆ getAmp()

double MINT::FitComplex::getAmp ( ) const
inline

Definition at line 60 of file FitComplex.h.

60  {
61  if(! gotInitialised()) return 0;
62  return std::abs(getVal());
63  }
virtual std::complex< double > getVal() const =0
bool gotInitialised() const
Definition: FitComplex.h:52

◆ getImag()

double MINT::FitComplex::getImag ( ) const
inline

Definition at line 58 of file FitComplex.h.

58 {return getVal().imag();}
virtual std::complex< double > getVal() const =0

◆ getPhase()

double MINT::FitComplex::getPhase ( ) const
inline

Definition at line 64 of file FitComplex.h.

64  {
65  if(! gotInitialised()) return 0;
66  return std::arg(getVal());
67  }
virtual std::complex< double > getVal() const =0
bool gotInitialised() const
Definition: FitComplex.h:52

◆ getReal()

double MINT::FitComplex::getReal ( ) const
inline

Definition at line 57 of file FitComplex.h.

57 {return getVal().real();}
virtual std::complex< double > getVal() const =0

◆ getVal()

virtual std::complex<double> MINT::FitComplex::getVal ( ) const
pure virtual

◆ getValInit()

virtual std::complex<double> MINT::FitComplex::getValInit ( ) const
pure virtual

◆ gotInitialised()

bool MINT::FitComplex::gotInitialised ( ) const
inline

Definition at line 52 of file FitComplex.h.

52  {
53  return p1().gotInitialised() && p2().gotInitialised();
54  }
virtual FitParameter & p1()=0
virtual FitParameter & p2()=0

◆ isConstant()

bool FitComplex::isConstant ( ) const

Definition at line 68 of file FitComplex.cpp.

68  {
69  return p1().iFixInit() && p2().iFixInit();
70 }
virtual FitParameter & p1()=0
int iFixInit() const
virtual FitParameter & p2()=0

◆ isZero()

bool FitComplex::isZero ( ) const
virtual

Reimplemented in MINT::FitComplexPolar, and MINT::FitComplexCart.

Definition at line 72 of file FitComplex.cpp.

72  {
73  return 0 == getAmp();
74 }
double getAmp() const
Definition: FitComplex.h:60

◆ operator std::complex< double >()

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

Reimplemented in MINT::FitComplexPolar, and MINT::FitComplexCart.

Definition at line 72 of file FitComplex.h.

72  {
73  return getVal();
74  }
virtual std::complex< double > getVal() const =0

◆ operator-()

std::complex<double> MINT::FitComplex::operator- ( ) const
inline

Definition at line 85 of file FitComplex.h.

85 { return - this->getVal();}
virtual std::complex< double > getVal() const =0

◆ p1() [1/2]

virtual FitParameter& MINT::FitComplex::p1 ( )
pure virtual

◆ p1() [2/2]

virtual const FitParameter& MINT::FitComplex::p1 ( ) const
pure virtual

◆ p2() [1/2]

virtual FitParameter& MINT::FitComplex::p2 ( )
pure virtual

◆ p2() [2/2]

virtual const FitParameter& MINT::FitComplex::p2 ( ) const
pure virtual

◆ print()

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

Reimplemented in MINT::FitComplexPolar, and MINT::FitComplexCart.

Definition at line 81 of file FitComplex.cpp.

81  {
82  os << " value " << getVal();
83 }
virtual std::complex< double > getVal() const =0

◆ set()

virtual void MINT::FitComplex::set ( std::complex< double >  z)
pure virtual

◆ setParameterSet()

void FitComplex::setParameterSet ( MinuitParameterSet pset)

Definition at line 75 of file FitComplex.cpp.

75  {
76  if(0 == pset) return;
77  p1().addToParSet(pset);
78  p2().addToParSet(pset);
79 }
virtual FitParameter & p1()=0
virtual FitParameter & p2()=0
bool addToParSet(MinuitParameterSet *ps)

◆ type()

virtual TYPE MINT::FitComplex::type ( ) const
pure virtual

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