Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
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
(
InternalSpacePoint<SpacePoint>
& s0,
25
InternalSpacePoint<SpacePoint>
& s1,
26
InternalSpacePoint<SpacePoint>
& s2,
float
z
,
27
bool
qualitySeed
=
false
);
28
InternalSeed
&
operator=
(
const
InternalSeed
&
seed
);
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
;
36
bool
m_qualitySeed
;
37
};
38
40
42
// Inline methods
44
45
template
<
typename
SpacePo
int
>
46
inline
InternalSeed<SpacePoint>
&
InternalSeed<SpacePoint>::operator=
(
47
const
InternalSeed<SpacePoint>
&
seed
) {
48
m_z = seed.
m_z
;
49
sp = seed.
sp
;
50
m_qualitySeed = seed.
m_qualitySeed
;
51
return
(*
this
);
52
}
53
54
template
<
typename
SpacePo
int
>
55
inline
InternalSeed<SpacePoint>::InternalSeed
(
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
acts
blob
sPHENIX
Core
include
Acts
Seeding
InternalSeed.hpp
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:34
using
1.8.2 with
sPHENIX GitHub integration