00001 /* DetectorId - enumerate a site's major detectors 00002 * 00003 * 2008/3/11 bv@bnl.gov 00004 * 00005 */ 00006 00007 #ifndef DETECTORID_H 00008 #define DETECTORID_H 00009 00010 namespace DetectorId { 00011 enum DetectorId_t { 00012 kUnknown = 0, 00013 kAD1, 00014 kAD2, 00015 kAD3, 00016 kAD4, 00017 kIWS, 00018 kOWS, 00019 kRPC, 00020 kAll 00021 }; 00022 00023 // Convert type enum back and forth to string. 00024 const char* AsString(DetectorId_t id); 00025 DetectorId_t FromString(const char* str); 00026 DetectorId_t FromString0(const char* str); 00027 // Check type of detector 00028 bool isAD(DetectorId_t id); 00029 bool isWaterShield(DetectorId_t id); 00030 } 00031 00032 00033 #endif // DETECTORID_H