export_NTupleFCN.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 
27 // include first to avoid _POSIX_C_SOURCE warning.
28 #include <boost/python.hpp>
29 
30 #include "minimizers/NTupleFCN.h"
31 
32 #include "datasrcs/DataSource.h"
33 #include "functions/FunctionBase.h"
34 
35 using std::vector;
36 using namespace boost::python;
37 
38 namespace hippodraw {
39 namespace Python {
40 
41 void
43 {
44  class_ < NTupleFCN, bases < StatedFCN >,
45  NTupleFCN, boost::noncopyable >
46  ( "NTupleFCN",
47  "A objective function class used in fitting that uses a DataSource to\n"
48  "access the data\n",
49  no_init )
50 
51  .def ( "setDataSource",
52  ( void ( NTupleFCN::* ) // function pointer
53  (const DataSource * ) ) // function signature
54  &NTupleFCN::setDataSource )
55 
56  .def ( "setDataSource",
57  ( void ( NTupleFCN::* ) // function pointer
58  ( const DataSource *,
59  int dimension,
60  const std::vector < int > & ) ) // function signature
61  &NTupleFCN::setDataSource,
62  "setDataSource ( DataSource ) -> None\n"
63  "setDataSource ( DataSource, value, sequence ) -> None\n"
64  "\n"
65  "The first form sets the data source with default indexes. The\n"
66  "second form takes in addition the dimensionality of the\n"
67  "coordinate and a column indexes from the sequence." )
68 
69  ;
70 }
71 
72 } // namespace Python
73 } // namespace hippodraw

Generated for HippoDraw Class Library by doxygen