12 #include <tracking/trackFindingCDC/numerics/Weight.h>
20 namespace TrackFindingCDC {
27 template<
class AHitInBoxAlgorithm,
class AnotherHitInBoxAlgorithm>
28 class TwoHitInBoxAlgorithm {
31 using HoughBox =
typename AHitInBoxAlgorithm::HoughBox;
36 template<
class AObject>
40 AHitInBoxAlgorithm hitInBoxAlgorithm;
41 AnotherHitInBoxAlgorithm anotherHitInBoxAlgorithm;
43 const Weight& firstResult = hitInBoxAlgorithm(
object, box);
44 const Weight& secondResult = anotherHitInBoxAlgorithm(
object, box);
46 if (std::isnan(firstResult) and std::isnan(secondResult)) {
48 }
else if (std::isnan(firstResult)) {
50 }
else if (std::isnan(secondResult)) {
53 return firstResult + secondResult;