Diana Software
QEnergyRangesHandle.hh
Go to the documentation of this file.
1 #ifndef _Q_ENERGY_RANGES_HANDLE_HH_
2 #define _Q_ENERGY_RANGES_HANDLE_HH_
3 
13 #include "QGlobalHandle.hh"
14 #include "QInterval.hh"
15 
16 class QEnergyRangesHandle : public Diana::GlobalHandle<Diana::QInterval>
17 {
18  public:
19  QEnergyRangesHandle(const std::string& name = "EnergyRanges") : Diana::GlobalHandle<Diana::QInterval>(name,"User") {}
20 
21  const std::string& GetCalibLabel() const {return fCalibLabel;}
22  const std::string& GetCalibVersion() const {return fCalibVersion;}
23 
24  void SetCalibLabel(const std::string& stabl) {fCalibLabel = stabl;}
25  void SetCalibVersion(const std::string& stabv) {fCalibVersion = stabv;}
26 
27  protected:
29  QError StoreOnDB() const;
30  private:
31  std::string fCalibLabel;
32  std::string fCalibVersion;
33  // QRootCintGlobalHandle(QEnergyRangesHandle)
34 
35 };
36 #endif
template class to handle diana global QObject with QGlobalDataManager
global handle for EnergyRanges
void SetCalibVersion(const std::string &stabv)
const std::string & GetCalibVersion() const
QEnergyRangesHandle(const std::string &name="EnergyRanges")
const std::string & GetCalibLabel() const
void SetCalibLabel(const std::string &stabl)
error class with error type and description
Definition: QError.hh:115
Interval of real numbers.
Definition: QInterval.hh:17
the Diana namespace is needed because sometimes we use Qt libraries, that use same class names of our...