laura is hosted by Hepforge, IPPP Durham
Laura++  3.6.0
A maximum likelihood fitting package for performing Dalitz-plot analysis.
LauASqMaxFinder.hh
Go to the documentation of this file.
1 
2 /*
3 Copyright 2022 University of Warwick
4 
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
8 
9  http://www.apache.org/licenses/LICENSE-2.0
10 
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16 */
17 
18 /*
19 Laura++ package authors:
20 John Back
21 Paul Harrison
22 Thomas Latham
23 */
24 
29 #ifndef LAU_ASQ_MAX_FINDER
30 #define LAU_ASQ_MAX_FINDER
31 
32 #include "LauFitObject.hh"
33 
34 #include <memory>
35 #include <vector>
36 
37 class LauIsobarDynamics;
38 class LauParameter;
39 
46 class LauASqMaxFinder : public LauFitObject {
47 
48  public:
50 
53  explicit LauASqMaxFinder( LauIsobarDynamics& iso );
54 
56 
59  Double_t find();
60 
62 
69  void setParsFromMinuit( Double_t* par, Int_t npar ) override;
70 
72 
76  Double_t getTotNegLogLikelihood() override;
77 
78  private:
81 
83  Bool_t printMinimisationWarnings_ { kTRUE };
84 
86  std::vector<std::unique_ptr<LauParameter>> ownedParams_;
87 
89  std::vector<LauParameter*> params_;
90 
91  ClassDefOverride( LauASqMaxFinder, 0 )
92 };
93 
94 #endif
Class for defining the fit parameter objects.
Definition: LauParameter.hh:49
LauIsobarDynamics & iso_
The isobar dynamics for which we need to find the maximum |A|^2 value.
void setParsFromMinuit(Double_t *par, Int_t npar) override
This function sets the parameter values from Minuit.
Bool_t printMinimisationWarnings_
Flag to control printing of warnings if the fit wanders outside the DP.
LauASqMaxFinder(LauIsobarDynamics &iso)
Constructor.
Double_t find()
Run the minimisation to locate the maximum |A|^2 value.
Double_t getTotNegLogLikelihood() override
Calculate the new value of the negative log likelihood.
std::vector< std::unique_ptr< LauParameter > > ownedParams_
The fit parameters (owned by us)
Class for locating the |A|^2 max for a given model.
The abstract interface for the objects that control the calculation of the likelihood.
Definition: LauFitObject.hh:47
File containing declaration of LauFitObject class.
Class for defining signal dynamics using the isobar model.
std::vector< LauParameter * > params_
The fit parameters in a form to be passed to the minimiser.