EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
BoundarySurfaceFace.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file BoundarySurfaceFace.hpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2016-2018 CERN for the benefit of the Acts project
4 //
5 // This Source Code Form is subject to the terms of the Mozilla Public
6 // License, v. 2.0. If a copy of the MPL was not distributed with this
7 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 
9 #pragma once
10 
11 #include <iostream>
12 
13 namespace Acts {
14 
42  index0 = 0,
43  index1 = 1,
44  index2 = 2,
45  index3 = 3,
46  index4 = 4,
47  index5 = 5,
48  index6 = 6,
49  index7 = 7,
50  index8 = 8,
51  index9 = 9,
52  index10 = 10,
53  index11 = 11,
55 
56 };
57 
58 inline std::ostream& operator<<(std::ostream& os, BoundarySurfaceFace& face) {
59  os << "BoundarySurfaceFace::";
60 
61  switch (face) {
62  case negativeFaceXY:
63  os << "negativeFaceXY";
64  break;
65  case positiveFaceXY:
66  os << "positiveFaceXY";
67  break;
68  case negativeFaceYZ:
69  os << "negativeFaceYZ|cylinderCover|tubeOuterCover|tubeSectorOuterCover|"
70  "trapezoidFaceAlpha";
71  break;
72  case positiveFaceYZ:
73  os << "positiveFaceYZ|tubeInnerCover|tubeSectorInnerCover|"
74  "trapezoidFaceBeta";
75  break;
76  case negativeFaceZX:
77  os << "negativeFaceZX|tubeSectorNegativePhi";
78  break;
79  case positiveFaceZX:
80  os << "positiveFaceZX|tubeSectorPositivePhi";
81  break;
82  case undefinedFace:
83  os << "undefinedFace";
84  break;
85  default:
86  os << face;
87  }
88 
89  return os;
90 }
91 } // namespace Acts