CMS 3D CMS Logo

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