QIGUIChannelSet.hh

00001 #ifndef _QIGUI_CHANNELSET__H_
00002 #define _QIGUI_CHANNELSET__H_
00003 
00004 #include <set>
00005 #include <string>
00006 
00007 
00008 // A Set of Channels
00009 class QIGUIChannelSet 
00010 {
00011   public:
00012     QIGUIChannelSet ();
00013     QIGUIChannelSet (std::string name);
00014     QIGUIChannelSet (int index, std::string name);
00015     virtual ~QIGUIChannelSet();
00016 
00017     void SetChannels(std::set<int>& setOfChannels) {fChannels = setOfChannels;}
00018     std::set<int>&  GetChannels() {return fChannels;}
00019     void AddChannel(int channel);
00020     void SetName(std::string name) {fName = name;}
00021     int GetIndex() {return fIndex;}
00022     std::string GetName () {return fName;}
00023     std::string GetTitle() ; // return string with channel set in the form of a cut
00024                              // that can be used with ttree
00025 
00026 
00027   private:
00028     std::string fName;
00029     int fIndex; // Index in the session list of ChannelsDataSet, always negative starting from 
00030                 // -1 (all channels)
00031     std::set<int> fChannels;
00032 
00033     
00034 };
00035 
00036 #endif

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