Diana Software
QCalibrationParametersHandle.hh
Go to the documentation of this file.
1 #ifndef _Q_CALIBRATION_PARAMETERS_HANDLE_HH_
2 #define _Q_CALIBRATION_PARAMETERS_HANDLE_HH_
3 
14 #include "QGlobalHandle.hh"
16 
17 class QCalibrationParametersHandle : public Diana::GlobalHandle<QCalibrationParameters>
18 {
19  public:
20  QCalibrationParametersHandle(const int chan, const int dataset, const std::string& name = "CalibrationParameters") : Diana::GlobalHandle<QCalibrationParameters>(name,"CalCoefficients") {
21  SetChannel(chan);
22  SetDataset(dataset);
23  }
24 
25  const std::string& GetStabLabel() const {return fStabLabel;}
26  const std::string& GetStabVersion() const {return fStabVersion;}
27 
28  void SetStabLabel(const std::string& stabl) {fStabLabel = stabl;}
29  void SetStabVersion(const std::string& stabv) {fStabVersion = stabv;}
30 
31  protected:
33 
34  QError StoreOnDB() const;
35 
36  // QRootCintGlobalHandle(QCalibrationParametersHandle)
37 
38  private:
39 
40  std::string fStabLabel;
41  std::string fStabVersion;
42 };
43 
44 
45 
46 #endif
hvec SetChannel(3)
template class to handle diana global QObject with QGlobalDataManager
global handle for calibration parameters
const std::string & GetStabVersion() const
void SetStabLabel(const std::string &stabl)
const std::string & GetStabLabel() const
QCalibrationParametersHandle(const int chan, const int dataset, const std::string &name="CalibrationParameters")
void SetStabVersion(const std::string &stabv)
object containing calibration data (function, coefficients, source and residuals) and run numbers of ...
error class with error type and description
Definition: QError.hh:115
the Diana namespace is needed because sometimes we use Qt libraries, that use same class names of our...