EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Seed.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file Seed.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 
11 #include <vector>
12 
13 namespace Acts {
14 template <typename SpacePoint>
15 class Seed {
17  // Public methods:
19 
20  public:
21  Seed(const SpacePoint& b, const SpacePoint& m, const SpacePoint& u,
22  float vertex);
23  Seed(const Seed&) = default;
24  Seed& operator=(const Seed&);
25 
26  const std::vector<const SpacePoint*>& sp() const { return m_spacepoints; }
27  double z() const { return m_zvertex; }
28 
29  private:
30  std::vector<const SpacePoint*> m_spacepoints;
31  float m_zvertex;
32 };
33 
35 // Constructors
37 
38 template <typename SpacePoint>
40  const SpacePoint& u, float vertex) {
41  m_zvertex = vertex;
42  m_spacepoints.push_back(&b);
43  m_spacepoints.push_back(&m);
44  m_spacepoints.push_back(&u);
45 }
46 
47 } // namespace Acts