#ifndef ROOT_TProfile3D
#define ROOT_TProfile3D
#ifndef ROOT_TH3
#include "TH3.h"
#endif
#ifndef ROOT_TProfile
#include "TProfile.h"
#endif
class TProfile3D : public TH3D {
protected:
TArrayD fBinEntries;
EErrorType fErrorMode;
Double_t fTmin;
Double_t fTmax;
Bool_t fScaling;
Double_t fTsumwt;
Double_t fTsumwt2;
static Bool_t fgApproximate;
virtual Int_t BufferFill(Double_t, Double_t) {return -2;}
virtual Int_t BufferFill(Double_t, Double_t, Double_t) {return -2;}
virtual Int_t BufferFill(Double_t, Double_t, Double_t, Double_t) {return -2;}
virtual Int_t BufferFill(Double_t x, Double_t y, Double_t z, Double_t t, Double_t w);
private:
Double_t *GetB() {return &fBinEntries.fArray[0];}
Double_t *GetW() {return &fArray[0];}
Double_t *GetW2() {return &fSumw2.fArray[0];}
public:
TProfile3D();
TProfile3D(const char *name,const char *title,Int_t nbinsx,Double_t xlow,Double_t xup
,Int_t nbinsy,Double_t ylow,Double_t yup
,Int_t nbinsz,Double_t zlow,Double_t zup, Option_t *option="");
TProfile3D(const char *name,const char *title,Int_t nbinsx,const Double_t *xbins
,Int_t nbinsy,const Double_t *ybins
,Int_t nbinsz,const Double_t *zbins,Option_t *option="");
TProfile3D(const TProfile3D &profile);
virtual ~TProfile3D();
virtual void Add(TF1 *h1, Double_t c1=1, Option_t *option="");
virtual void Add(const TH1 *h1, Double_t c1=1);
virtual void Add(const TH1 *h1, const TH1 *h2, Double_t c1=1, Double_t c2=1);
static void Approximate(Bool_t approx=kTRUE);
void BuildOptions(Double_t tmin, Double_t tmax, Option_t *option);
virtual Int_t BufferEmpty(Int_t action=0);
virtual void Copy(TObject &hnew) const;
virtual void Divide(TF1 *h1, Double_t c1=1);
virtual void Divide(const TH1 *h1);
virtual void Divide(const TH1 *h1, const TH1 *h2, Double_t c1=1, Double_t c2=1, Option_t *option="");
virtual TH1 *DrawCopy(Option_t *option="") const;
Int_t Fill(Double_t) {return -1;}
Int_t Fill(const char*, Double_t) {return -1;}
Int_t Fill(Double_t, Double_t) {return -1; }
Int_t Fill(Double_t, Double_t,Double_t) {return -1; }
Int_t Fill(const char *, const char *, const char *, Double_t) {return -1; }
Int_t Fill(const char *, Double_t , const char *, Double_t) {return -1; }
Int_t Fill(const char *, const char *, Double_t, Double_t) {return -1; }
Int_t Fill(Double_t, const char *, const char *, Double_t) {return -1; }
Int_t Fill(Double_t, const char *, Double_t, Double_t) {return -1; }
Int_t Fill(Double_t, Double_t, const char *, Double_t) {return -1; }
virtual Int_t Fill(Double_t x, Double_t y, Double_t z, Double_t t);
virtual Int_t Fill(Double_t x, Double_t y, Double_t z, Double_t t, Double_t w);
virtual Double_t GetBinContent(Int_t bin) const;
virtual Double_t GetBinContent(Int_t,Int_t) const
{ MayNotUse("GetBinContent(Int_t, Int_t"); return -1; }
virtual Double_t GetBinContent(Int_t binx, Int_t biny, Int_t binz) const {return GetBinContent(GetBin(binx,biny,binz));}
virtual Double_t GetBinError(Int_t bin) const;
virtual Double_t GetBinError(Int_t,Int_t) const
{ MayNotUse("GetBinError(Int_t, Int_t"); return -1; }
virtual Double_t GetBinError(Int_t binx, Int_t biny, Int_t binz) const {return GetBinError(GetBin(binx,biny,binz));}
virtual Double_t GetBinEntries(Int_t bin) const;
Option_t *GetErrorOption() const;
virtual void GetStats(Double_t *stats) const;
virtual Double_t GetTmin() const {return fTmin;}
virtual Double_t GetTmax() const {return fTmax;}
virtual Long64_t Merge(TCollection *list);
virtual void Multiply(TF1 *h1, Double_t c1=1);
virtual void Multiply(const TH1 *h1);
virtual void Multiply(const TH1 *h1, const TH1 *h2, Double_t c1=1, Double_t c2=1, Option_t *option="");
TH3D *ProjectionXYZ(const char *name="_pxyz", Option_t *option="e") const;
virtual void PutStats(Double_t *stats);
virtual void Reset(Option_t *option="");
virtual void RebinAxis(Double_t x, TAxis *axis);
virtual void SavePrimitive(ostream &out, Option_t *option = "");
virtual void Scale(Double_t c1=1, Option_t *option="");
virtual void SetBinEntries(Int_t bin, Double_t w);
void SetBins(Int_t, Double_t, Double_t)
{ MayNotUse("SetBins(Int_t, Double_t, Double_t"); }
void SetBins(Int_t, const Double_t*)
{ MayNotUse("SetBins(Int_t, const Double_t*"); }
void SetBins(Int_t, Double_t, Double_t, Int_t, Double_t, Double_t)
{ MayNotUse("SetBins(Int_t, const Double_t*"); }
virtual void SetBins(Int_t nbinsx, Double_t xmin, Double_t xmax, Int_t nbinsy, Double_t ymin, Double_t ymax, Int_t nbinsz, Double_t zmin, Double_t zmax);
void SetBins(Int_t, const Double_t*, Int_t, const Double_t*)
{ MayNotUse("SetBins(Int_t, const Double_t*, Int_t, const Double_t*"); }
virtual void SetBuffer(Int_t buffersize, Option_t *opt="");
virtual void SetErrorOption(Option_t *option="");
ClassDef(TProfile3D,6)
};
#endif
Last change: Fri Nov 28 16:56:45 2008
Last generated: 2008-11-28 16:56
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.