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

ClusterType.h

Go to the documentation of this file.
00001 
00002 // $Id: ClusterType.h,v 1.3 2006/06/30 19:36:51 rhatcher Exp $
00003 //
00004 // ClusterType
00005 //
00006 // ClusterType defines ClusterType_t which is an enumeration of the
00007 // legal cluster identification categories
00008 //
00010 
00011 #ifndef CLUSTERTYPE_H
00012 #define CLUSTERTYPE_H
00013 
00014 #ifndef ROOT_Rtypes
00015 #if !defined(__CINT__) || defined(__MAKECINT__)
00016 #include "Rtypes.h"
00017 #endif
00018 #endif
00019 
00020 namespace ClusterType {
00021 
00022    typedef enum EClusterType {
00023       // cluster id
00024       kEMLike         = 0,
00025       kHadLike        = 1,
00026       kXTalk          = 2, 
00027       kTrkLike        = 3,
00028       kHalo           = 4,
00029       kUnknown        = 5
00030    } ClusterType_t;
00031 
00032    // Translation from enum to character strings
00033 
00034    inline const char *AsString(ClusterType_t view) {
00035       switch (view) {
00036       case kUnknown:         return "?";           break;
00037       case kEMLike:          return "EM-like";     break;
00038       case kHadLike:         return "Had-like";    break;
00039       case kXTalk:           return "XTalk";       break;
00040       case kTrkLike:         return "Track-like";  break;
00041       case kHalo:            return "Halo";        break;
00042       default:               return "?";       break;
00043       }
00044       return "?";
00045    }
00046 
00047    ClusterType::ClusterType_t CharToEnum(Char_t c);
00048 
00049 }
00050 
00051 #endif // CLUSTERTYPE_H

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