ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GaussianTrackDensity.cpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file GaussianTrackDensity.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 
12  const std::vector<Acts::BoundParameters>& trackList, State& state) const {
13  addTracks(trackList, state);
14  return state.trackDensity.globalMaximum(state.trackDensityState);
15 }
16 
18  const std::vector<Acts::BoundParameters>& trackList, State& state) const {
19  addTracks(trackList, state);
21 }
22 
24  const std::vector<Acts::BoundParameters>& trackList, State& state) const {
25  const double d0SignificanceCut =
26  m_cfg.d0MaxSignificance * m_cfg.d0MaxSignificance;
27  const double z0SignificanceCut =
28  m_cfg.z0MaxSignificance * m_cfg.z0MaxSignificance;
29 
30  for (const auto& trk : trackList) {
31  state.trackDensity.addTrack(state.trackDensityState, trk, d0SignificanceCut,
32  z0SignificanceCut);
33  }
34 }