[ROOT] Histo default Constructor

From: Mathieu Ribordy (mathieu.ribordy@desy.de)
Date: Fri Mar 02 2001 - 10:51:43 MET


Hi rooters,

if using arrays of histo, one may want to do things like that, as it is
forbidden to declare constructor parameters at the same time as array
dimension:
TH1F h;
h.SetBins(10,-3,3);
h.SetMinimum();  // I have to had this line
h.SetMaximum(); // I have to add this line

...
    h.Fill(...);

results a y-min and max values set to -/+ 1, if not adding the calls to
SetMin and Max method.
Am I wrong somehow ? Is that wanted ? (shouldn't Min and Max be set to
the default values of these methods ?) (I'm using cern afs new version
i386_redhat50)

Cheers,
    Mathieu



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:38 MET