MINT2
Public Member Functions | Protected Attributes | List of all members
FindMaxFCN Class Reference
Inheritance diagram for FindMaxFCN:
MINT::Minimisable MINT::IMinimisable

Public Member Functions

double getVal ()
 
 FindMaxFCN (FitParameter &s0, FitParameter &s1, FitParameter &s2, FitParameter &s3, FitParameter &s4, DalitzBox *box, MinuitParameterSet *mps)
 
- 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 parametersChanged ()
 
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 ()
 

Protected Attributes

FitParameter_s0
 
FitParameter_s1
 
FitParameter_s2
 
FitParameter_s3
 
FitParameter_s4
 
DalitzBox_box
 

Detailed Description

Definition at line 25 of file DalitzBox.cpp.

Constructor & Destructor Documentation

◆ FindMaxFCN()

FindMaxFCN::FindMaxFCN ( FitParameter s0,
FitParameter s1,
FitParameter s2,
FitParameter s3,
FitParameter s4,
DalitzBox box,
MinuitParameterSet mps 
)
inline

Definition at line 56 of file DalitzBox.cpp.

64  : Minimisable(mps)
65  , _s0(s0)
66  , _s1(s1)
67  , _s2(s2)
68  , _s3(s3)
69  , _s4(s4)
70  , _box(box)
71  {
72  }
FitParameter & _s2
Definition: DalitzBox.cpp:32
FitParameter & _s4
Definition: DalitzBox.cpp:34
FitParameter & _s3
Definition: DalitzBox.cpp:33
FitParameter & _s1
Definition: DalitzBox.cpp:31
DalitzBox * _box
Definition: DalitzBox.cpp:36
FitParameter & _s0
Definition: DalitzBox.cpp:30
Minimisable(MinuitParameterSet *mps=0)
Definition: Minimisable.cpp:6

Member Function Documentation

◆ getVal()

double FindMaxFCN::getVal ( )
inlinevirtual

Implements MINT::Minimisable.

Definition at line 39 of file DalitzBox.cpp.

39  {
40  bool db=false;
41  if(db) cout << " called getVal() " << endl;
43  if(db) cout << " got event Ptr " << evtPtr << endl;
44  if(0 == evtPtr) return 0;
45  if(_box->insideDaddysArea(*evtPtr)) return 0;
46 
47  if(db) cout << " evtPtr->print() ";
48  if(db)evtPtr->print();
49  if(db) cout << " that worked " << endl;
50  double val = _box->ampsWithPhaseSpace((*evtPtr));
51  if(db) cout << " got val " << val << endl;
52  if(db) cout << " returning " << -val << endl;
53  return -val;
54  }
FitParameter & _s2
Definition: DalitzBox.cpp:32
FitParameter & _s4
Definition: DalitzBox.cpp:34
FitParameter & _s3
Definition: DalitzBox.cpp:33
FitParameter & _s1
Definition: DalitzBox.cpp:31
double ampsWithPhaseSpace(IDalitzEvent &ep)
Definition: DalitzBox.cpp:285
DalitzBox * _box
Definition: DalitzBox.cpp:36
FitParameter & _s0
Definition: DalitzBox.cpp:30
MINT::counted_ptr< DalitzEvent > makeEventForOwner() const
const MappedDalitzArea & area() const
Definition: DalitzBox.h:103
bool insideDaddysArea(const DalitzEvent &evt) const
Definition: DalitzBox.cpp:232

Member Data Documentation

◆ _box

DalitzBox* FindMaxFCN::_box
protected

Definition at line 36 of file DalitzBox.cpp.

◆ _s0

FitParameter& FindMaxFCN::_s0
protected

Definition at line 30 of file DalitzBox.cpp.

◆ _s1

FitParameter& FindMaxFCN::_s1
protected

Definition at line 31 of file DalitzBox.cpp.

◆ _s2

FitParameter& FindMaxFCN::_s2
protected

Definition at line 32 of file DalitzBox.cpp.

◆ _s3

FitParameter& FindMaxFCN::_s3
protected

Definition at line 33 of file DalitzBox.cpp.

◆ _s4

FitParameter& FindMaxFCN::_s4
protected

Definition at line 34 of file DalitzBox.cpp.


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