Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:07:42

0001 #include "Geometry/CaloTopology/interface/CaloDirection.h"
0002 #include <iostream>
0003 
0004 std::ostream& operator<<(std::ostream& o, const CaloDirection& d) {
0005   switch (d) {
0006     case NONE:
0007       o << "NONE";
0008       break;
0009     case SOUTH:
0010       o << "SOUTH";
0011       break;
0012     case SOUTHEAST:
0013       o << "SOUTHEAST";
0014       break;
0015     case SOUTHWEST:
0016       o << "SOUTHWEST";
0017       break;
0018     case EAST:
0019       o << "EAST";
0020       break;
0021     case WEST:
0022       o << "WEST";
0023       break;
0024     case NORTHEAST:
0025       o << "NORTHEAST";
0026       break;
0027     case NORTHWEST:
0028       o << "NORTHWEST";
0029       break;
0030     case NORTH:
0031       o << "NORTH";
0032       break;
0033     case DOWN:
0034       o << "DOWN";
0035       break;
0036     case DOWNSOUTH:
0037       o << "DOWNSOUTH";
0038       break;
0039     case DOWNSOUTHEAST:
0040       o << "DOWNSOUTHEAST";
0041       break;
0042     case DOWNSOUTHWEST:
0043       o << "DOWNSOUTHWEST";
0044       break;
0045     case DOWNEAST:
0046       o << "DOWNEAST";
0047       break;
0048     case DOWNWEST:
0049       o << "DOWNWEST";
0050       break;
0051     case DOWNNORTHEAST:
0052       o << "NORTHEAST";
0053       break;
0054     case DOWNNORTHWEST:
0055       o << "NORTHWEST";
0056       break;
0057     case DOWNNORTH:
0058       o << "DOWNNORTH";
0059       break;
0060     case UP:
0061       o << "UP";
0062       break;
0063     case UPSOUTH:
0064       o << "UPSOUTH";
0065       break;
0066     case UPSOUTHEAST:
0067       o << "UPSOUTHEAST";
0068       break;
0069     case UPSOUTHWEST:
0070       o << "UPSOUTHWEST";
0071       break;
0072     case UPEAST:
0073       o << "UPEAST";
0074       break;
0075     case UPWEST:
0076       o << "UPWEST";
0077       break;
0078     case UPNORTHEAST:
0079       o << "NORTHEAST";
0080       break;
0081     case UPNORTHWEST:
0082       o << "NORTHWEST";
0083       break;
0084     case UPNORTH:
0085       o << "UPNORTH";
0086       break;
0087     default:
0088       //o << static_cast<int>(d);
0089       break;
0090   }
0091 
0092   return o;
0093 }