Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:27:59

0001 // This file is part of the Acts project.
0002 //
0003 // Copyright (C) 2019-2023 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 http://mozilla.org/MPL/2.0/.
0008 
0009 #pragma once
0010 
0011 #include "Acts/Definitions/Algebra.hpp"
0012 #include "Acts/EventData/TrackParameters.hpp"
0013 #include "Acts/Vertexing/TrackAtVertex.hpp"
0014 #include "Acts/Vertexing/Vertex.hpp"
0015 
0016 #include <map>
0017 
0018 namespace Acts {
0019 
0020 /// @brief Helper struct for storing vertex related information
0021 struct VertexInfo {
0022   VertexInfo() = default;
0023 
0024   VertexInfo(const Acts::Vertex& constr, const Acts::Vector4& pos)
0025       : constraint(constr),
0026         linPoint(pos),
0027         oldPosition(pos),
0028         seedPosition(pos) {}
0029 
0030   // Vertex constraint
0031   Acts::Vertex constraint;
0032 
0033   // Point where all associated tracks are linearized
0034   Acts::Vector4 linPoint{Acts::Vector4::Zero()};
0035 
0036   // Vertex position from the last iteration of the fit
0037   Acts::Vector4 oldPosition{Acts::Vector4::Zero()};
0038 
0039   // The seed position (i.e., the first estimate for the vertex position as
0040   // obtained by the vertex seed finder)
0041   Acts::Vector4 seedPosition{Acts::Vector4::Zero()};
0042 
0043   // If set to true, the associated tracks need to be relinearized at a more
0044   // recent vertex position
0045   bool relinearize = true;
0046 
0047   // Vector of all tracks that are currently assigned to vertex
0048   std::vector<InputTrack> trackLinks;
0049 
0050   std::map<InputTrack, const BoundTrackParameters> impactParams3D;
0051 };
0052 
0053 }  // namespace Acts