EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Detector.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file Detector.h
1 
2 // Detector
3 //
4 // Detector defines Detector_t which is an enumeration of the
5 // legal detector configurations
6 //
8 
9 #ifndef DETECTOR_H
10 #define DETECTOR_H
11 
12 #ifndef ROOT_Rtypes
13 #if !defined(__CINT__) || defined(__MAKECINT__)
14 #include "Rtypes.h"
15 #endif
16 #endif
17 
18 
19 namespace Detector
20 {
21 
22 typedef enum EDetector {
23  kUnknown = 0x00,
24  kCal = 0x01,
25  kCalCrystal = 0x02,
26  kDch = 0x04,
27  kGfi = 0x08,
28  kLand = 0x10,
29  kMtof = 0x12,
30  kTof = 0x14,
31  kTracker = 0x16,
32 } Detector_t;
33 
34 
35 Int_t FullMask();
36 
37 // Translation enum to/from character strings
38 
39 const Char_t* AsString(Detector_t detector);
41 Char_t* MaskToString(Int_t mask);
42 Detector::Detector_t StringToEnum(const Char_t* chars, Int_t maxChar=0);
43 Int_t StringToMask(const Char_t* chars, Int_t maxChar=0);
44 
45 }
46 
47 // make "DetectorType" a synonym for "Detector"
48 namespace DetectorType = Detector;
49 
50 #endif // DETECTOR_H