MINT2
Protected Member Functions | Protected Attributes | Private Types | Private Member Functions | List of all members
MINT::SimulMinimisable Class Reference

#include <SimulMinimisable.h>

Inheritance diagram for MINT::SimulMinimisable:
MINT::Minimisable MINT::IMinimisable

Protected Member Functions

void init ()
 

Protected Attributes

Minimisables m_minimisables
 

Private Types

typedef std::deque< MINT::Minimisable * > Minimisables
 

Private Member Functions

 SimulMinimisable (MINT::Minimisable *, MINT::Minimisable *)
 
 SimulMinimisable (const Minimisables &)
 
virtual ~SimulMinimisable ()
 
virtual double getVal () override
 
virtual void parametersChanged () override
 

Additional Inherited Members

- Public Member Functions inherited from MINT::Minimisable
 Minimisable (MinuitParameterSet *mps=0)
 
 Minimisable (const Minimisable &other)
 
virtual ~Minimisable ()
 
void setPset (MinuitParameterSet *mps)
 
MinuitParameterSetgetParSet ()
 
virtual void beginFit ()
 
virtual void endFit ()
 
double getNewVal ()
 
- Public Member Functions inherited from MINT::IMinimisable
virtual void Gradient (std::vector< double > &grad)
 
virtual bool useAnalyticGradient ()
 
virtual void setUseAnalyticGradient (bool useAnalyticGradient)
 
virtual ~IMinimisable ()
 

Detailed Description

Definition at line 8 of file SimulMinimisable.h.

Member Typedef Documentation

◆ Minimisables

Definition at line 9 of file SimulMinimisable.h.

Constructor & Destructor Documentation

◆ SimulMinimisable() [1/2]

MINT::SimulMinimisable::SimulMinimisable ( MINT::Minimisable mini1,
MINT::Minimisable mini2 
)
private

Definition at line 6 of file SimulMinimisable.cpp.

6  :
7  Minimisable(new MinuitParameterSet()),
8  m_minimisables(1, mini1)
9  {
10  m_minimisables.push_back(mini2) ;
11  init() ;
12  }
Minimisable(MinuitParameterSet *mps=0)
Definition: Minimisable.cpp:6

◆ SimulMinimisable() [2/2]

MINT::SimulMinimisable::SimulMinimisable ( const Minimisables minimisers)
private

Definition at line 14 of file SimulMinimisable.cpp.

14  :
15  Minimisable(new MinuitParameterSet()),
16  m_minimisables(minimisers)
17  {
18  init() ;
19  }
Minimisable(MinuitParameterSet *mps=0)
Definition: Minimisable.cpp:6

◆ ~SimulMinimisable()

MINT::SimulMinimisable::~SimulMinimisable ( )
privatevirtual

Definition at line 21 of file SimulMinimisable.cpp.

21  {
22  delete getParSet() ;
23  }
MinuitParameterSet * getParSet()
Definition: Minimisable.cpp:25

Member Function Documentation

◆ getVal()

double MINT::SimulMinimisable::getVal ( )
overrideprivatevirtual

Implements MINT::Minimisable.

Definition at line 33 of file SimulMinimisable.cpp.

33  {
34  double val = 0. ;
35  for(auto* mini : m_minimisables)
36  val += mini->getVal() ;
37  return val ;
38  }

◆ init()

void MINT::SimulMinimisable::init ( )
protected

Definition at line 25 of file SimulMinimisable.cpp.

25  {
26  for(auto* mini : m_minimisables){
27  MinuitParameterSet* parset = mini->getParSet() ;
28  for(unsigned ipar = 0 ; ipar < parset->size() ; ++ipar)
29  getParSet()->add(parset->getParPtr(ipar)) ;
30  }
31  }
MinuitParameterSet * getParSet()
Definition: Minimisable.cpp:25
bool add(IMinuitParameter *parPtr)

◆ parametersChanged()

void MINT::SimulMinimisable::parametersChanged ( )
overrideprivatevirtual

Reimplemented from MINT::Minimisable.

Definition at line 40 of file SimulMinimisable.cpp.

40  {
42  for(auto* mini : m_minimisables)
43  mini->parametersChanged() ;
44  }
virtual void parametersChanged()
Definition: Minimisable.h:22

Member Data Documentation

◆ m_minimisables

Minimisables MINT::SimulMinimisable::m_minimisables
protected

Definition at line 18 of file SimulMinimisable.h.


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