|
ATLAS Offline Software
|
Go to the documentation of this file.
9 #ifndef TRKDETDESCRUNITTESTS_BinUtilityTEST_H
10 #define TRKDETDESCRUNITTESTS_BinUtilityTEST_H
13 #include "GaudiKernel/ServiceHandle.h"
14 #include "GaudiKernel/ToolHandle.h"
42 void prepareData(std::vector<float>&
vec, std::map<float, size_t>& map,
float& low,
float& high);
51 for ( ; vIter !=
array.end() ; ++vIter, ++
bin )
52 if ((*vIter) >
value)
break;
64 size_t nabove, nbelow, middle;
66 nabove =
array.size()+1;
70 while (nabove-nbelow > 1) {
71 middle = (nabove+nbelow)/2;
JetConstituentVector::iterator iterator
size_t m_numberOfSegments
size_t binarySearchWithBoundary(std::vector< float > &array, float value)
A binary search with underflow/overflow.
std::vector< size_t > vec
size_t searchInVectorWithBoundary(std::vector< float > &array, float value)
A binary search with a map - superior in O(10) searches.
::StatusCode StatusCode
StatusCode definition for legacy code.
size_t m_numberOfTestsPerSet
Ensure that the ATLAS eigen extensions are properly loaded.
void prepareData(std::vector< float > &vec, std::map< float, size_t > &map, float &low, float &high)
preparation of std::vector and std::map for comparison
BinUtilityTest(const std::string &name, ISvcLocator *pSvcLocator)
Standard Athena-Algorithm Constructor.