Hi Mathieu, I have fixed an initialisation problem in TH1 default constructor when used in the way indicated in your example. Note that it might be better if you want to build an array of histograms to do: TH1F *h[n]; h[i] = new TH1F(......) Rene Brun Mathieu Ribordy wrote: > > 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