CMS 3D CMS Logo

Enumerations | Functions

/data/refman/pasoursint/CMSSW_5_2_9/src/Geometry/CaloTopology/interface/CaloDirection.h File Reference

#include <iosfwd>

Go to the source code of this file.

Enumerations

enum  CaloDirection {
  NONE, SOUTH, SOUTHEAST, SOUTHWEST,
  EAST, WEST, NORTHEAST, NORTHWEST,
  NORTH, DOWN, DOWNSOUTH, DOWNSOUTHEAST,
  DOWNSOUTHWEST, DOWNEAST, DOWNWEST, DOWNNORTHEAST,
  DOWNNORTHWEST, DOWNNORTH, UP, UPSOUTH,
  UPSOUTHEAST, UPSOUTHWEST, UPEAST, UPWEST,
  UPNORTHEAST, UPNORTHWEST, UPNORTH
}
 

Codes the local directions in the cell lattice.

More...

Functions

std::ostream & operator<< (std::ostream &, const CaloDirection &)

Enumeration Type Documentation

Codes the local directions in the cell lattice.

Enumerator:
NONE 
SOUTH 
SOUTHEAST 
SOUTHWEST 
EAST 
WEST 
NORTHEAST 
NORTHWEST 
NORTH 
DOWN 
DOWNSOUTH 
DOWNSOUTHEAST 
DOWNSOUTHWEST 
DOWNEAST 
DOWNWEST 
DOWNNORTHEAST 
DOWNNORTHWEST 
DOWNNORTH 
UP 
UPSOUTH 
UPSOUTHEAST 
UPSOUTHWEST 
UPEAST 
UPWEST 
UPNORTHEAST 
UPNORTHWEST 
UPNORTH 

Definition at line 9 of file CaloDirection.h.


Function Documentation

std::ostream& operator<< ( std::ostream &  ,
const CaloDirection  
)

Definition at line 4 of file CaloDirection.cc.

References DOWN, DOWNEAST, DOWNNORTH, DOWNNORTHEAST, DOWNNORTHWEST, DOWNSOUTH, DOWNSOUTHEAST, DOWNSOUTHWEST, DOWNWEST, EAST, NONE, NORTH, NORTHEAST, NORTHWEST, python::connectstrParser::o, SOUTH, SOUTHEAST, SOUTHWEST, UP, UPEAST, UPNORTH, UPNORTHEAST, UPNORTHWEST, UPSOUTH, UPSOUTHEAST, UPSOUTHWEST, UPWEST, and WEST.

{
  switch(d)
    {
    case NONE:
      o << "NONE";
      break;
    case SOUTH:
      o << "SOUTH";
      break;
    case SOUTHEAST:
      o << "SOUTHEAST";
      break;
    case SOUTHWEST:
      o << "SOUTHWEST";
      break;
    case EAST:
      o << "EAST";
      break;
    case WEST:
      o << "WEST";
      break;
    case NORTHEAST:
      o << "NORTHEAST";
      break;
    case NORTHWEST:
      o << "NORTHWEST";
      break;
    case NORTH:
      o << "NORTH";
      break;
    case DOWN:
      o << "DOWN";
      break;
    case DOWNSOUTH:
      o << "DOWNSOUTH";
      break;
    case DOWNSOUTHEAST:
      o << "DOWNSOUTHEAST";
      break;
    case DOWNSOUTHWEST:
      o << "DOWNSOUTHWEST";
      break;
    case DOWNEAST:
      o << "DOWNEAST";
      break;
    case DOWNWEST:
      o << "DOWNWEST";
      break;
    case DOWNNORTHEAST:
      o << "NORTHEAST";
      break;
    case DOWNNORTHWEST:
      o << "NORTHWEST";
      break;
    case DOWNNORTH:
      o << "DOWNNORTH";
      break;
    case UP:
      o << "UP";
      break;
    case UPSOUTH:
      o << "UPSOUTH";
      break;
    case UPSOUTHEAST:
      o << "UPSOUTHEAST";
      break;
    case UPSOUTHWEST:
      o << "UPSOUTHWEST";
      break;
    case UPEAST:
      o << "UPEAST";
      break;
    case UPWEST:
      o << "UPWEST";
      break;
    case UPNORTHEAST:
      o << "NORTHEAST";
      break;
    case UPNORTHWEST:
      o << "NORTHWEST";
      break;
    case UPNORTH:
      o << "UPNORTH";
      break;
    default:
      //o << static_cast<int>(d);
      break;
    }
 
  return o;
}