export_FCNBase.cxx

Go to the documentation of this file.
00001 
00012 #ifdef _MSC_VER
00013 // nonstandard extension used 'extern' before...
00014 # pragma warning(disable:4231)  
00015 
00016 // needs to have dll-interface used by client
00017 # pragma warning(disable:4251)  
00018 
00019 // non dll-interface struct
00020 # pragma warning(disable:4275)  
00021 
00022 // 'int' : forcing value to bool 'true' or 'false' (performance warning)
00023 # pragma warning(disable:4800)  
00024 #endif
00025 
00026 // include first to avoid _POSIX_C_SOURCE warning.
00027 #include <boost/python.hpp>
00028 
00029 #include "functions/FunctionBase.h"
00030 
00031 // import derived class to get correct logic for Minuit and/or Minuit2
00032 #include "minimizers/StatedFCN.h"
00033 
00034 using std::vector;
00035 using namespace boost::python;
00036 
00037 namespace hippodraw {
00038 namespace Python {
00039 
00040 void
00041 export_FCNBase()
00042 {
00043 #ifdef HAVE_MINUIT2
00044   class_ < ROOT::Minuit2::FCNBase, bases<>,
00045     ROOT::Minuit2::FCNBase, boost::noncopyable >
00046 #else
00047   class_ < FCNBase, bases<>,
00048     FCNBase, boost::noncopyable >
00049 #endif
00050 
00051     ( "FCNBase",
00052       "The base class for the objective function used in fitting.",
00053       no_init )
00054 
00055    ;
00056 }
00057 
00058 } // namespace Python
00059 } // namespace hippodraw

Generated for HippoDraw Class Library by doxygen