15 m_numberOfSegments(10),
16 m_numberOfTestsPerSet(100000)
42 std::vector<float> binVector;
43 std::map<float, size_t> binMap;
47 prepareData(binVector, binMap, low, high);
52 for (
size_t itpv = 0; itpv < m_numberOfTestsPerSet; ++itpv) {
55 size_t binVec = searchInVectorWithBoundary(binVector, testPosition.x());
56 size_t binBin = binarySearchWithBoundary(binVector, testPosition.x());
57 size_t binUtil = binUtility.
bin(testPosition, 0);
58 if (binVec != binBin || binVec != binUtil )
59 ATH_MSG_WARNING(
"Searches through binary (" << binBin <<
"), vector (" << binVec <<
") or tutility (" << binUtil <<
") differ.");
63 return StatusCode::SUCCESS;
71 float range = high - low;
74 for (
size_t is = 0; is < m_numberOfSegments-1; ++is){
75 map[low +
range*m_flatDist->shoot()] = 0;
78 vec.reserve(m_numberOfSegments+1);
80 for (
size_t cs = 0 ; sIter != map.end(); ++sIter, ++cs ){
81 vec.push_back((*sIter).first);