Belle II Software  release-05-01-25
RelationAdder.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2016 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Nils Braun *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 #pragma once
11 #include <tracking/trackFindingCDC/collectors/adders/AdderInterface.h>
12 
13 namespace Belle2 {
18  namespace TrackFindingCDC {
20  template <class ACollectorItem, class ACollectionItem>
21  class RelationAdder : public AdderInterface<ACollectorItem, ACollectionItem> {
22  private:
24  void add(ACollectorItem& collectorItem, const ACollectionItem& collectionItem, Weight weight) override
25  {
26  collectorItem->addRelationTo(collectionItem, weight);
27  }
28  };
29  }
31 }
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TrackFindingCDC::RelationAdder::add
void add(ACollectorItem &collectorItem, const ACollectionItem &collectionItem, Weight weight) override
Add a relation between the matched items.
Definition: RelationAdder.h:32