14 #ifndef RootController_H 15 #define RootController_H 72 TFile * openFile (
const std::string & name );
76 void closeFile (
const std::string & name );
91 const std::string &
version ()
const;
99 const std::vector < std::string > & getNTupleNames (
const std::string & );
107 DataSource * createNTuple (
const std::string & name );
112 DataSource * createNTuple (
const std::string & filename,
113 const std::string & treename );
118 const std::string & filename,
119 const std::string & treename );
123 TTree * getTree (
const std::string & file,
124 const std::string & tree );
130 void fillDimSize ( std::vector < int > & dims,
132 const std::string &
column );
148 virtual void willDelete (
const Observable * obs );
154 #endif // RootController_H Part of an implementation of the Observable-Observer pattern based on the example in the GOF Patterns...
static RootController * s_instance
The singleton instance of the RootController.
std::map< const DataSource *, std::string > TupleToFileMap_t
std::string m_version
The version of ROOT being used.
std::map< std::string, TFile *> m_file_map
The list of opened ROOT files.
TupleToFileMap_t m_tuple_map
A map to find which ROOT file was used to create RootNTuple.
Base class for DataSource.
#define MDL_HIPPOPLOT_API
std::vector< std::string > m_ntuple_names
Temporary list of DataSource names in the file.
Observer class interface.
column
The column indices for 2 dimension data point tuple.
Part of an implementation of the Observable Observer pattern based on the example implementation in t...
A Controller class for ROOT files.