7 HeatMap::HeatMap(
int _Nz,
double _minz,
double _maxz,
int _Nx,
double _minx,
double _maxx)
8 : minz(_minz), minx(_minx), maxz(_maxz), maxx(_maxx), Nx(_Nx), Nz(_Nz), map(Nz * Nx, 0)
15 for (
unsigned int i = 0; i <
map.size(); ++i) {
16 h->SetBinContent((i / Nx) + 1, (i % Nx) + 1,
map[i]);
20 for (
int i = 0; i < (h->GetNbinsX() + 2) * (h->GetNbinsY() + 2); ++i) {
21 maxz = std::max(maxz, h->GetBinContent(i));
25 for (
int i = 0; i < (h->GetNbinsX() + 2) * (h->GetNbinsY() + 2); ++i) {
26 if (h->GetBinContent(i) < .05 *
maxz) h->SetBinContent(i, 0);
HeatMap(int _Nz, double _minz, double _maxz, int _Nx, double _minx, double _maxx)
std::unique_ptr< TH2F > AsTH2() const