From efb8e06f1bcf7b155e6eda6304593c64e1240061 Mon Sep 17 00:00:00 2001 From: loizides Date: Wed, 13 Nov 2002 20:09:45 +0000 Subject: [PATCH] Changes to show that do_mc is not yet working. Everything else is and was working now. --- HLT/hough/AliL3HoughTransformerLUT.cxx | 48 ++++++++++++++++++-------- 1 file changed, 34 insertions(+), 14 deletions(-) diff --git a/HLT/hough/AliL3HoughTransformerLUT.cxx b/HLT/hough/AliL3HoughTransformerLUT.cxx index a0f39a0a68c..ed5cc5a51ef 100644 --- a/HLT/hough/AliL3HoughTransformerLUT.cxx +++ b/HLT/hough/AliL3HoughTransformerLUT.cxx @@ -88,6 +88,7 @@ AliL3HoughTransformerLUT::~AliL3HoughTransformerLUT() DeleteHistograms(); #ifdef do_mc +#if 0 if(fTrackID) { for(Int_t i=0; iGetNbinsX()+2)*(hist->GetNbinsY()+2); cout<<"Allocating "<GetNbinsX()+2)*(hist->GetNbinsY()+2); for(Int_t i=0; i=0)&&(rz2>fLUTEta[index])){ index--; } + index++; } //cout << start << " - " << index << ": " << rz2 << " " << fLUTEta[index] << endl; return index; @@ -394,11 +405,12 @@ void AliL3HoughTransformerLUT::TransformCircle() continue; } + //calculate x for this row Float_t x = CalcX(row); Float_t x2=x*x; - Float_t y=0,y2=0; Float_t r2=0; - Float_t R2=0; + + //start a new row fLastPad=-1; //Loop over the data on this padrow: @@ -415,46 +427,48 @@ void AliL3HoughTransformerLUT::TransformCircle() if(fLastPad!=pad){ //only update if necessary fLastIndex=fNEtas-1; - y = CalcY(pad,row); - y2 = y*y; + + //calculate hough for this pad + Float_t y = CalcY(pad,row); + Float_t y2 = y*y; r2 = x2 + y2; - R2 = 1. / r2; + Float_t R2 = 1. / r2; for(Int_t b=0; b= fNEtas){ //LOG(AliL3Log::kWarning,"AliL3HoughTransformerLUT::TransformCircle","Histograms")<<"No histograms corresponding to eta index value of "<Fill(kappa,fLUTphi0[b],charge); + //hist->Fill(fLUTKappa[b],fLUTphi0[b],charge); + hist->Fill(fLUTKappa[b],fLUTphi0[b],1); //cout << kappa << " " << fLUTphi0[b] << " " << charge << endl; #ifdef do_mcc if(fDoMC) { + cerr << "Did not program changes in AliL3TransformerLUT for DO_MC!" << endl; + exit(1); +#if 0 Int_t bin = hist->FindBin(kappa,phi0); for(Int_t t=0; t<3; t++) { @@ -468,10 +482,12 @@ void AliL3HoughTransformerLUT::TransformCircle() fTrackID[eta_index][bin].fLabel[c] = label; fTrackID[eta_index][bin].fNHits[c]++; } +#endif } #endif } } + //Move the data pointer to the next padrow: AliL3MemHandler::UpdateRowPointer(tempPt); } @@ -486,6 +502,9 @@ Int_t AliL3HoughTransformerLUT::GetTrackID(Int_t eta_index,Double_t kappa,Double } #ifdef do_mcc + cerr << "Did not program changes in AliL3TransformerLUT for DO_MC!" << endl; + exit(1); +#if 0 if(eta_index < 0 || eta_index > fNEtas) { cerr<<"AliL3HoughTransformer::GetTrackID : Wrong etaindex "<