Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

HardwareType.h

Go to the documentation of this file.
00001 #ifndef HARDWARETYPE_H
00002 #define HARDWARETYPE_H
00003 
00004 #include <Rtypes.h>
00005 #include <string>
00006 
00007 class HardwareType
00008 {
00009  public:
00010   typedef Char_t Hardware_t;
00011 
00012   enum EHardwareType {
00013     kUnknown = 0,
00014     // General hardware:
00015     kCrate=10,
00016     kChannel,
00017     
00018     // VA hardware:
00019     kVarc=20,
00020     kVmm,
00021     kVfb,
00022     kVaChip,
00023 
00024     // QIE hardware:
00025     kMaster=30,
00026     kMinder,
00027     kMenu,
00028 
00029     // PMT hardware:
00030     kPmt=40,
00031     kPmtBase,
00032     kPixel,
00033     kPixelSpot,
00034 
00035     // Scintillator
00036     kStripEnd=50,
00037     kStrip,
00038 
00039     // LI
00040     kPinDiode=60,
00041 
00042     // Big things
00043     kPlane = 70,
00044 
00045     // Parts of detector, or the whole detector:
00046     kSupermodule = 80,
00047     kVetoShield,
00048     kSpectrometer,
00049     kCalorimeter,    
00050     kDetector
00051   };
00052 
00053   static const char* AsString(Hardware_t t);
00054   static Hardware_t  FromString(const std::string& s) { return FromString(s.c_str()); };
00055   static Hardware_t  FromString(const char* s);
00056   
00057 };
00058 
00059 #endif

Generated on Mon Feb 15 11:06:47 2010 for loon by  doxygen 1.3.9.1