Belle II Software  release-05-02-19
CAValidator.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 namespace Belle2 {
20  template<class CellType>
21  struct CAValidator {
23  bool isValidRound(int caRound) { return !(caRound > nMaxIterations) and !(caRound < 0); }
24 
26  bool checkSeed(CellType& aCell) { return !(aCell.getState() < seedThreshold); }
27 
29  int nMaxIterations = 25;
30 
32  unsigned int seedThreshold = 1;
33  };
34 
36 } //Belle2 namespace
Belle2::CAValidator::checkSeed
bool checkSeed(CellType &aCell)
function to check the cell if seed-conditions are met.
Definition: CAValidator.h:34
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::CAValidator::isValidRound
bool isValidRound(int caRound)
checks if CA is still in valid area
Definition: CAValidator.h:31
Belle2::CAValidator::seedThreshold
unsigned int seedThreshold
threshold for being seed, standard value is 1
Definition: CAValidator.h:40
Belle2::CAValidator::nMaxIterations
int nMaxIterations
determines max number of iterations allowed by user, standard value is (number of VXD layers x 4) + 1...
Definition: CAValidator.h:37