#if !defined HMEMORYCHECK_H
#define HMEMORYCHECK_H
#include "TObject.h"
class TH1F;
class TH2F;
class HMemoryCheck : public TObject {
protected:
Int_t fHiMemLimit;
Bool_t kAlarm;
public:
HMemoryCheck() : TObject() { fHiMemLimit = 50000000; check(); }
virtual ~HMemoryCheck() {}
void setMemLimit(Int_t alimit) { fHiMemLimit = alimit; check(); }
Bool_t isAlarm() const { return kAlarm; }
Int_t getMemLimit() const { return fHiMemLimit; }
void check(Int_t *c = 0);
Bool_t checkVirtual(Int_t nDim, Int_t bisx, Int_t binsy = 0);
Int_t calc1d(TH1F *h1d);
Int_t calc2d(TH2F *h2d);
Int_t calc(Int_t nDim, Int_t binsx, Int_t binsy = 0);
void alarm();
public:
ClassDef(HMemoryCheck, 0)
};
#endif
Last change: Sat May 22 13:04:31 2010
Last generated: 2010-05-22 13:04
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.