]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Possible to compile without ROOT
authorvestbo <vestbo@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 13 Nov 2001 13:24:47 +0000 (13:24 +0000)
committervestbo <vestbo@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 13 Nov 2001 13:24:47 +0000 (13:24 +0000)
HLT/hough/AliL3Histogram.cxx
HLT/hough/AliL3Histogram.h

index 8494a5b12a49926a6088d1abf2cbe43d720d0f70..bbea051d9bb0c5e1288a6f4ad35d5b49833aa29d 100644 (file)
@@ -46,7 +46,9 @@ AliL3Histogram::AliL3Histogram(Char_t *name,Char_t *id,
   fFirstYbin = 1;
   fLastXbin = nxbin;
   fLastYbin = nybin;
+#ifdef use_root
   fRootHisto = 0;
+#endif
   fThreshold = 0;
 
   fContent = new Double_t[fNcells];
@@ -58,8 +60,12 @@ AliL3Histogram::~AliL3Histogram()
   //Destructor
   if(fContent)
     delete [] fContent;
+
+#ifdef use_root
   if(fRootHisto)
     delete fRootHisto;
+#endif
+
 }
 
 
@@ -229,7 +235,7 @@ Double_t AliL3Histogram::GetBinCenterY(Int_t ybin)
   
 }
 
-
+#ifdef use_root
 void AliL3Histogram::Draw(Char_t *option)
 {
   fRootHisto = new TH2F(fName,"",fNxbins,fXmin,fXmax,fNybins,fYmin,fYmax);
@@ -241,3 +247,4 @@ void AliL3Histogram::Draw(Char_t *option)
   fRootHisto->Draw(option);
   
 }
+#endif
index 613eb6b5da47fc4b479ed6f1ab7f53ea0f149d1e..c43e5a9950712a6248f5ba83e60fe0feca592080 100644 (file)
@@ -25,9 +25,11 @@ class AliL3Histogram {
   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);
@@ -45,10 +47,13 @@ class AliL3Histogram {
   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;}