50 createNTuple (
const std::string & filename,
const std::string & treename )
54 TTree * tree =
m_instance -> getTree ( filename, 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;
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 RootController * instance()
Returns the singleton instance of the RootController.
static void lock()
Obtains a lock on the application's mutex.
static void unlock()
Releases the lock on the application's mutex.
hippodraw::QtRootNTuple class interface.
hippodraw::RootController class interface.
DataSourceController class interface.
Base class for DataSource.
hippodraw::PyApp class interface.
const std::vector< std::string > & getNTupleNames(const std::string &filename)
Returns the names of the top level tree in the Root file.
QtRootController class interface.
DataSource * createNTuple(const std::string &filename, const std::string &treename)
Creates a QtRootNTuple wrapper for RootNTuple object.
static QtRootController * s_instance
The singleton QtRootController instance.
static QtRootController * instance()
The singleton instance method.
static RootController * m_instance
The singleton RootController object.
hippodraw::PyDataSource class interface
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.
This class is the public interface to a DataSource object that the user sees as the DataArray object ...
A Controller class for ROOT files.
QtRootController()
The default constructor, protected from being used.