GooFit  v2.1.3
Public Member Functions | Public Attributes | List of all members
BigBin Struct Reference

Public Member Functions

double getContent (TH2F *plot)
 

Public Attributes

int xbin
 
int ybin
 
int width
 
int height
 

Detailed Description

Definition at line 1522 of file pipipi0DPFit.cpp.

Member Function Documentation

◆ getContent()

double BigBin::getContent ( TH2F *  plot)

Definition at line 1530 of file pipipi0DPFit.cpp.

Referenced by getAdaptiveChisquare().

1530  {
1531  double ret = 0;
1532 
1533  // std::cout << "getContent with " << width << " " << height << " " << xbin << " " << ybin <<std::endl;
1534  for(unsigned int i = 0; i < width; ++i) {
1535  for(unsigned int j = 0; j < height; ++j) {
1536  // std::cout << i << ", " << j << std::endl;
1537  if(xbin + i > plot->GetNbinsX())
1538  continue;
1539 
1540  if(ybin + j > plot->GetNbinsY())
1541  continue;
1542 
1543  ret += plot->GetBinContent(xbin + i, ybin + j);
1544  }
1545  }
1546 
1547  // std::cout << "Total " << ret << std::endl;
1548  return ret;
1549 }

Member Data Documentation

◆ height

int BigBin::height

Definition at line 1526 of file pipipi0DPFit.cpp.

Referenced by getAdaptiveChisquare().

◆ width

int BigBin::width

Definition at line 1525 of file pipipi0DPFit.cpp.

Referenced by getAdaptiveChisquare().

◆ xbin

int BigBin::xbin

Definition at line 1523 of file pipipi0DPFit.cpp.

Referenced by getAdaptiveChisquare().

◆ ybin

int BigBin::ybin

Definition at line 1524 of file pipipi0DPFit.cpp.

Referenced by getAdaptiveChisquare().


The documentation for this struct was generated from the following file: