QGUIOldDataCollector.hh

00001 /*
00002 * APOLLO: A complete DAQ and Online Data Analysis Framework for Cuore
00003 * 
00004 * A.Giachero created 12/10/06 - <Andrea.Giachero@ge.infn.it>
00005 *
00006 * $Id: QGUIOldDataCollector.hh 495 2006-11-29 22:38:04Z giacher $
00007 * $Revision: 495 $
00008 *
00009 * Class QGUIOldDataCollector: data-collection class used by GUI for 
00010 *                      describe selections status
00011 * 
00012 *
00013 */
00014 
00015 #ifndef QGUI_OLD_DATA_COLLECTOR_HH
00016 #define QGUI_OLD_DATA_COLLECTOR_HH
00017 
00018 
00019 
00020 // C/C++ Includes
00021 #include <string>
00022 
00023 
00024 // Apollo Includes
00025 #include "QCuore.hh"
00026 
00027 
00028 class QGUIOldDataCollector 
00029 {
00030 public:
00031  
00032   // ctors
00033   QGUIOldDataCollector();
00034   QGUIOldDataCollector(int SettingsBasketId, int RunNumber, int RunType, 
00035                     unsigned int shifterSet, std::string Comments,
00036                     bool SaveData=true, std::string ChSaved="all");
00037   //dtor
00038   virtual ~QGUIOldDataCollector();
00039 
00040 
00041   // Getters
00042   inline const int GetSettingsBasketId()    const {return fSettingsBasketId;}
00043   inline const int GetRunNumb()             const {return fRunNumb;}
00044   inline const int GetRunType()             const {return fRunType;}
00045   inline const std::string GetComments()    const {return fComments;}
00046   inline const std::string GetChSaved()     const {return fChSaved;}
00047   inline const int GetMinRunNumbAllowed()   const {return fMinRunNumbAllowed;}
00048   inline const unsigned int GetShifterSet() const {return fShifterSet;}
00049 
00050   
00051   // Boolean Getters
00052   inline const bool IsSettingsBasketIdSelected()const {return fProfIdSelected;}
00053   inline const bool IsRunNumbSelected()  const {return fRunNumbSelected;}
00054   inline const bool IsRunTypeSelected()  const {return fRunTypeSelected;}
00055   inline const bool IsSaveData()         const {return fSaveData;}
00056 
00057 
00058   //Setters
00059   inline void SetSettingsBasketId (int  NewSettingsBasketId) {fSettingsBasketId=NewSettingsBasketId; fProfIdSelected=true;}
00060   inline void SetRunNumb   (int  NewRunNumb)   {fRunNumb=NewRunNumb;     fRunNumbSelected=true;}
00061   inline void SetRunType   (int  NewRunType)   {fRunType=NewRunType;     fRunTypeSelected=true;}
00062   inline void SetSaveStatus(bool NewStatus)    {fSaveData=NewStatus;}
00063   inline void SetComments  (const std::string& NewComments) {fComments=NewComments;}
00064   inline void SetChSaved   (const std::string& NewChSaved)  {fChSaved=NewChSaved;}
00065   inline void SetMinRunNumbAllowed(int NewNumb) {fMinRunNumbAllowed=NewNumb;}
00066   inline void SetShifterSet(unsigned int shifterSet) { fShifterSet = shifterSet; }
00067 
00068   // Clean SettingsBasket Id Status
00069   void CleanStatus();
00070   
00071   
00072 private:
00073   
00074   // Private Method for cleaning status
00075   void _Clean();
00076   
00077   // Private Variables
00078   int  fSettingsBasketId;
00079   int  fRunNumb;
00080   int  fMinRunNumbAllowed;
00081   int  fRunType;
00082   bool fSaveData;  
00083   unsigned int fShifterSet;
00084 
00085   std::string fComments;
00086   std::string fChSaved;
00087 
00088   // Boolean variables
00089   bool fProfIdSelected;
00090   bool fRunNumbSelected;
00091   bool fRunTypeSelected;
00092 };
00093 
00094 
00095 #endif // QGUI_OLD_DATA_COLLECTOR_HH
00096 
00097 

Generated on Fri Mar 6 13:40:39 2009 for CUORE Software by  doxygen 1.5.1