export_FCNBase.cxx
Go to the documentation of this file.
1 
12 #ifdef _MSC_VER
13 // nonstandard extension used 'extern' before...
14 # pragma warning(disable:4231)
15 
16 // needs to have dll-interface used by client
17 # pragma warning(disable:4251)
18 
19 // non dll-interface struct
20 # pragma warning(disable:4275)
21 
22 // 'int' : forcing value to bool 'true' or 'false' (performance warning)
23 # pragma warning(disable:4800)
24 #endif
25 
26 // include first to avoid _POSIX_C_SOURCE warning.
27 #include <boost/python.hpp>
28 
29 #include "functions/FunctionBase.h"
30 
31 // import derived class to get correct logic for Minuit and/or Minuit2
32 #include "minimizers/StatedFCN.h"
33 
34 using std::vector;
35 using namespace boost::python;
36 
37 namespace hippodraw {
38 namespace Python {
39 
40 void
42 {
43 #ifdef HAVE_MINUIT2
44  class_ < ROOT::Minuit2::FCNBase, bases<>,
45  ROOT::Minuit2::FCNBase, boost::noncopyable >
46 #else
47  class_ < FCNBase, bases<>,
48  FCNBase, boost::noncopyable >
49 #endif
50 
51  ( "FCNBase",
52  "The base class for the objective function used in fitting.",
53  no_init )
54 
55  ;
56 }
57 
58 } // namespace Python
59 } // namespace hippodraw

Generated for HippoDraw Class Library by doxygen