Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:10:23

0001 // @(#)root/minuit2:$Id$
0002 // Authors: M. Winkler, F. James, L. Moneta, A. Zsenei   2003-2005
0003 
0004 /**********************************************************************
0005  *                                                                    *
0006  * Copyright (c) 2005 LCG ROOT Math team,  CERN/PH-SFT                *
0007  *                                                                    *
0008  **********************************************************************/
0009 
0010 #ifndef ROOT_Minuit2_CombinedMinimizer
0011 #define ROOT_Minuit2_CombinedMinimizer
0012 
0013 #include "Minuit2/ModularFunctionMinimizer.h"
0014 #include "Minuit2/MnSeedGenerator.h"
0015 #include "Minuit2/CombinedMinimumBuilder.h"
0016 
0017 namespace ROOT {
0018 
0019 namespace Minuit2 {
0020 
0021 //__________________________________________________________________________
0022 /**
0023    Combined minimizer: combination of Migrad and Simplex. I
0024    If the Migrad method fails at first attempt, a simplex
0025    minimization is performed and then migrad is tried again.
0026 
0027 
0028 */
0029 
0030 class CombinedMinimizer : public ModularFunctionMinimizer {
0031 
0032 public:
0033    CombinedMinimizer() : fMinSeedGen(MnSeedGenerator()), fMinBuilder(CombinedMinimumBuilder()) {}
0034 
0035    ~CombinedMinimizer() override {}
0036 
0037    const MinimumSeedGenerator &SeedGenerator() const override { return fMinSeedGen; }
0038    const MinimumBuilder &Builder() const override { return fMinBuilder; }
0039    MinimumBuilder &Builder() override { return fMinBuilder; }
0040 
0041 private:
0042    MnSeedGenerator fMinSeedGen;
0043    CombinedMinimumBuilder fMinBuilder;
0044 };
0045 
0046 } // namespace Minuit2
0047 
0048 } // namespace ROOT
0049 
0050 #endif // ROOT_Minuit2_CombinedMinimizer