14 #ifndef _QtRootNTuple_H_
15 #define _QtRootNTuple_H_
64 unsigned int rows ()
const;
68 const std::vector < double > &
getColumn (
const std::string & name )
const;
72 const std::vector < double > &
74 const std::vector < int> & indexes )
const;
78 const std::vector < double > &
getColumn (
unsigned int index )
const;
82 const std::vector < double > &
getRow (
unsigned int index )
const;
87 int addColumn (
const std::string &,
const std::vector < double > & );
90 const std::vector < std::string > &
getLabels ()
const;
101 const std::vector < int >
getColumnShape (
const std::string & column );
109 boost::python::numeric::array
110 valueAt (
unsigned int row,
const std::string & variable );
117 boost::python::numeric::array
121 void expandIfNeeded (
const std::vector < std::string > & labels )
const;
125 const std::vector < int > & indices )
const;
130 #endif // _QtRootNTuple_H_
column
The column indices for 2 dimension data point tuple.
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.
unsigned int rows() const
Returns the number of rows.
const std::vector< int > getColumnShape(const std::string &column)
Returns the shape of multidimensional array excluding row dimension.
const std::vector< std::string > & getLabels() const
Returns the labels of the column, i.e.
QtRootNTuple()
The default constructor.
int addColumn(const std::string &, const std::vector< double > &)
Adds a column to the object.
hippodraw::RootNTuple class interface.
const std::vector< double > & getColumn(const std::string &name) const
Returns copy of TBranch data by name.
boost::python::numeric::array valueAt(unsigned int row, const std::string &variable)
Returns a numarray for variable in row of NTuple.
std::string createBinding(const std::string &name, const std::vector< int > &indices) const
A DataSource class implemented with a ROOT TBranch objects from a ROOT TTree to store the column data...
void expandIfNeeded(const std::vector< std::string > &labels) const
Expand the multidimension column if needed.
std::vector< intptr_t > shape(numeric::array arr)
unsigned int columns() const
Returns the number of columns.
boost::python::numeric::array getColumnAsArray(const std::string &variable)
Returns a numarray for variable.
static void sliceRowDimension(std::vector< int > &shape)
Removes the row dimension, i.e.
bool isMultiDimensional(const std::string &column) const
Returns true if the column named column, is an array, rather then simple type.
const std::vector< double > & getRow(unsigned int index) const
Returns the row indexed by index.