Belle II Software development
CAValidator.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8#pragma once
9
10namespace Belle2 {
18 template<class CellType>
19 struct CAValidator {
21 bool isValidRound(int caRound) { return !(caRound > nMaxIterations) and !(caRound < 0); }
22
24 bool checkSeed(const CellType& aCell) { return !(aCell.getState() < seedThreshold); }
25
28
30 unsigned int seedThreshold = 1;
31 };
32
34} //Belle2 namespace
Abstract base class for different kinds of events.
validation tool for CA algorithm
Definition: CAValidator.h:19
bool checkSeed(const CellType &aCell)
function to check the cell if seed-conditions are met.
Definition: CAValidator.h:24
bool isValidRound(int caRound)
checks if CA is still in valid area
Definition: CAValidator.h:21
int nMaxIterations
determines max number of iterations allowed by user, standard value is (number of VXD layers x 4) + 1...
Definition: CAValidator.h:27
unsigned int seedThreshold
threshold for being seed, standard value is 1
Definition: CAValidator.h:30