HARPO  5.1.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
HarpoDet.h
Go to the documentation of this file.
1 #ifndef HARPODET_H
2 #define HARPODET_H
3 
5 //
6 // HarpoDet
7 //
8 // Generic class for HARPO Detectors
9 //
10 
11 #include "TObject.h"
12 #include <cstring>
13 
14 const ULong_t gkNDetectors = 5;
15 
16 typedef enum HarpoDetType {
17  NODET = -1,
18  XDCC = 0,
19  YDCC,
20  PMM2,
23 } HarpoDetType;
24 
25 
27 class HarpoDet : public TObject {
28 
29  public:
30 
31  virtual ~HarpoDet();
32  virtual void print();
33  const char * GetName() const { return detName; }
34  const char * GetDescription() const { return detDescription; }
35  const char * DetName(ULong_t ndet) const; // Printable Detector as C string
36  const char * DetDescription(ULong_t ndet) const; // Printable Detector as C string
37 
38  // protected:
39 
40  HarpoDet();
41  HarpoDet(ULong_t det);
42 
43 
44  private:
45 
46  HarpoDetType detIdx; // Detector Type as defined in HarpoDetType
47  const char *detName ; //-> Harpo Detector name in human readable form
48  const char *detDescription ; //-> Harpo Detector name in human readable form
49 
50  ClassDef(HarpoDet,1) //Event structure
51 };
52 
53 #endif
Dcc Plane Y.
Definition: HarpoDet.h:20
Definition: HarpoDet.h:17
const char * detDescription
Definition: HarpoDet.h:48
const char * GetName() const
Definition: HarpoDet.h:33
Grid Sum Adc readings.
Definition: HarpoDet.h:21
Dcc Plane X.
Definition: HarpoDet.h:19
Base class for all Harpo Detectors.
Definition: HarpoDet.h:27
virtual ~HarpoDet()
Definition: HarpoDet.cxx:56
HarpoDet()
Definition: HarpoDet.cxx:51
Data from Keller temperuture and pressure sensors.
Definition: HarpoDet.h:22
virtual void print()
Definition: HarpoDet.cxx:79
const char * DetDescription(ULong_t ndet) const
Definition: HarpoDet.cxx:70
Unknown Detector.
Definition: HarpoDet.h:18
const char * detName
Definition: HarpoDet.h:47
const char * DetName(ULong_t ndet) const
Definition: HarpoDet.cxx:61
HarpoDetType
Definition: HarpoDet.h:16
HarpoDetType detIdx
Definition: HarpoDet.h:46
const char * GetDescription() const
Definition: HarpoDet.h:34
const ULong_t gkNDetectors
Definition: HarpoDet.h:14