CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CaloDirection.cc
Go to the documentation of this file.
2 #include <iostream>
3 
4 std::ostream & operator<<(std::ostream& o,const CaloDirection& d)
5 {
6  switch(d)
7  {
8  case NONE:
9  o << "NONE";
10  break;
11  case SOUTH:
12  o << "SOUTH";
13  break;
14  case SOUTHEAST:
15  o << "SOUTHEAST";
16  break;
17  case SOUTHWEST:
18  o << "SOUTHWEST";
19  break;
20  case EAST:
21  o << "EAST";
22  break;
23  case WEST:
24  o << "WEST";
25  break;
26  case NORTHEAST:
27  o << "NORTHEAST";
28  break;
29  case NORTHWEST:
30  o << "NORTHWEST";
31  break;
32  case NORTH:
33  o << "NORTH";
34  break;
35  case DOWN:
36  o << "DOWN";
37  break;
38  case DOWNSOUTH:
39  o << "DOWNSOUTH";
40  break;
41  case DOWNSOUTHEAST:
42  o << "DOWNSOUTHEAST";
43  break;
44  case DOWNSOUTHWEST:
45  o << "DOWNSOUTHWEST";
46  break;
47  case DOWNEAST:
48  o << "DOWNEAST";
49  break;
50  case DOWNWEST:
51  o << "DOWNWEST";
52  break;
53  case DOWNNORTHEAST:
54  o << "NORTHEAST";
55  break;
56  case DOWNNORTHWEST:
57  o << "NORTHWEST";
58  break;
59  case DOWNNORTH:
60  o << "DOWNNORTH";
61  break;
62  case UP:
63  o << "UP";
64  break;
65  case UPSOUTH:
66  o << "UPSOUTH";
67  break;
68  case UPSOUTHEAST:
69  o << "UPSOUTHEAST";
70  break;
71  case UPSOUTHWEST:
72  o << "UPSOUTHWEST";
73  break;
74  case UPEAST:
75  o << "UPEAST";
76  break;
77  case UPWEST:
78  o << "UPWEST";
79  break;
80  case UPNORTHEAST:
81  o << "NORTHEAST";
82  break;
83  case UPNORTHWEST:
84  o << "NORTHWEST";
85  break;
86  case UPNORTH:
87  o << "UPNORTH";
88  break;
89  default:
90  //o << static_cast<int>(d);
91  break;
92  }
93 
94  return o;
95 }
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:188
tuple d
Definition: ztail.py:151
CaloDirection
Codes the local directions in the cell lattice.
Definition: CaloDirection.h:9