Back to home page

EIC code displayed by LXR

 
 

    


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

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_MnFunctionCross
0011 #define ROOT_Minuit2_MnFunctionCross
0012 
0013 #include "Minuit2/MnConfig.h"
0014 #include <vector>
0015 
0016 namespace ROOT {
0017 
0018 namespace Minuit2 {
0019 
0020 class FCNBase;
0021 class MnUserParameterState;
0022 class MnStrategy;
0023 class MnCross;
0024 
0025 /**
0026    MnFunctionCross
0027 */
0028 
0029 class MnFunctionCross {
0030 
0031 public:
0032    MnFunctionCross(const FCNBase &fcn, const MnUserParameterState &state, double fval, const MnStrategy &stra)
0033       : fFCN(fcn), fState(state), fFval(fval), fStrategy(stra)
0034    {
0035    }
0036 
0037    ~MnFunctionCross() {}
0038 
0039    MnCross operator()(const std::vector<unsigned int> &, const std::vector<double> &, const std::vector<double> &,
0040                       double, unsigned int) const;
0041 
0042 private:
0043    const FCNBase &fFCN;
0044    const MnUserParameterState &fState;
0045    double fFval;
0046    const MnStrategy &fStrategy;
0047 };
0048 
0049 } // namespace Minuit2
0050 
0051 } // namespace ROOT
0052 
0053 #endif // ROOT_Minuit2_MnFunctionCross