CMS 3D CMS Logo

CaloDirection.cc

Go to the documentation of this file.
00001 #include "Geometry/CaloTopology/interface/CaloDirection.h"
00002 #include <iostream>
00003 
00004 std::ostream & operator<<(std::ostream& o,const CaloDirection& d)
00005 {
00006   switch(d)
00007     {
00008     case NONE:
00009       o << "NONE";
00010       break;
00011     case SOUTH:
00012       o << "SOUTH";
00013       break;
00014     case SOUTHEAST:
00015       o << "SOUTHEAST";
00016       break;
00017     case SOUTHWEST:
00018       o << "SOUTHWEST";
00019       break;
00020     case EAST:
00021       o << "EAST";
00022       break;
00023     case WEST:
00024       o << "WEST";
00025       break;
00026     case NORTHEAST:
00027       o << "NORTHEAST";
00028       break;
00029     case NORTHWEST:
00030       o << "NORTHWEST";
00031       break;
00032     case NORTH:
00033       o << "NORTH";
00034       break;
00035     case DOWN:
00036       o << "DOWN";
00037       break;
00038     case DOWNSOUTH:
00039       o << "DOWNSOUTH";
00040       break;
00041     case DOWNSOUTHEAST:
00042       o << "DOWNSOUTHEAST";
00043       break;
00044     case DOWNSOUTHWEST:
00045       o << "DOWNSOUTHWEST";
00046       break;
00047     case DOWNEAST:
00048       o << "DOWNEAST";
00049       break;
00050     case DOWNWEST:
00051       o << "DOWNWEST";
00052       break;
00053     case DOWNNORTHEAST:
00054       o << "NORTHEAST";
00055       break;
00056     case DOWNNORTHWEST:
00057       o << "NORTHWEST";
00058       break;
00059     case DOWNNORTH:
00060       o << "DOWNNORTH";
00061       break;
00062     case UP:
00063       o << "UP";
00064       break;
00065     case UPSOUTH:
00066       o << "UPSOUTH";
00067       break;
00068     case UPSOUTHEAST:
00069       o << "UPSOUTHEAST";
00070       break;
00071     case UPSOUTHWEST:
00072       o << "UPSOUTHWEST";
00073       break;
00074     case UPEAST:
00075       o << "UPEAST";
00076       break;
00077     case UPWEST:
00078       o << "UPWEST";
00079       break;
00080     case UPNORTHEAST:
00081       o << "NORTHEAST";
00082       break;
00083     case UPNORTHWEST:
00084       o << "NORTHWEST";
00085       break;
00086     case UPNORTH:
00087       o << "UPNORTH";
00088       break;
00089     default:
00090       //o << static_cast<int>(d);
00091       break;
00092     }
00093  
00094   return o;
00095 }

Generated on Tue Jun 9 17:37:17 2009 for CMSSW by  doxygen 1.5.4