This example demonstrates how to display a 2D histogram and use TCutG object to select bins for drawing.
Moving TCutG object one can change displayed region of histogram
void hist018_TH2_cutg()
{
TH2F *hist =
new TH2F(
"hist",
"Histogram with cut", 40, -10., 10., 40, -10., 10.);
for (int i = 0; i < 100000; i++)
}
float Float_t
Float 4 bytes (float).
void Draw(Option_t *chopt="") override
Default Draw method for all objects.
void Draw(Option_t *option="") override
Draw this histogram with options.
2-D histogram with a float per channel (see TH1 documentation)
Int_t Fill(Double_t) override
Invalid Fill method.
- Date
- January 2023
- Author
- Sergey Linev
Definition in file hist018_TH2_cutg.C.