MINT2
Public Member Functions | Private Member Functions | Private Attributes | List of all members
MINT::FitParDependent Class Reference

#include <FitParDependent.h>

Inheritance diagram for MINT::FitParDependent:
MINT::IFitParRegister MINT::PolymorphVector< FitParRef > MINT::IFitParDependent Amplitude AmpPair BW_BW MINT::ComplexProductForEvent< IDalitzEvent > FitAmplitude FitAmpPair MINT::ComplexProduct MINT::ComplexProductForEvent< EVENT_TYPE > MINT::FitComplex ResonancePropertiesFitRef singleTopHatShape SpinFactor TimePdfIntegrator

Public Member Functions

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
 

Private Member Functions

bool ignoreFitParRef (const FitParRef &fpr) const
 

Private Attributes

IFitParRegister_daddy
 

Additional Inherited Members

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

Detailed Description

Definition at line 13 of file FitParDependent.h.

Constructor & Destructor Documentation

◆ FitParDependent() [1/2]

FitParDependent::FitParDependent ( IFitParRegister daddy = 0)

Definition at line 51 of file FitParDependent.cpp.

51 : _daddy(daddy){}
IFitParRegister * _daddy

◆ FitParDependent() [2/2]

FitParDependent::FitParDependent ( const FitParDependent other,
IFitParRegister newDaddy = 0 
)

Definition at line 57 of file FitParDependent.cpp.

59  if(0 != newDaddy) _daddy = newDaddy;
60 }
IFitParRegister * _daddy

Member Function Documentation

◆ changedSinceLastCall()

virtual bool MINT::FitParDependent::changedSinceLastCall ( ) const
inlinevirtual

Implements MINT::IFitParRegister.

Definition at line 36 of file FitParDependent.h.

36  {
37  for(unsigned int i=0; i < this->size(); i++){
38  if( ((*this)[i]).changedSinceLastCall() ) return true;
39  }
40  return false;
41  }
virtual unsigned int size() const

◆ ignoreFitParRef()

bool FitParDependent::ignoreFitParRef ( const FitParRef fpr) const
private

Definition at line 31 of file FitParDependent.cpp.

31  {
32  return (0 != fpr.theFitParameter().iFixInit())
33  || (0 == fpr.theFitParameter().stepInit());
34 }
int iFixInit() const
double stepInit() const
const FitParameter & theFitParameter() const
Definition: FitParRef.h:45

◆ listFitParDependencies()

void FitParDependent::listFitParDependencies ( std::ostream &  os = std::cout) const
virtual

Implements MINT::IFitParDependent.

Definition at line 62 of file FitParDependent.cpp.

62  {
63  for(unsigned int i=0; i < this->size(); i++){
64  const FitParameter& fp = ((*this)[i]).theFitParameter();
65  double prev = ((*this)[i]).lastValue();
66  bool ch = (((double) fp) != prev);
67  os << fp << ", prev: " << prev << (ch ? " changed" : "") << ", "
68  << ((*this)[i]).changedSinceLastCall()<< ", "
69  << changedSinceLastCall() << endl;
70  }
71 }
virtual bool changedSinceLastCall() const
virtual unsigned int size() const

◆ operator[]() [1/2]

virtual const FitParRef& MINT::FitParDependent::operator[] ( unsigned int  i) const
inlinevirtual

Implements MINT::IFitParDependent.

Definition at line 28 of file FitParDependent.h.

28  {
30  }
T & at(unsigned int i)

◆ operator[]() [2/2]

virtual FitParRef& MINT::FitParDependent::operator[] ( unsigned int  i)
inlinevirtual

Definition at line 32 of file FitParDependent.h.

32  {
34  }
T & at(unsigned int i)

◆ registerFitParDependence() [1/2]

bool FitParDependent::registerFitParDependence ( const IFitParDependent fpd)
virtual

Implements MINT::IFitParRegister.

Definition at line 36 of file FitParDependent.cpp.

36  {
37  for(unsigned int i=0; i < fpd.size(); i++){
39  }
40  return true;
41 }
virtual unsigned int size() const =0
virtual bool registerFitParDependence(const IFitParDependent &fpd)

◆ registerFitParDependence() [2/2]

bool FitParDependent::registerFitParDependence ( const FitParRef fpr)

Definition at line 42 of file FitParDependent.cpp.

42  {
43  if(ignoreFitParRef(fpr)) return false;
44 
45  this->push_back(fpr);
46  if(0 != _daddy) _daddy->registerFitParDependence(fpr);
47  return true;
48 }
void push_back(const FitParRef &c)
bool ignoreFitParRef(const FitParRef &fpr) const
virtual bool registerFitParDependence(const IFitParDependent &fpd)=0
IFitParRegister * _daddy

◆ rememberFitParValues()

virtual void MINT::FitParDependent::rememberFitParValues ( )
inlinevirtual

Implements MINT::IFitParDependent.

Definition at line 43 of file FitParDependent.h.

43  {
44  for(unsigned int i=0; i < this->size(); i++){
45  ((*this)[i]).rememberFitParValues();
46  }
47  }
virtual unsigned int size() const
virtual void rememberFitParValues()

◆ removeAllFitParDependencies()

void MINT::FitParDependent::removeAllFitParDependencies ( )
inline

Definition at line 51 of file FitParDependent.h.

◆ size()

virtual unsigned int MINT::FitParDependent::size ( ) const
inlinevirtual

Implements MINT::IFitParDependent.

Definition at line 25 of file FitParDependent.h.

Member Data Documentation

◆ _daddy

IFitParRegister* MINT::FitParDependent::_daddy
private

Definition at line 17 of file FitParDependent.h.


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