EIC 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 Transform3D& htrans, double radius, double halfz)
23  : GeometryObject(), LineSurface(htrans, radius, halfz) { /* nop */
24  }
25  //
27  std::shared_ptr<const LineBounds> lbounds = nullptr)
28  : GeometryObject(), LineSurface(htrans, lbounds) { /*nop */
29  }
30  //
31  LineSurfaceStub(std::shared_ptr<const LineBounds> lbounds,
32  const DetectorElementBase& detelement)
33  : GeometryObject(), LineSurface(lbounds, detelement) { /* nop */
34  }
35 
36  //
38  : GeometryObject(), LineSurface(ls) { /* nop */
39  }
40 
43  return *this;
44  }
45 
46  //
48  const Transform3D& t)
49  : GeometryObject(), LineSurface(gctx, ls, t) { /* nop */
50  }
51 
53  SurfaceType type() const final { return Surface::Straw; }
54 
56  bool constructedOk() const { return true; }
57 
58  using Surface::normal;
59 
67  size_t /*lseg*/) const final {
68  return Polyhedron({}, {}, {});
69  }
70 };
71 } // namespace Test
72 } // namespace Acts