Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

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 "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::* ) // function pointer
00052              (const DataSource * ) ) // function signature
00053            &NTupleFCN::setDataSource )
00054 
00055     .def ( "setDataSource",
00056            ( void ( NTupleFCN::* ) // function pointer
00057              ( const DataSource *,
00058                int dimension,
00059                const std::vector < int > &  ) ) // function signature
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 } // namespace Python
00072 } // namespace hippodraw

Generated for HippoDraw-1.14.8.5 by doxygen 1.4.3