Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
LineSurfaceStub.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file LineSurfaceStub.hpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2017-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 #pragma once
9 
12 
13 #include <limits>
14 
15 namespace Acts {
16 namespace Test {
17 
18 class LineSurfaceStub : public LineSurface {
19  public:
20  LineSurfaceStub() = delete;
21  //
22  LineSurfaceStub(const Transform3& htrans, double radius, double halfz)
23  : GeometryObject(), LineSurface(htrans, radius, halfz) { /* nop */
24  }
25  //
26  LineSurfaceStub(const Transform3& htrans,
27  std::shared_ptr<const LineBounds> lbounds = nullptr)
28  : GeometryObject(), LineSurface(htrans, std::move(lbounds)) { /*nop */
29  }
30  //
31  LineSurfaceStub(std::shared_ptr<const LineBounds> lbounds,
32  const DetectorElementBase& detelement)
33  : GeometryObject(),
34  LineSurface(std::move(lbounds), detelement) { /* nop */
35  }
36 
37  //
39  : GeometryObject(), LineSurface(ls) { /* nop */
40  }
41 
42  LineSurfaceStub& operator=(const LineSurfaceStub& ls) = default;
43 
44  //
46  const Transform3& t)
47  : GeometryObject(), LineSurface(gctx, ls, t) { /* nop */
48  }
49 
51  SurfaceType type() const final { return Surface::Straw; }
52 
54  bool constructedOk() const { return true; }
55 
56  using Surface::normal;
57 
65  size_t /*lseg*/) const final {
66  return Polyhedron({}, {}, {});
67  }
68 };
69 } // namespace Test
70 } // namespace Acts