#ifndef ALIUNICORHN_H #define ALIUNICORHN_H /* Copyright(c) 1998-2048, ALICE Experiment at CERN, All rights reserved. * * See cxx source for full Copyright notice */ /* $Id$ */ // Author: Dariusz Miskowiec 2007 //============================================================================= // multidimensional histogram //============================================================================= #include class TH2D; class TAxis; //============================================================================= class AliUnicorHN : public TH1D { public: AliUnicorHN(const char *nam="muhi", Int_t ndim=0, TAxis **ax=0); // constructor AliUnicorHN(TRootIOCtor *) : TH1D(), fNdim(0) {for (int i=0; iGetNbins(),fAxis[1]->... Int_t fMbins[fgkMaxNdim]; // {...[fNdim-2]*fNbins[fNdim-1],fNbins[fNdim-1],1} static Int_t Albins(Int_t n, TAxis **ax); // product of nbins of ax[0]...ax[n-1] Int_t MulToOne(const Int_t * const k) const; // calc 1-dim index from n-dim indices Int_t MulToOne(Double_t *x); // calc 1-dim index from n-dim vector ClassDef(AliUnicorHN,1) }; //============================================================================= #endif