Greetings. How can I output the maximum value of the histogram (on the Y axis) without drawing? My code doesn’t help.
c = ROOT.TCanvas() myFile = ROOT.TFile.Open(“/home/erg/2022.12/2022.12.01/Dec01031235.root”) Tree = myFile.Get(“FADCData 882”) Tree.GetMaximum(“Channel0”)
_ROOT Version: 6.26/10 _Platform: Ubuntu _Compiler: pycharm community
Hi @Fredrih ,
Please see the TH1 documentation for information on how to retrieve the maximum value of an histogram. Also, read TTree documentation to understand what your call to TTree::GetMaximum in your snippet is doing. Cheers, Vincenzo
TTree::GetMaximum
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.