Belle II Software  release-05-02-19
TrackerAlgorithmBase.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2015 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Jakob Lettenbichler *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 #pragma once
11 
12 #include <string>
13 
14 namespace Belle2 {
20  template<class ContainerType, class ValidatorType>
22  class TrackerAlgorithmBase {
23  protected:
25  ValidatorType m_validator;
26 
27  public:
29  virtual ValidatorType& getValidator() { return m_validator; }
31 
33  virtual std::string printStatistics() { return ""; }
34 
36  virtual void setValidator(ValidatorType& aValidator) { m_validator = aValidator; }
38 
40  virtual int apply(ContainerType&) { return 0; }
41 
44  virtual unsigned int findSeeds(ContainerType&, bool) { return 0; }
45  };
47 }
Belle2::TrackerAlgorithmBase::findSeeds
virtual unsigned int findSeeds(ContainerType &, bool)
searches for seeds among the entries of parameter passed (bool sets strictnes for finding seeds),...
Definition: TrackerAlgorithmBase.h:52
Belle2::TrackerAlgorithmBase::getValidator
virtual ValidatorType & getValidator()
getter
Definition: TrackerAlgorithmBase.h:38
Belle2::TrackerAlgorithmBase::apply
virtual int apply(ContainerType &)
applies actual algorithm on parameter passed, returns some debuging results
Definition: TrackerAlgorithmBase.h:48
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TrackerAlgorithmBase::printStatistics
virtual std::string printStatistics()
returns current logging info of the algorithm (some stuff one wants to log about that algorithm
Definition: TrackerAlgorithmBase.h:41
Belle2::TrackerAlgorithmBase::m_validator
ValidatorType m_validator
something which checks the quality of the test so far (will be applied by the apply-function
Definition: TrackerAlgorithmBase.h:33
Belle2::TrackerAlgorithmBase::setValidator
virtual void setValidator(ValidatorType &aValidator)
setter
Definition: TrackerAlgorithmBase.h:45