Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:13:07

0001 // This file is part of the ACTS project.
0002 //
0003 // Copyright (C) 2016 CERN for the benefit of the ACTS project
0004 //
0005 // This Source Code Form is subject to the terms of the Mozilla Public
0006 // License, v. 2.0. If a copy of the MPL was not distributed with this
0007 // file, You can obtain one at https://mozilla.org/MPL/2.0/.
0008 
0009 #pragma once
0010 
0011 struct SpacePoint {
0012   float m_x;
0013   float m_y;
0014   float m_z;
0015   float m_r;
0016   int surface;
0017   float varianceR;
0018   float varianceZ;
0019   float x() const { return m_x; }
0020   float y() const { return m_y; }
0021   float z() const { return m_z; }
0022   float r() const { return m_r; }
0023 };
0024 
0025 bool operator==(SpacePoint a, SpacePoint b) {
0026   if (fabs(a.m_x - b.m_x) < 1e-6 && fabs(a.m_y - b.m_y) < 1e-6 &&
0027       fabs(a.m_z - b.m_z) < 1e-6) {
0028     return true;
0029   } else {
0030     return false;
0031   }
0032 }