MINT2
Public Types | Public Member Functions | Private Attributes | List of all members
BinFlipChi2Simul Class Reference

#include <BinFlipChi2.h>

Inheritance diagram for BinFlipChi2Simul:
BinFlipChi2Base MINT::Minimisable MINT::IMinimisable

Public Types

typedef std::deque< BinFlipChi2 * > BinFlippers
 

Public Member Functions

 BinFlipChi2Simul (BinFlipChi2 *, BinFlipChi2 *)
 
 BinFlipChi2Simul (const BinFlippers &)
 
virtual double getVal () override
 
virtual void parametersChanged () override
 
- Public Member Functions inherited from BinFlipChi2Base
 BinFlipChi2Base (BinFlipParSet *)
 
TH2D scan2D (unsigned, unsigned, float nSigmaRange=5., unsigned nBins=300, bool zeroCentre=true, float scale=1.)
 
BinFlipParSetgetBinFlipParSet ()
 
- 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 ()
 

Private Attributes

BinFlippers m_flippers
 

Additional Inherited Members

- Protected Attributes inherited from BinFlipChi2Base
BinFlipParSetm_fitPars
 
std::complex< double > m_zcp
 
std::complex< double > m_dz
 

Detailed Description

Definition at line 68 of file BinFlipChi2.h.

Member Typedef Documentation

◆ BinFlippers

Definition at line 70 of file BinFlipChi2.h.

Constructor & Destructor Documentation

◆ BinFlipChi2Simul() [1/2]

BinFlipChi2Simul::BinFlipChi2Simul ( BinFlipChi2 flip1,
BinFlipChi2 flip2 
)

Definition at line 233 of file BinFlipChi2.cpp.

233  :
235  m_flippers(1, flip1)
236 {
237  m_flippers.push_back(flip2) ;
238 }
BinFlippers m_flippers
Definition: BinFlipChi2.h:77
BinFlipChi2Base(BinFlipParSet *)
Definition: BinFlipChi2.cpp:70
MinuitParameterSet * getParSet()
Definition: Minimisable.cpp:25

◆ BinFlipChi2Simul() [2/2]

BinFlipChi2Simul::BinFlipChi2Simul ( const BinFlippers flippers)

Definition at line 240 of file BinFlipChi2.cpp.

240  :
241  BinFlipChi2Base((BinFlipParSet*)flippers.at(0)->getParSet()),
242  m_flippers(flippers)
243 {}
BinFlippers m_flippers
Definition: BinFlipChi2.h:77
BinFlipChi2Base(BinFlipParSet *)
Definition: BinFlipChi2.cpp:70

Member Function Documentation

◆ getVal()

double BinFlipChi2Simul::getVal ( )
overridevirtual

Implements MINT::Minimisable.

Definition at line 245 of file BinFlipChi2.cpp.

245  {
246  double chi2 = 0. ;
247  for(auto* flipper : m_flippers)
248  chi2 += flipper->getVal() ;
249  return chi2 ;
250 }
BinFlippers m_flippers
Definition: BinFlipChi2.h:77

◆ parametersChanged()

void BinFlipChi2Simul::parametersChanged ( )
overridevirtual

Reimplemented from BinFlipChi2Base.

Definition at line 252 of file BinFlipChi2.cpp.

252  {
254  for(auto* flipper : m_flippers)
255  flipper->parametersChanged() ;
256 }
virtual void parametersChanged() override
Definition: BinFlipChi2.cpp:77
BinFlippers m_flippers
Definition: BinFlipChi2.h:77

Member Data Documentation

◆ m_flippers

BinFlippers BinFlipChi2Simul::m_flippers
private

Definition at line 77 of file BinFlipChi2.h.


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