00001
00012 #ifdef _MSC_VER
00013
00014 # pragma warning(disable:4231)
00015
00016
00017 # pragma warning(disable:4251)
00018
00019
00020 # pragma warning(disable:4275)
00021
00022
00023 # pragma warning(disable:4800)
00024 #endif
00025
00026
00027 #include "minimizers/NTupleFCN.h"
00028
00029 #include "datasrcs/DataSource.h"
00030 #include "functions/FunctionBase.h"
00031
00032 #include <boost/python.hpp>
00033
00034 using std::vector;
00035 using namespace boost::python;
00036
00037 namespace hippodraw {
00038 namespace Python {
00039
00040 void
00041 export_NTupleFCN()
00042 {
00043 class_ < NTupleFCN, bases < StatedFCN >,
00044 NTupleFCN, boost::noncopyable >
00045 ( "NTupleFCN",
00046 "A objective function class used in fitting that uses a DataSource to\n"
00047 "access the data\n",
00048 no_init )
00049
00050 .def ( "setDataSource",
00051 ( void ( NTupleFCN::* )
00052 (const DataSource * ) )
00053 &NTupleFCN::setDataSource )
00054
00055 .def ( "setDataSource",
00056 ( void ( NTupleFCN::* )
00057 ( const DataSource *,
00058 int dimension,
00059 const std::vector < int > & ) )
00060 &NTupleFCN::setDataSource,
00061 "setDataSource ( DataSource ) -> None\n"
00062 "setDataSource ( DataSource, value, sequence ) -> None\n"
00063 "\n"
00064 "The first form ets the data source with default indexes. The\n"
00065 "second form takes in addition the dimensionality of the\n"
00066 "coordinate and a column indexes from the sequence." )
00067
00068 ;
00069 }
00070
00071 }
00072 }