EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
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
11
#include "
Acts/Seeding/InternalSpacePoint.hpp
"
12
#include "
Acts/Seeding/Seed.hpp
"
13
14
#include <memory>
15
16
namespace
Acts {
17
template
<
typename
SpacePo
int
>
18
class
InternalSeed
{
20
// Public methods:
22
23
public
:
24
InternalSeed
(
const
InternalSpacePoint<SpacePoint>
& s0,
25
const
InternalSpacePoint<SpacePoint>
&
s1
,
26
const
InternalSpacePoint<SpacePoint>
&
s2
,
float
z
);
27
InternalSeed
&
operator=
(
const
InternalSeed
& seed);
28
29
const
std::array<const InternalSpacePoint<SpacePoint>*, 3>
sp
;
30
float
z
()
const
{
return
m_z
; }
31
32
protected
:
33
float
m_z
;
34
};
35
37
// Inline methods
39
40
template
<
typename
SpacePo
int
>
41
inline
InternalSeed<SpacePoint>
&
InternalSeed<SpacePoint>::operator=
(
42
const
InternalSeed<SpacePoint>
& seed) {
43
m_z = seed.
m_z
;
44
sp = seed.
sp
;
45
return
(*
this
);
46
}
47
48
template
<
typename
SpacePo
int
>
49
inline
InternalSeed<SpacePoint>::InternalSeed
(
50
const
InternalSpacePoint<SpacePoint>
& s0,
51
const
InternalSpacePoint<SpacePoint>
&
s1
,
52
const
InternalSpacePoint<SpacePoint>
&
s2
,
float
z
)
53
: sp({&s0, &
s1
, &s2}) {
54
m_z =
z
;
55
}
56
57
}
// namespace Acts
acts
blob
sPHENIX
Core
include
Acts
Seeding
InternalSeed.hpp
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:23
using
1.8.2 with
EIC GitHub integration