forked from sPHENIX-Collaboration/acts
/
ATLASTopBinFinder.hpp
39 lines (31 loc) · 1.32 KB
/
ATLASTopBinFinder.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// This file is part of the Acts project.
//
// Copyright (C) 2018 CERN for the benefit of the Acts project
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#pragma once
#include "Acts/Seeding/IBinFinder.hpp"
#include <set>
namespace Acts {
// DEBUG: THIS REQUIRES THE BINS TO BE SET TO phi:41 z:11
/// @class ATLASBinFinder
/// The ATLASBinFinder is an implementation of the ATLAS bincombination behavior
/// satisfying the IBinFinder interface. Assumes the grid has 11 bins filled by
/// the same logic as ATLAS bins.
template <typename SpacePoint>
class ATLASTopBinFinder : public IBinFinder<SpacePoint> {
public:
/// Virtual destructor
~ATLASTopBinFinder() = default;
/// Return all bins that could contain space points that can be used with the
/// space points in the bin with the provided indices to create seeds.
/// @param phiBin phi index of bin with middle space points
/// @param zBin z index of bin with middle space points
/// @param binnedSP phi-z grid containing all bins
std::set<size_t> findBins(size_t phiBin, size_t zBin,
const SpacePointGrid<SpacePoint>* binnedSP);
};
} // namespace Acts
#include "ATLASTopBinFinder.ipp"