fFirstYbin = 1;
fLastXbin = nxbin;
fLastYbin = nybin;
+#ifdef use_root
fRootHisto = 0;
+#endif
fThreshold = 0;
fContent = new Double_t[fNcells];
//Destructor
if(fContent)
delete [] fContent;
+
+#ifdef use_root
if(fRootHisto)
delete fRootHisto;
+#endif
+
}
}
-
+#ifdef use_root
void AliL3Histogram::Draw(Char_t *option)
{
fRootHisto = new TH2F(fName,"",fNxbins,fXmin,fXmax,fNybins,fYmin,fYmax);
fRootHisto->Draw(option);
}
+#endif
Double_t fYmin;
Double_t fXmax;
Double_t fYmax;
-
+
+#ifdef use_root
TH2F *fRootHisto;
-
+#endif
+
public:
AliL3Histogram();
AliL3Histogram(Char_t *name,Char_t *id,Int_t nxbin,Double_t xmin,Double_t xmax,Int_t nybin,Double_t ymin,Double_t ymax);
void AddBinContent(Int_t xbin,Int_t ybin,Int_t weight);
void AddBinContent(Int_t bin,Int_t weight);
void Add(AliL3Histogram *h1,Double_t weight=1);
- void Draw(Char_t *option="hist");
void SetThreshold(Int_t i) {fThreshold = i;}
+#ifdef use_root
+ void Draw(Char_t *option="hist");
TH2F *GetRootHisto() {return fRootHisto;}
+#endif
+
Double_t GetXmin() {return fXmin;}
Double_t GetXmax() {return fXmax;}
Double_t GetYmin() {return fYmin;}