26 using namespace hippodraw;
50 createNTuple (
const std::string & filename,
const std::string & treename )
60 return m_instance -> initNTuple ( ntuple, filename, treename );
73 std::runtime_error e (
"HippoDraw was not built with "
74 "numeric Python support" );
79 const std::vector < std::string > &
86 const std::vector< std::string > & names
91 catch (
const std::runtime_error & e ) {
95 static const std::vector < std::string > names;
static QtRootController * s_instance
The singleton QtRootController instance.
QtRootController()
The default constructor, protected from being used.
hippodraw::RootController class interface.
hippodraw::QtRootNTuple class interface.
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.
static void lock()
Obtains a lock on the application's mutex.
PyDataSource * createDataArray(const std::string &filename, const std::string &treename)
Creates a PyDataSource wrapper to the RootNTuple object.
A wrapper for RootNTuple, so that when RootNTuple is used in Qt based application, the application object can be locked and unlocked before calling any ROOT functions.
hippodraw::PyDataSource class interface
static RootController * m_instance
The singleton RootController object.
DataSource * createNTuple(const std::string &filename, const std::string &treename)
Creates a QtRootNTuple wrapper for RootNTuple object.
hippodraw::PyApp class interface.
This class is the public interface to a DataSource object that the user sees as the DataArray object ...
QtRootController class interface.
static QtRootController * instance()
The singleton instance method.
const std::vector< std::string > & getNTupleNames(const std::string &filename)
Returns the names of the top level tree in the Root file.
static void unlock()
Releases the lock on the application's mutex.
static RootController * instance()
Returns the singleton instance of the RootController.
DataSourceController class interface.
A Controller class for ROOT files.
Base class for DataSource.