]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Add version support for vhdl hough.
authorloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 2 Jul 2002 13:20:04 +0000 (13:20 +0000)
committerloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 2 Jul 2002 13:20:04 +0000 (13:20 +0000)
HLT/hough/AliL3Hough.cxx
HLT/hough/AliL3Hough.h

index 085458615ce655c67fd0cc737a789b65671b3b78..ae21485261509b7893467cba463b6ac4bda34899 100644 (file)
@@ -114,7 +114,7 @@ void AliL3Hough::CleanUp()
   */
 }
 
-void AliL3Hough::Init(Char_t *path,Bool_t binary,Int_t n_eta_segments,Bool_t bit8=kFALSE)
+void AliL3Hough::Init(Char_t *path,Bool_t binary,Int_t n_eta_segments,Bool_t bit8=kFALSE,Int_t tv=0)
 {
   fBinary = binary;
   strcpy(fPath,path);
@@ -123,7 +123,7 @@ void AliL3Hough::Init(Char_t *path,Bool_t binary,Int_t n_eta_segments,Bool_t bit
   fDoIterative = kFALSE; 
   fWriteDigits = kFALSE;
   fUse8bits = bit8;
-  
+  fversion = tv;
   AliL3Transform::Init(fPath);
 
   fNPatches = AliL3Transform::GetNPatches();
@@ -270,7 +270,6 @@ void AliL3Hough::ProcessSliceIter()
       ProcessPatchIter(i);
       fMerger->FillTracks(fTracks[i],i); //Copy tracks to merger
     }
-  
 }
 
 void AliL3Hough::ProcessPatchIter(Int_t patch)
@@ -314,7 +313,6 @@ void AliL3Hough::ProcessPatchIter(Int_t patch)
     <<AliL3Log::kDec<<"Found "<<tracks->GetNTracks()<<" tracks in patch "<<patch<<ENDLOG;
 }
 
-
 void AliL3Hough::AddAllHistograms()
 {
   //Add the histograms within one etaslice.
@@ -349,11 +347,13 @@ void AliL3Hough::FindTrackCandidates()
   
   Double_t initTime,cpuTime;
   initTime = GetCpuTime();
+
   for(Int_t i=0; i<n_patches; i++)
     {
       AliL3HoughBaseTransformer *tr = fHoughTransformer[i];
       Double_t eta_slice = (tr->GetEtaMax()-tr->GetEtaMin())/tr->GetNEtaSegments();
       fTracks[i]->Reset();
+
       for(Int_t j=0; j<fNEtaSegments; j++)
        {
          AliL3Histogram *hist = tr->GetHistogram(j);
@@ -361,8 +361,8 @@ void AliL3Hough::FindTrackCandidates()
          fPeakFinder->Reset();
          fPeakFinder->SetHistogram(hist);
          fPeakFinder->FindMaxima(0,0); //Simple maxima finder
-         
          //fPeakFinder->FindAbsMaxima();
+
          for(Int_t k=0; k<fPeakFinder->GetEntries(); k++)
            {
              if(fPeakFinder->GetWeight(k) == 0) continue;
@@ -548,3 +548,4 @@ Double_t AliL3Hough::GetCpuTime()
  return tv.tv_sec+(((Double_t)tv.tv_usec)/1000000.);
  //return (Double_t)(clock()) / CLOCKS_PER_SEC;
 }
+
index 7999f4b6690da5924c3c30d41927bd05d2df5549..ec066d8314c16eda2d7e6876417c7a98dbd8e858 100644 (file)
@@ -46,7 +46,7 @@ class AliL3Hough {
   AliL3Hough(Char_t *path,Bool_t binary,Int_t n_eta_segments=100,Int_t tversion=0);
   virtual ~AliL3Hough();
   
-  void Init(Char_t *path,Bool_t binary,Int_t n_eta_segments,Bool_t bit8=kFALSE);
+  void Init(Char_t *path,Bool_t binary,Int_t n_eta_segments,Bool_t bit8=kFALSE,Int_t tv=0);
   void Process(Int_t minslice,Int_t maxslice);
   void ReadData(Int_t slice,Int_t eventnr=0);
   void Transform(Int_t row_range = -1);