23 typedef std::map<std::string,TObject*>::const_iterator
HistoItr;
33 int ny=0,
float ymin=0.,
float ymax=0.);
38 int ny=0,
float ymin=0.,
float ymax=0.);
void bookByNumber(const std::string &name, int n1, int n2, int nx, float xmin, float xmax, int ny=0, float ymin=0., float ymax=0.)
std::map< std::string, TObject * >::const_iterator HistoItr
std::map< std::string, unsigned > theTypes
void debug(std::string p="") const
void fill(const std::string &name, float val1, float val2=1., float val3=1.)
Fill an histogram.
void addObject(const std::string &name, TObject *obj)
Add any object.
void book(const std::string &name, int nx, float xmin, float xmax, int ny=0, float ymin=0., float ymax=0.)
Book an histogram (1D or 2D)
static Histos * instance()
void fillByNumber(const std::string &name, int number, float val1, float val2=1., float val3=1.)
void put(const std::string &file, std::string name="")
Write one or all histogram(s) in a file.
void divide(const std::string &h1, const std::string &h2, const std::string &h3)
Divide two histograms and put the result in the first.
std::map< std::string, TObject * > theHistos
std::map< std::string, TObject * > theObjects
virtual ~Histos()
Destructor.