PandaRoot
PndFtsCircleHitSet.h
Go to the documentation of this file.
1 //
2 // Created by Bartosz Sobol on 24.03.2021.
3 //
4 
5 #pragma once
6 
7 #include <iostream>
8 
9 #include "PndFtsHelpers.h"
10 
11 namespace PndFtsTrackFinder {
12 
14  public:
15  PndFtsCircleHitSet() = delete;
16 
17  PndFtsCircleHitSet(const RawHitVector &hits, const PndFtsGeom &geom);
18 
19  template <class ItT>
20  PndFtsCircleHitSet(ItT begin, ItT end, const PndFtsGeom &geom)
21  {
22  Reserve(std::distance(begin, end));
23 
24  std::for_each(begin, end, [this, &geom](const auto hit) { Add(hit, geom); });
25  }
26 
27  [[nodiscard]] bool IsComplete() const noexcept;
28 
32 
33  private:
34  void Reserve(const std::size_t size);
35 
36  void Add(const PndFtsSimpleHit &hit, const PndFtsGeom &geom);
37 };
38 
39 using CircleHitSetVector = std::vector<PndFtsCircleHitSet>;
40 
41 } // namespace PndFtsTrackFinder
PndFtsCircleHitSet(ItT begin, ItT end, const PndFtsGeom &geom)
std::vector< PndFtsSimpleHit > RawHitVector
std::vector< PndFtsCircleHitSet > CircleHitSetVector