2 #ifndef AIDA_ITUPLEROOT_H
3 #define AIDA_ITUPLEROOT_H 1
5 #include <AIDA/ITuple.h>
9 #include <RAIDA/LeafPoint.h>
38 const std::string &
title,
41 const std::string & options =
"") ;
53 virtual std::string
title()
const ;
61 virtual bool setTitle(
const std::string & title) ;
79 virtual bool fill(
int column,
double value) ;
88 virtual bool fill(
int column,
float value) ;
97 virtual bool fill(
int column,
int value) ;
106 virtual bool fill(
int column,
short value) ;
115 virtual bool fill(
int column,
long value) ;
124 virtual bool fill(
int column,
char value) ;
133 virtual bool fill(
int column,
bool value) ;
160 virtual bool fill(
const std::vector<double> & values) ;
169 virtual bool fill(
const std::vector<float> & values) ;
191 virtual void reset() ;
198 virtual int rows()
const ;
204 virtual void start() ;
220 virtual bool next() ;
229 virtual bool setRow(
int rowIndex) ;
230 virtual bool mySetRow(
int rowIndex)
const ;
238 virtual int findColumn(
const std::string & name)
const ;
246 virtual double getDouble(
int column)
const ;
254 virtual float getFloat(
int column)
const ;
262 virtual int getInt(
int column)
const ;
270 virtual short getShort(
int column)
const ;
278 virtual long getLong(
int column)
const ;
286 virtual char getChar(
int column)
const ;
336 virtual std::string
columnName(
int column)
const ;
343 virtual std::vector<std::string>
columnNames()
const ;
351 virtual std::string
columnType(
int column)
const ;
358 virtual std::vector<std::string>
columnTypes()
const ;
366 virtual double columnMin(
int column)
const ;
374 virtual double columnMax(
int column)
const ;
390 virtual double columnRms(
int column)
const ;
912 std::vector<LeafPoint> _pointVec;
913 mutable std::vector<LeafPoint> _readPointVec;
914 mutable int _readCursor;
virtual bool setTitle(const std::string &title)
Set the title of the ITuple.
Definition: ITupleROOT.cc:127
virtual void resetRow()
Clear the current(not yet added) row.
Definition: ITupleROOT.cc:288
virtual int rows() const
Get the number of rows currently filled in the ITuple.
Definition: ITupleROOT.cc:299
virtual double columnMax(int column) const
Get the maximum value of a given column (if it can be converted to a double).
Definition: ITupleROOT.cc:715
User level interface to a 1D Cloud.
Definition: ICloud1D.h:30
User level interface to a 1-dimensional profile histogram.
Definition: IProfile1D.h:28
virtual int columns() const
Get the string stored in a given column at the current cursor's position.
Definition: ITupleROOT.cc:669
User's level interface of an IEvaluator.
Definition: IEvaluator.h:28
User level interface to a Tuple.
Definition: ITuple.h:40
virtual double columnMin(int column) const
Get the minimum value of a given column (if it can be converted to a double).
Definition: ITupleROOT.cc:708
virtual bool next()
Positions the cursor at the next row.
Definition: ITupleROOT.cc:318
virtual bool setRow(int rowIndex)
Position the cursor at a give row.
Definition: ITupleROOT.cc:327
User level interface to 1D Histogram.
Definition: IHistogram1D.h:28
virtual long getLong(int column) const
Get the long stored in a given column at the current cursor's position.
Definition: ITupleROOT.cc:561
User level interface to 3D Histogram.
Definition: IHistogram3D.h:28
virtual bool skip(int rows)
Skips a given number of rows.
Definition: ITupleROOT.cc:309
virtual ~ITupleROOT()
Destructor.
Definition: ITupleROOT.h:46
virtual std::string columnType(int column) const
Get the type of a give column.
Definition: ITupleROOT.cc:691
virtual bool addRow()
Add the current row to the ITuple.
Definition: ITupleROOT.cc:258
virtual int getInt(int column) const
Get the integer stored in a given column at the current cursor's position.
Definition: ITupleROOT.cc:477
virtual float getFloat(int column) const
Get the float stored in a given column at the current cursor's position.
Definition: ITupleROOT.cc:417
User level interface to a 2D Cloud.
Definition: ICloud2D.h:30
virtual int findColumn(const std::string &name) const
Get the index within the ITuple of a given column.
Definition: ITupleROOT.cc:339
User level interface to a Tuple.
Definition: ITupleROOT.h:33
virtual std::vector< std::string > columnNames() const
Get the names of all the columns.
Definition: ITupleROOT.cc:680
TTree * _theTree
See IManagedObject for a description.
Definition: ITupleROOT.h:911
virtual std::string columnName(int column) const
Get the name of a column from its index.
Definition: ITupleROOT.cc:674
virtual void start()
Positions the read cursor immediately before the first row.
Definition: ITupleROOT.cc:304
User level interface to a 2-dimensional profile histogram.
Definition: IProfile2D.h:28
virtual short getShort(int column) const
Get the short stored in a given column at the current cursor's position.
Definition: ITupleROOT.cc:528
virtual bool fill(int column, double value)
Get the IAnnotation corresponding to this ITuple.
Definition: ITupleROOT.cc:133
User level interface to 2D Histogram.
Definition: IHistogram2D.h:28
virtual void reset()
Reset the ITuple.
Definition: ITupleROOT.cc:294
virtual std::string title() const
Get the title of this ITuple.
Definition: ITupleROOT.cc:121
virtual bool project(IHistogram1D &histogram, IEvaluator &evaluatorX)
Fill an IHistogram1D from the tuple.
Definition: ITupleROOT.cc:755
virtual double columnMean(int column) const
Get the mean value of a given column (if it can be converted to a double).
Definition: ITupleROOT.cc:722
virtual bool getBoolean(int column) const
Get the boolean stored in a given column at the current cursor's position.
Definition: ITupleROOT.cc:636
virtual std::vector< std::string > columnTypes() const
Get the types of all the columns.
Definition: ITupleROOT.cc:697
User's level interface of an IFilter.
Definition: IFilter.h:28
virtual double columnRms(int column) const
Get the RMS of a given column (if it can be converted to a double).
Definition: ITupleROOT.cc:737
virtual double getDouble(int column) const
Get the double stored in a given column at the current cursor's position.
Definition: ITupleROOT.cc:348
virtual char getChar(int column) const
Get the character stored in a given column at the current cursor's position.
Definition: ITupleROOT.cc:603
User level interface to a 3D Cloud.
Definition: ICloud3D.h:30