forked from sPHENIX-Collaboration/acts
/
BoundarySurfaceFace.hpp
91 lines (83 loc) · 2.2 KB
/
BoundarySurfaceFace.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
// This file is part of the Acts project.
//
// Copyright (C) 2016-2018 CERN for the benefit of the Acts project
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#pragma once
#include <iostream>
namespace Acts {
/// @enum BoundarySurfaceFace
///
/// Enum to describe the position of the BoundarySurface
/// respectively to the frame orientatin of the volume,
/// this is mainly ment for code readability.
///
/// The different numeration sequences can be found in the
/// documentation of the actual VolumeBounds implementations.
///
/// The order of faces is chosen to follow - as much as
/// possible - a cycular structure.
enum BoundarySurfaceFace {
negativeFaceXY = 0,
positiveFaceXY = 1,
negativeFaceYZ = 2,
positiveFaceYZ = 3,
negativeFaceZX = 4,
positiveFaceZX = 5,
cylinderCover = 2,
tubeInnerCover = 3,
tubeOuterCover = 2,
tubeSectorNegativePhi = 4,
tubeSectorPositivePhi = 5,
tubeSectorInnerCover = 3,
tubeSectorOuterCover = 2,
trapezoidFaceAlpha = 2,
trapezoidFaceBeta = 3,
index0 = 0,
index1 = 1,
index2 = 2,
index3 = 3,
index4 = 4,
index5 = 5,
index6 = 6,
index7 = 7,
index8 = 8,
index9 = 9,
index10 = 10,
index11 = 11,
undefinedFace = 99
};
inline std::ostream& operator<<(std::ostream& os, BoundarySurfaceFace& face) {
os << "BoundarySurfaceFace::";
switch (face) {
case negativeFaceXY:
os << "negativeFaceXY";
break;
case positiveFaceXY:
os << "positiveFaceXY";
break;
case negativeFaceYZ:
os << "negativeFaceYZ|cylinderCover|tubeOuterCover|tubeSectorOuterCover|"
"trapezoidFaceAlpha";
break;
case positiveFaceYZ:
os << "positiveFaceYZ|tubeInnerCover|tubeSectorInnerCover|"
"trapezoidFaceBeta";
break;
case negativeFaceZX:
os << "negativeFaceZX|tubeSectorNegativePhi";
break;
case positiveFaceZX:
os << "positiveFaceZX|tubeSectorPositivePhi";
break;
case undefinedFace:
os << "undefinedFace";
break;
default:
os << face;
}
return os;
}
} // namespace Acts