14 # pragma warning(disable:4231) 17 # pragma warning(disable:4251) 20 # pragma warning(disable:4275) 23 # pragma warning(disable:4800) 27 #include <boost/python.hpp> 44 class_ < QtRootController, bases<>,
47 "The RootController class provides interface to ROOT ntuple files.",
50 .def (
"instance", &QtRootController::instance,
51 return_value_policy < reference_existing_object > (),
52 "instance () -> RootController\n" 54 "Returns the singleton instance of the controller." )
56 .staticmethod(
"instance" )
58 .def (
"getNTupleNames",
59 &QtRootController::getNTupleNames,
60 return_value_policy < copy_const_reference > (),
61 "getNTupleNames ( filename ) -> list\n" 63 "Returns a list of names of the possible DataSource objects in\n" 64 "the ROOT file. That is, the top level TTree names." )
66 .def (
"createNTuple",
67 &QtRootController::createNTuple,
68 return_value_policy < manage_new_object > (),
69 "createNTuple ( filename, treename ) -> RootNTuple\n" 71 "Creates a RootNTuple from the named file and named tree. Python\n" 72 "take possession of the object.\n" 73 "Consider createDataArray() instead, if the hippo module was \n" 74 "configured with numerical array support." )
76 .def (
"createDataArray",
77 &QtRootController::createDataArray,
78 return_value_policy < manage_new_object > (),
79 "createDataArray ( filename, treename ) -> DataArray\n" 81 "Creates a DataArray object containing a RootNTuple from the\n" 82 "named ROOT file and named tree. Returns a reference to it." )
A wrapper for RootController, so that when RootController is used in Qt based application, the application object can be locked and unlocked before calling any ROOT functions.
hippodraw::QtRootNTuple class interface.
hippodraw::RootController class interface.
QtRootController class interface.
hippodraw::PyDataSource class interface
void export_RootController()
Exports the RootController.