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

BfldGrid.h

Go to the documentation of this file.
00001 
00002 // $Id: BfldGrid.h,v 1.6 2006/06/07 01:26:31 rhatcher Exp $
00003 //
00004 // BfldGrid
00005 //
00006 // An enumeration to tag specific Mesh configurations.
00007 // In particular, the Voronoi diagrams.
00008 //
00009 // Author:  R. Hatcher 2000.06.20
00010 //
00012 #ifndef BFLDGRID_H
00013 #define BFLDGRID_H
00014 
00015 #ifndef ROOT_Rtypes
00016 #if !defined(__CINT__) || defined(__MAKECINT__)
00017 #include "Rtypes.h"
00018 #endif
00019 #endif
00020 
00021 #include "Conventions/Detector.h"
00022 
00023 namespace BfldGrid {
00024 
00025   typedef enum EGrid {
00026      kUndefined   =  0,
00027      kRect2dGrid  =  2,     // rectangular grid
00028      kNearCoarseV = 10,     // Voronoi - Near with   3000 nodes
00029      kNearStdV    = 11,     //           Near with  50000 nodes
00030      kNearFineV   = 12,     //           Near with 200000 nodes
00031      kFarCoarseV  = 20,     //           Far  with   3000 nodes
00032      kFarStdV     = 21,     //           Far  with  50000 nodes
00033      kFarFineV    = 22      //           Far  with 200000 nodes
00034   } Grid_t; 
00035 
00036   // Translation from enum to character strings
00037   inline const char *AsString(Grid_t grid) {
00038      switch (grid) {
00039      case kUndefined:    return "Undefined";           break;
00040      case kRect2dGrid:   return "Rect2dGrid";          break;
00041      case kNearCoarseV:  return "Near Coarse Voronoi"; break;
00042      case kNearStdV:     return "Near Std Voronoi";    break;
00043      case kNearFineV:    return "Near Fine Voronoi";   break;
00044      case kFarCoarseV:   return "Far Coarse Voronoi";  break;
00045      case kFarStdV:      return "Far Std Voronoi";     break;
00046      case kFarFineV:     return "Far Fine Voronoi";    break;
00047      default:            return "Unknown Grid_t";      break;
00048      }
00049      return "Unknown Grid_t";
00050   }
00051 
00052   BfldGrid::Grid_t GetGrid(Detector::Detector_t, Int_t coarseness);
00053   Int_t            GetCoarseness(Grid_t grid);
00054 
00055 }
00056 
00057 #endif // BFLDGRID_H

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