Diana Software
QRunType.hh
Go to the documentation of this file.
1 #ifndef _Q_RUNTYPE_HH_
2 #define _Q_RUNTYPE_HH_
3 
4 #include <string>
5 #include <QError.hh>
13 enum RunType_ {
14  RT_UNKNOWN = 0,
17  RT_NPULSES = 3,
18  RT_TEST = 4,
21  RT_PHYSICS = 7,
25  RT_S_GAINSET = 13,
33 
35 
36 
37 };
38 
45 class RunType {
46  public:
48  RunType();
50  RunType(const RunType& runType);
52  RunType(const RunType_& erunType);
54  bool operator==(const RunType& rhs) const;
56  bool operator==(const RunType_& rhs) const;
58  const RunType& operator=(const RunType& rhs);
60  const RunType& operator=(const RunType_& rhs);
62  operator RunType_() const { return fRunType; }
64  std::string AsString() const { return AsString(fRunType); }
66  static std::string AsString(RunType_ Type);
68  std::string AsAbbreviation() const { return AsAbbreviation(fRunType); }
70  static std::string AsAbbreviation(RunType_ Type);
72  QError Set(const std::string&);
73 
74 
75  private:
77 
78  // QRootCintTrigger(RunType+)
79 
80 };
81 
82 #endif
RunType_
allowed run types
Definition: QRunType.hh:13
@ RT_S_GAINSET
Definition: QRunType.hh:25
@ RT_CALIBRATION_TH232
Definition: QRunType.hh:30
@ RT_S_OFFSETSET
Definition: QRunType.hh:26
@ RT_S_LOADCURVES
Definition: QRunType.hh:22
@ RT_S_LOADCURVES_OF
Definition: QRunType.hh:28
@ RT_TEST
Definition: QRunType.hh:18
@ RT_CALIBRATION_CO56
Definition: QRunType.hh:32
@ RT_CALIBRATION
Definition: QRunType.hh:16
@ RT_S_HEATERSET
Definition: QRunType.hh:24
@ RT_CALIBRATION_CO60
Definition: QRunType.hh:31
@ RT_PHYSICS
Definition: QRunType.hh:21
@ RT_S_WORKINGPOINT
Definition: QRunType.hh:23
@ RT_S_ELECHECK
Definition: QRunType.hh:27
@ RT_REPROCESS
Definition: QRunType.hh:19
@ RT_NPULSES
Definition: QRunType.hh:17
@ RT_UNKNOWN
Definition: QRunType.hh:14
@ RT_MONTECARLO
Definition: QRunType.hh:20
@ RT_BACKGROUND_PARKEDSTRINGS
Definition: QRunType.hh:34
@ RT_BACKGROUND
Definition: QRunType.hh:15
error class with error type and description
Definition: QError.hh:115
class wrapper to RunType_
Definition: QRunType.hh:45
RunType_ fRunType
Definition: QRunType.hh:76
std::string AsString() const
convert to string
Definition: QRunType.hh:64
const RunType & operator=(const RunType &rhs)
operator =
Definition: QRunType.cc:20
bool operator==(const RunType &rhs) const
operator ==
Definition: QRunType.cc:26
RunType()
ctor
Definition: QRunType.cc:5
QError Set(const std::string &)
convert from string
Definition: QRunType.cc:101
std::string AsAbbreviation() const
convert to abbreviation
Definition: QRunType.hh:68