Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TestSourceLink.cpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file TestSourceLink.cpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2020 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 
10 
11 #include <ostream>
12 
14  const TestSourceLink& rhs) {
15  return (lhs.m_geometryId == rhs.m_geometryId) and
16  (lhs.sourceId == rhs.sourceId) and (lhs.indices == rhs.indices) and
17  (lhs.parameters == rhs.parameters) and
18  (lhs.covariance == rhs.covariance);
19 }
20 
22  const TestSourceLink& rhs) {
23  return not(lhs == rhs);
24 }
25 
26 std::ostream& Acts::Test::operator<<(
27  std::ostream& os, const Acts::Test::TestSourceLink& sourceLink) {
28  os << "TestsSourceLink(geometryId=" << sourceLink.m_geometryId
29  << ",sourceId=" << sourceLink.sourceId;
30  if (sourceLink.indices[0] != eBoundSize) {
31  os << ",index0=" << sourceLink.indices[0];
32  }
33  if (sourceLink.indices[1] != eBoundSize) {
34  os << ",index1=" << sourceLink.indices[1];
35  }
36  os << ")";
37  return os;
38 }