Back to home page

EIC code displayed by LXR

 
 

    


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

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_MnUserFcn
0011 #define ROOT_Minuit2_MnUserFcn
0012 
0013 #include "Minuit2/MnFcn.h"
0014 
0015 namespace ROOT {
0016 
0017 namespace Minuit2 {
0018 
0019 class MnUserTransformation;
0020 
0021 /**
0022    Wrapper used by Minuit of FCN interface
0023    containing a reference to the transformation object
0024  */
0025 class MnUserFcn : public MnFcn {
0026 
0027 public:
0028    MnUserFcn(const FCNBase &fcn, const MnUserTransformation &trafo, int ncall = 0)
0029       : MnFcn(fcn, ncall), fTransform(trafo)
0030    {
0031    }
0032 
0033    ~MnUserFcn() override {}
0034 
0035    double operator()(const MnAlgebraicVector &) const override;
0036 
0037 private:
0038    const MnUserTransformation &fTransform;
0039 };
0040 
0041 } // namespace Minuit2
0042 
0043 } // namespace ROOT
0044 
0045 #endif // ROOT_Minuit2_MnUserFcn