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

StripEnd.h

Go to the documentation of this file.
00001 
00002 // $Id: StripEnd.h,v 1.8 2005/08/26 17:18:48 rhatcher Exp $
00003 //
00004 // StripEnd
00005 //
00006 // StripEnd defines StripEnd_t which is an enumeration of the
00007 // legal ends (two) and alternative names.  Also used for encoding
00008 // which part of the logical strip (kWhole) if the logical strip
00009 // is physically realized by two pieces of plastic.
00010 //
00011 // Author:  R. Hatcher 2000.10.24
00012 //
00014 
00015 #ifndef STRIPEND_H
00016 #define STRIPEND_H
00017 
00018 #ifndef ROOT_Rtypes
00019 #if !defined(__CINT__) || defined(__MAKECINT__)
00020 #include "Rtypes.h"
00021 #endif
00022 #endif
00023 
00024 #ifndef DETECTOR_H
00025 #include "Conventions/Detector.h"
00026 #endif
00027 #ifndef PLANEVIEW_H
00028 #include "Conventions/PlaneView.h"
00029 #endif
00030 
00031 
00032 namespace StripEnd {
00033 
00034    typedef enum EStripEnd {
00035       kUnknown   = 0x00,
00036       kNegative  = 0x01,
00037       kPositive  = 0x02,
00038       kEast      = kNegative,
00039       kWest      = kPositive, 
00040       kUp        = kNegative,
00041       kDown      = kPositive,
00042       kNorth     = kNegative,
00043       kSouth     = kPositive,
00044       kWhole     = 0x03
00045    } StripEnd_t;
00046 
00047    // Translation from enum to character strings
00048 
00049    const Char_t* AsString(StripEnd_t direction);
00050    const Char_t* AsString(StripEnd_t dir, 
00051                           Detector::Detector_t det,
00052                           PlaneView::PlaneView_t view);
00053    StripEnd_t    CharToEnum(Char_t c);
00054 
00055 }
00056 
00057 #endif // STRIPEND_H

Generated on Mon Nov 23 05:28:30 2009 for loon by  doxygen 1.3.9.1