Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
InternalSeed.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file InternalSeed.hpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 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 
12 #include "Acts/Seeding/Seed.hpp"
13 
14 #include <memory>
15 
16 namespace Acts {
17 template <typename SpacePoint>
18 class InternalSeed {
20  // Public methods:
22 
23  public:
27  bool qualitySeed = false);
29 
30  const std::array<InternalSpacePoint<SpacePoint>*, 3> sp;
31  float z() const { return m_z; }
32  bool qualitySeed() const { return m_qualitySeed; }
33 
34  protected:
35  float m_z;
37 };
38 
40 
42 // Inline methods
44 
45 template <typename SpacePoint>
48  m_z = seed.m_z;
49  sp = seed.sp;
50  m_qualitySeed = seed.m_qualitySeed;
51  return (*this);
52 }
53 
54 template <typename SpacePoint>
56  InternalSpacePoint<SpacePoint>& s0, InternalSpacePoint<SpacePoint>& s1,
57  InternalSpacePoint<SpacePoint>& s2, float z, bool qualitySeed)
58  : sp({&s0, &s1, &s2}) {
59  m_z = z;
60  m_qualitySeed = qualitySeed;
61 }
62 
64 
65 } // namespace Acts