ATLAS Offline Software
Loading...
Searching...
No Matches
MuonHoughHisto2DContainer.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3*/
4
6
8
10
11 double maximum{0.};
12 int maxid{-1}, maxbin{-1};
13 for (int histoid = 0; histoid < size(); histoid++) {
14 std::pair<int, double> histomax =
15 getHisto(histoid)->getMaximumBin(0); // binnumber and value of the area of the bin
16
17 if (histomax.second > maximum) {
18 maximum = histomax.second;
19 maxid = histoid;
20 maxbin = histomax.first;
21 }
22 }
23 return std::make_pair(maxid, maxbin);
24}
25
27 for (int histoid = 0; histoid < size(); histoid++) { getHisto(histoid)->reset(); }
28}
std::pair< int, int > getMaximumBinnumber() const
return maximum of container gives first id histogram (sector) and then maximumbin
void reset() const
resets histograms
int size() const
returns size of container
MuonHoughHisto2D * getHisto(int id) const
return histogram at place id
MuonHoughHisto2DContainer()
constructor
std::pair< int, double > getMaximumBin(unsigned int maximum_number=0)
returns binnumber and maximum of maximum number maximum_number
void reset()
clears histogram and bins_above_threshold