CreateNTuple.h
Go to the documentation of this file.
1 /* -*- mode: c++ -*- */
2 
14 #ifndef CreateNTuple_H
15 #define CreateNTuple_H
16 
17 
18 #include "qtui/CreateNTupleBase.h"
19 
20 #include <map>
21 #include <vector>
22 
23 namespace hippodraw {
24 
25 class PlotterBase;
26 class NTuple;
27 class TupleCut;
28 
34 {
35 private:
36 
37  unsigned int columnNumber;
38  unsigned int cutNumber;
39 
42  std::vector < const TupleCut * > m_cut_list;
43  std::vector < std::string > m_column_list;
44 
46 
48  void updateNTupleIn();
49 
51  void updateColumnList();
52 
54  void updateCutList();
55 
57  void initListViews();
58 
61  const std::vector < PlotterBase * > & getDataCutList();
62 
64  void getPlotterList( std::vector < PlotterBase * > & );
65 
67  void setColumnList();
68 
70  void setCutList();
71 
72 
73 protected:
74 
76  virtual void currentDataSourceChanged( int item );
77 
79  virtual void createButtonClicked();
80 
82  virtual void createFileButtonClicked();
83 
85  virtual void cutListCheckBox_toggled ( bool yes );
86 
88  virtual void columnListCheckBox_toggled ( bool yes );
89 
90 public:
91 
94  CreateNTuple ( QWidget * parent = 0,
95  const char * name = 0 );
96 
97 };
98 
99 } // namespace hippodraw
100 
101 #endif // CreateNTuple_H
This class manages the Create NTuple dialog.
Definition: CreateNTuple.h:33
std::vector< std::string > m_column_list
Definition: CreateNTuple.h:43
void setCutList()
Filter according to the selected cut.
QListViewItem * item
Definition: PickTable.cxx:172
CreateNTuple(QWidget *parent=0, const char *name=0)
The constructor.
void getPlotterList(std::vector< PlotterBase * > &)
Get all the plotter used by the canvas window.
std::vector< const TupleCut * > m_cut_list
The list of TupleCut objects.
Definition: CreateNTuple.h:42
virtual void cutListCheckBox_toggled(bool yes)
Select or deselect all in cut list.
void updateCutList()
Update cut list view.
virtual void columnListCheckBox_toggled(bool yes)
Select or deselect all in column list.
void initListViews()
Initiate the list views, set column names.
void updateNTupleIn()
Update the ComboBox.
return yes
Definition: CanvasView.cxx:883
virtual void currentDataSourceChanged(int item)
Current Item in the ComboBox changed.
virtual void createButtonClicked()
Create a new NTuple.
unsigned int cutNumber
Definition: CreateNTuple.h:38
virtual void createFileButtonClicked()
Create a new NTuple and save to a file.
A DataSource class implemented with std::vector&lt;double&gt; to store the column data. ...
Definition: NTuple.h:33
void updateColumnList()
Update column list view.
void setColumnList()
Filter according to the selected column.
const std::vector< PlotterBase * > & getDataCutList()
Get all the data cut used by the DataSource.
unsigned int columnNumber
Definition: CreateNTuple.h:37

Generated for HippoDraw Class Library by doxygen