Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 10:22:13

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_ScanMinimizer
0011 #define ROOT_Minuit2_ScanMinimizer
0012 
0013 #include "Minuit2/MnConfig.h"
0014 #include "Minuit2/ModularFunctionMinimizer.h"
0015 #include "Minuit2/ScanBuilder.h"
0016 #include "Minuit2/SimplexSeedGenerator.h"
0017 
0018 namespace ROOT {
0019 
0020 namespace Minuit2 {
0021 
0022 //_____________________________________________________________
0023 /**
0024    Class implementing the required methods for a minimization using SCAN
0025    API is provided in the upper ROOT::Minuit2::ModularFunctionMinimizer class
0026  */
0027 
0028 class ScanMinimizer : public ModularFunctionMinimizer {
0029 
0030 public:
0031    ScanMinimizer() : fSeedGenerator(SimplexSeedGenerator()), fBuilder(ScanBuilder()) {}
0032 
0033    ~ScanMinimizer() override {}
0034 
0035    const MinimumSeedGenerator &SeedGenerator() const override { return fSeedGenerator; }
0036    const MinimumBuilder &Builder() const override { return fBuilder; }
0037    MinimumBuilder &Builder() override { return fBuilder; }
0038 
0039 private:
0040    SimplexSeedGenerator fSeedGenerator;
0041    ScanBuilder fBuilder;
0042 };
0043 
0044 } // namespace Minuit2
0045 
0046 } // namespace ROOT
0047 
0048 #endif // ROOT_Minuit2_ScanMinimizer