| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

RichSide.cpp

Go to the documentation of this file.
00001 
00002 //-----------------------------------------------------------------------------
00013 //-----------------------------------------------------------------------------
00014 
00015 // local
00016 #include "Kernel/RichSide.h"
00017 
00018 // boost
00019 #include "boost/assign/list_of.hpp"
00020 
00021 // Text conversion for Rich::Side enumeration
00022 std::string Rich::text( const Rich::Side side )
00023 {
00024   switch( side )
00025   {
00026   case Rich::top:           return "top or left"; // Note also covers  Rich::left
00027   case Rich::bottom:        return "bottom or right"; // Note also covers Rich::right
00028   case Rich::InvalidSide:   return "Invalid side";
00029   default:                  return "SHOULD NEVER SEE THIS";
00030   }
00031 }
00032 
00033 // Text conversion for Rich::DetectorType and Rich::Side enumeration
00034 std::string Rich::text( const Rich::DetectorType rich, const Rich::Side side )
00035 {
00036   if ( Rich::Rich1 == rich )
00037   {
00038     switch( side )
00039     {
00040     case Rich::top:           return "top";
00041     case Rich::bottom:        return "bottom";
00042     case Rich::InvalidSide:   return "Invalid side";
00043     default:                  return "SHOULD NEVER SEE THIS";
00044     }
00045   }
00046   else if ( Rich::Rich2 == rich )
00047   {
00048     switch( side )
00049     {
00050     case Rich::left:          return "left";
00051     case Rich::right:         return "right";
00052     case Rich::InvalidSide:   return "Invalid side";
00053     default:                  return "SHOULD NEVER SEE THIS";
00054     }
00055   }
00056   else
00057   {
00058     return "Invalid RICH Detector";
00059   }
00060 }
00061 
00062 const Rich::Sides & Rich::sides()
00063 {
00064   static Rich::Sides s = boost::assign::list_of(Rich::top)(Rich::bottom);
00065   return s;
00066 }
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 20:03:13 2011 for LHCbKernel by doxygen 1.4.7