Changes for independant library of standalone l3 code.
authorloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 11 Jul 2002 10:43:56 +0000 (10:43 +0000)
committerloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 11 Jul 2002 10:43:56 +0000 (10:43 +0000)
HLT/hough/AliL3HoughEval.h
HLT/hough/AliL3HoughMaxFinder.cxx
HLT/hough/AliL3HoughMaxFinder.h

index ca6c899799b1d11e2d68ab8f97d3a22bf89f2f56..1d9cc278e1475dccb20a7b671213dcc266dc0320 100644 (file)
@@ -3,7 +3,7 @@
 
 #include "AliL3RootTypes.h"
 
-
+class AliL3TrackArray;
 class AliL3HoughBaseTransformer;
 class AliL3HoughTrack;
 class AliL3DigitRowData;
index d76cd5f6c157022d93b7abdf7bbd8e74286b03ae..111f72490332d4dafce0920e826b115d4741ead2 100644 (file)
@@ -6,9 +6,10 @@
 #include <math.h>
 #include <stdlib.h>
 #include <string.h>
-
+#ifndef no_root
 #include <TNtuple.h>
 #include <TFile.h>
+#endif
 
 #include "AliL3Histogram.h"
 #include "AliL3TrackArray.h"
@@ -32,7 +33,9 @@ AliL3HoughMaxFinder::AliL3HoughMaxFinder()
   fYPeaks=0;
   fNPeaks=0;
   fNMax=0;
+#ifndef no_root
   fNtuppel = 0;
+#endif
 }
 
 
@@ -51,7 +54,9 @@ AliL3HoughMaxFinder::AliL3HoughMaxFinder(Char_t *histotype,Int_t nmax,AliL3Histo
   fXPeaks = new Float_t[fNMax];
   fYPeaks = new Float_t[fNMax];
   fWeight = new Int_t[fNMax];
+#ifndef no_root
   fNtuppel = 0;
+#endif
   fThreshold=0;
 }
 
@@ -65,8 +70,10 @@ AliL3HoughMaxFinder::~AliL3HoughMaxFinder()
     delete [] fYPeaks;
   if(fWeight)
     delete [] fWeight;
+#ifndef no_root
   if(fNtuppel)
     delete fNtuppel;
+#endif
 }
 
 void AliL3HoughMaxFinder::Reset()
@@ -82,13 +89,15 @@ void AliL3HoughMaxFinder::Reset()
 
 void AliL3HoughMaxFinder::CreateNtuppel()
 {
-  fNtuppel = new TNtuple("ntuppel","Peak charateristics","kappa:phi0:weigth:content3:content5:content1:content7");
+#ifndef no_root
   //content#; neighbouring bins of the peak.
-  
+  fNtuppel = new TNtuple("ntuppel","Peak charateristics","kappa:phi0:weigth:content3:content5:content1:content7");
+#endif  
 }
 
 void AliL3HoughMaxFinder::WriteNtuppel(Char_t *filename)
 {
+#ifndef no_root
   TFile *file = TFile::Open(filename,"RECREATE");
   if(!file)
     {
@@ -97,6 +106,7 @@ void AliL3HoughMaxFinder::WriteNtuppel(Char_t *filename)
     }
   fNtuppel->Write();
   file->Close();
+#endif
 }
 
 void AliL3HoughMaxFinder::FindAbsMaxima()
@@ -146,6 +156,7 @@ void AliL3HoughMaxFinder::FindAbsMaxima()
   fWeight[fNPeaks] = (Int_t)max_value;
   fNPeaks++;
   
+#ifndef no_root
   if(fNtuppel)
     {
       Int_t bin3 = hist->GetBin(max_xbin-1,max_ybin);
@@ -155,7 +166,7 @@ void AliL3HoughMaxFinder::FindAbsMaxima()
       
       fNtuppel->Fill(max_x,max_y,max_value,hist->GetBinContent(bin3),hist->GetBinContent(bin5),hist->GetBinContent(bin1),hist->GetBinContent(bin7));
     }
-  
+#endif  
 }
 
 void AliL3HoughMaxFinder::FindBigMaxima()
index f2e91d1d832fcc9fe8c5efd9e98c527c8c4c6cab..861adcf8c8db31e20f900c084997ba8fad60b516 100644 (file)
@@ -32,14 +32,16 @@ class AliL3HoughMaxFinder {
   
   Char_t fHistoType;
 
+#ifndef no_root
   TNtuple *fNtuppel; //!
-
+#endif
 
  public:
   AliL3HoughMaxFinder(); 
   AliL3HoughMaxFinder(Char_t *histotype,Int_t nmax,AliL3Histogram *hist=0);
   virtual ~AliL3HoughMaxFinder();
   void Reset();
+
   void CreateNtuppel();
   void WriteNtuppel(Char_t *filename);
 
@@ -103,3 +105,4 @@ inline Int_t AliL3HoughMaxFinder::GetWeight(Int_t i)
 }
 
 #endif
+