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
SpacePoint.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file SpacePoint.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
struct
SpacePoint
{
12
float
m_x
;
13
float
m_y
;
14
float
m_z
;
15
float
m_r
;
16
int
layer
;
17
float
varianceR
;
18
float
varianceZ
;
19
float
x
()
const
{
return
m_x
; }
20
float
y
()
const
{
return
m_y
; }
21
float
z
()
const
{
return
m_z
; }
22
float
r
()
const
{
return
m_r
; }
23
};
24
25
bool
operator==
(
SpacePoint
a
,
SpacePoint
b
) {
26
if
(fabs(a.
m_x
- b.
m_x
) < 1
e
-6 && fabs(a.
m_y
- b.
m_y
) < 1
e
-6 &&
27
fabs(a.
m_z
- b.
m_z
) < 1
e
-6) {
28
return
true
;
29
}
else
{
30
return
false
;
31
}
32
}
acts
blob
sPHENIX
Tests
UnitTests
Core
Seeding
SpacePoint.hpp
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:44
using
1.8.2 with
sPHENIX GitHub integration