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

ElecType.h

Go to the documentation of this file.
00001 
00002 // $Id: ElecType.h,v 1.6 2005/08/26 17:18:48 rhatcher Exp $
00003 //
00004 // ElecType
00005 //
00006 // ElecType defines Elec_t which is an enumeration of the
00007 // legal electronic readout types which are used to unpack the
00008 // information held by the RawChannelId object
00009 //
00010 // Author:  R. Hatcher 2000.05.17
00011 //
00013 
00014 #ifndef ELECTYPE_H
00015 #define ELECTYPE_H
00016 
00017 #ifndef ROOT_Rtypes
00018 #if !defined(__CINT__) || defined(__MAKECINT__)
00019 #include "Rtypes.h"
00020 #endif
00021 #endif
00022 
00023 namespace ElecType {
00024 
00025    typedef enum EElecType {
00026       kVA        = 0x00,
00027       kQIE       = 0x01,
00028       kReroot    = 0x02,
00029       kUnknown   = 0x03
00030    } Elec_t;
00031 
00032    // Translation from enum to character strings
00033 
00034    const Char_t*     AsString(Elec_t etype);
00035    ElecType::Elec_t  StringToEnum(const Char_t* chars, Int_t maxChar=0);
00036    ElecType::Elec_t  CharToEnum(Char_t c);
00037 
00038 }
00039 
00040 #endif // ELECTYPE_H

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