Diana Software
QDetectorName.hh
Go to the documentation of this file.
1 #ifndef _Q_DETECTOR_NAME_HH_
2 #define _Q_DETECTOR_NAME_HH_
3 
4 #include <string>
5 #include <QError.hh>
6 
17  DN_CUORE0 = 2,
18  DN_CUORE = 3,
19  DN_HALLA = 4,
20  DN_HALLC = 5,
21  DN_NUCLEUS = 6,
22  DN_RANDD = 7,
23  DN_BULLKID = 8,
24  DN_UNKNOWN = 9,
25 };
26 
33 class DetectorName {
34  public:
36  DetectorName();
38  DetectorName(const DetectorName& detectorName);
40  DetectorName(const DetectorName_& detectorName);
42  const DetectorName& operator=(const DetectorName& rhs);
44  const DetectorName& operator=(const DetectorName_& rhs);
46  operator DetectorName_() const { return fDetectorName; }
48  std::string AsString() const;
50  QError Set(const int run);
51 
52 
53  private:
55 
56  // QRootCintTrigger(DetectorName+)
57 
58 };
59 
60 
61 #endif
DetectorName_
possible detector names
@ DN_UNKNOWN
@ DN_CUORICINO
@ DN_RANDD
@ DN_CUORE0
@ DN_HALLC
@ DN_BULLKID
@ DN_NUCLEUS
@ DN_THREETOWERS
@ DN_HALLA
@ DN_CUORE
class wrapper to DetectorName_
std::string AsString() const
convert to string
DetectorName_ fDetectorName
QError Set(const int run)
convert from run number
DetectorName()
ctor
Definition: QDetectorName.cc:4
const DetectorName & operator=(const DetectorName &rhs)
operator =
error class with error type and description
Definition: QError.hh:115