#include <LdfController.h>
Collaboration diagram for RootController:
Definition at line 39 of file LdfController.h.
Public Member Functions | |
DataSource * | createNTuple (const std::string &filename, const std::string &treename) |
Creates a RootNTuple from the file filename and TTree named treename. | |
DataSource * | createNTuple (const std::string &name) |
DataSource * | createNTuple (const std::string &filename, const std::string &treename) |
Creates a RootNTuple from the file filename and TTree named treename. | |
DataSource * | createNTuple (const std::string &name) |
void | fillDimSize (std::vector< int > &dims, const DataSource *source, const std::string &column) |
Fills the vector dims. | |
void | fillDimSize (std::vector< int > &dims, const DataSource *source, const std::string &column) |
Fills the vector dims. | |
const std::vector< std::string > & | getNTupleNames (const std::string &) |
Returns the names of the NTuple objects contained in the file name. | |
const std::vector< std::string > & | getNTupleNames (const std::string &) |
Returns the names of the NTuple objects contained in the file name. | |
TTree * | getTree (const std::string &file, const std::string &tree) |
Returns the named tree from file in the ROOT file. | |
TTree * | getTree (const std::string &file, const std::string &tree) |
Returns the named tree from file in the ROOT file. | |
bool | smartExpandRootNTuple (DataSource *source, std::string &column) |
Expands the array column. | |
bool | smartExpandRootNTuple (DataSource *source, std::string &column) |
Expands the array column. | |
const std::string & | version () const |
Returns the version of ROOT being used. | |
const std::string & | version () const |
Returns the version of ROOT being used. | |
virtual | ~RootController () |
The destructor. | |
virtual | ~RootController () |
The destructor. | |
Static Public Member Functions | |
static RootController * | instance () |
Returns the singleton instance of the RootController. | |
static RootController * | instance () |
Returns the singleton instance of the RootController. | |
Private Member Functions | |
void | closeFile (const std::string &name) |
Closed the named file, if found in list of opened files. | |
void | closeFile (const std::string &name) |
Closed the named file, if found in list of opened files. | |
TFile * | openFile (const std::string &name) |
Opens the named file, if not already opened. | |
TFile * | openFile (const std::string &name) |
Opens the named file, if not already opened. | |
Private Attributes | |
std::map< std::string, TFile * > | m_file_map |
The list of opened ROOT files. | |
std::vector< std::string > | m_ntuple_names |
Temporary list of NTuple names in the file. | |
std::string | m_version |
The version of ROOT being used. | |
Static Private Attributes | |
static RootController * | s_instance |
The singleton instance of the RootController. | |
static RootController * | s_instance = 0 |
The singleton instance of the RootController. |
|
The destructor.
Definition at line 48 of file LdfController.cxx. |
|
The destructor.
|
|
Closed the named file, if found in list of opened files.
|
|
Closed the named file, if found in list of opened files.
Definition at line 87 of file LdfController.cxx. References m_file_map. |
|
Creates a RootNTuple from the file filename and TTree named treename.
|
|
|
|
Creates a RootNTuple from the file filename and TTree named treename.
Definition at line 137 of file LdfController.cxx. References getTree(), and DataSourceController::instance(). |
|
Definition at line 161 of file LdfController.cxx. References getNTupleNames(). |
|
Fills the vector dims. If the DataSource is a RootNTuple, fills the vector dim with the dimension of he column labeled column, otherwise does nothing. |
|
Fills the vector dims. If the DataSource is a RootNTuple, fills the vector dim with the dimension of he column labeled column, otherwise does nothing. Definition at line 183 of file LdfController.cxx. |
|
Returns the names of the NTuple objects contained in the file name.
|
|
Returns the names of the NTuple objects contained in the file name.
Definition at line 99 of file LdfController.cxx. References m_ntuple_names, openFile(), and num_util::size(). Referenced by createNTuple(). |
|
Returns the named tree from file in the ROOT file.
|
|
Returns the named tree from file in the ROOT file.
Definition at line 125 of file LdfController.cxx. References openFile(). Referenced by createNTuple(). |
|
Returns the singleton instance of the RootController.
|
|
Returns the singleton instance of the RootController.
Definition at line 35 of file LdfController.cxx. References s_instance. Referenced by Inspector::addDataRepButton_clicked(), Inspector::getArrayTupleLabel(), HiNTupleXML::getObject(), CanvasView::helpAbout(), QtRootController::instance(), Inspector::newPlotButton_clicked(), and QtFileDialog::openRootTuple(). |
|
Opens the named file, if not already opened.
|
|
Opens the named file, if not already opened.
Definition at line 62 of file LdfController.cxx. References m_file_map. Referenced by getNTupleNames(), and getTree(). |
|
Expands the array column.
If the DataSource is a RootNTuple, expands the column with array TLeaf and returns |
|
Expands the array column.
If the DataSource is a RootNTuple, expands the column with array TLeaf and returns Definition at line 195 of file LdfController.cxx. |
|
Returns the version of ROOT being used.
|
|
Returns the version of ROOT being used.
Definition at line 54 of file LdfController.cxx. References m_version. |
|
The list of opened ROOT files.
Definition at line 45 of file RootController.h. Referenced by closeFile(), and openFile(). |
|
Temporary list of NTuple names in the file.
Definition at line 49 of file RootController.h. Referenced by getNTupleNames(). |
|
The version of ROOT being used.
Definition at line 52 of file RootController.h. Referenced by version(). |
|
The singleton instance of the RootController.
Definition at line 56 of file RootController.h. |
|
The singleton instance of the RootController.
Definition at line 31 of file RootController.cxx. Referenced by instance(). |