2 // Class AliRsnHistoDef
4 // Definition for a histogram type.
5 // Since one could do an analysis which is not an invariant mass
6 // the histogram definition should be more flexible, and it is stored
7 // separately in a new class.
8 // This class considers the possibility of a 1D or 2D histograms
9 // with its related binning, and can create a new histo from his definitions
15 #include "AliRsnHistoDef.h"
17 ClassImp(AliRsnHistoDef)
19 //_____________________________________________________________________________
20 AliRsnHistoDef::AliRsnHistoDef() :
26 // Default constructor
30 //_____________________________________________________________________________
31 AliRsnHistoDef::AliRsnHistoDef
32 (Int_t nbins, Double_t min, Double_t max) :
38 // 1D histo definition.
40 SetBins(nbins, min, max);
43 //_____________________________________________________________________________
44 AliRsnHistoDef::AliRsnHistoDef
45 (Double_t min, Double_t max, Double_t step) :
51 // 1D histo definition.
53 SetBins(min, max, step);
56 //_____________________________________________________________________________
57 void AliRsnHistoDef::SetBins(Int_t n, Double_t min, Double_t max)
60 // Binning for histogram.
77 //_____________________________________________________________________________
78 void AliRsnHistoDef::SetBins(Double_t min, Double_t max, Double_t step)
81 // Binning for histogram.
95 fNBins = (Int_t)((fMax - fMin) / (step)) + 1;