QIGUIGeneralCut.hh

00001 #ifndef _QIGUI_GENERALCUT__H_
00002 #define _QIGUI_GENERALCUT__H_
00003 #include <QObject>
00004 
00005 #include "QIGUICut.hh"
00006 #include "TCutG.h"
00007 #include <vector>
00008 //#include <map>
00009 
00010 class QIGUIGeneralCutDialog;
00011 class QIGUISession;
00012 class TFile;
00013 class TObjArray;
00014 
00015 class QIGUIGeneralCut: public QIGUICut
00016 {
00017   Q_OBJECT
00018 
00019   public:
00020     QIGUIGeneralCut (QObject * parent = 0);
00021     QIGUIGeneralCut (QString name, QObject * parent= 0);
00022     QIGUIGeneralCut (QString name, QIGUISession * session, QObject * parent= 0);
00023     virtual ~QIGUIGeneralCut();
00024 
00025   void Init();
00026   void ShowDialog();
00027   void Clear(); // clear fChannelCuts
00028   void SetChannelCut(int ch, const char * title);
00029   TCut * GetChannelCut(int ch);
00030   void WriteToFile();
00031   void ReadFromFile(TFile * f);
00032 
00033 
00034   void SetCurrentChannel(int ch); // Copy in title cut corresponding to channel ch
00035 
00036   public slots:
00037 
00038   private:
00039   QIGUIGeneralCutDialog * fGeneralCutDialog;
00040   QIGUISession * fSession;
00041 
00042   TObjArray * fChannelCuts; // Array of TCuts, one for every channel
00043   std::vector<int> fChannels;
00044     
00045 };
00046 
00047 #endif

Generated on Tue Nov 16 10:49:59 2010 for CUORE Software by  doxygen 1.5.6