export_NTupleFCN.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 
00027 // include first to avoid _POSIX_C_SOURCE warning.
00028 #include <boost/python.hpp>
00029 
00030 #include "minimizers/NTupleFCN.h"
00031 
00032 #include "datasrcs/DataSource.h"
00033 #include "functions/FunctionBase.h"
00034 
00035 using std::vector;
00036 using namespace boost::python;
00037 
00038 namespace hippodraw {
00039 namespace Python {
00040 
00041 void
00042 export_NTupleFCN()
00043 {
00044   class_ < NTupleFCN, bases < StatedFCN >, 
00045     NTupleFCN, boost::noncopyable >
00046     ( "NTupleFCN",
00047       "A objective function class used in fitting that uses a DataSource to\n"
00048       "access the data\n",
00049       no_init )
00050 
00051     .def ( "setDataSource", 
00052            ( void ( NTupleFCN::* ) // function pointer
00053              (const DataSource * ) ) // function signature
00054            &NTupleFCN::setDataSource )
00055 
00056     .def ( "setDataSource",
00057            ( void ( NTupleFCN::* ) // function pointer
00058              ( const DataSource *,
00059                int dimension,
00060                const std::vector < int > &  ) ) // function signature
00061            &NTupleFCN::setDataSource,
00062            "setDataSource ( DataSource ) -> None\n"
00063            "setDataSource ( DataSource, value, sequence ) -> None\n"
00064            "\n"
00065            "The first form sets the data source with default indexes.  The\n"
00066            "second form takes in addition the dimensionality of the\n"
00067            "coordinate and a column indexes from the sequence." )
00068 
00069     ;
00070 }
00071 
00072 } // namespace Python
00073 } // namespace hippodraw

Generated for HippoDraw Class Library by doxygen