several bugfixes
authorvestbo <vestbo@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 30 Jul 2001 14:36:28 +0000 (14:36 +0000)
committervestbo <vestbo@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 30 Jul 2001 14:36:28 +0000 (14:36 +0000)
12 files changed:
HLT/src/AliL3ClustFinder.cxx
HLT/src/AliL3ConfMapper.cxx
HLT/src/AliL3Defs.h
HLT/src/AliL3Display.cxx
HLT/src/AliL3Evaluate.cxx
HLT/src/AliL3Evaluate.h
HLT/src/AliL3MemHandler.cxx
HLT/src/AliL3MemHandler.h
HLT/src/AliL3Merger.cxx
HLT/src/AliL3Track.cxx
HLT/src/AliL3Track.h
HLT/src/AliL3VertexFinder.cxx

index 30fdda184789efef3e55b63178947df236b46591..b93cf132e073353bf6c96032ada9152c75c433a5 100644 (file)
@@ -454,8 +454,9 @@ void AliL3ClustFinder::WriteClusters(Int_t ncl,resx *r)
       Float_t fpad=(Float_t)r[j].pad/(Float_t)r[j].charge;
       Float_t ftime=(Float_t)r[j].t/(Float_t)r[j].charge;
       
-      if(fCurrentRow > 54) {thisrow = fCurrentRow-55; thissector = fCurrentSlice+36;}
-      else {thisrow = fCurrentRow; thissector = fCurrentSlice;}
+      fTransform->Slice2Sector(fCurrentSlice,fCurrentRow,thissector,thisrow);
+      //if(fCurrentRow > 54) {thisrow = fCurrentRow-55; thissector = fCurrentSlice+36;}
+      //else {thisrow = fCurrentRow; thissector = fCurrentSlice;}
       fTransform->Raw2Local(xyz,thissector,thisrow,fpad,ftime);
       if(xyz[0]==0) LOG(AliL3Log::kError,"AliL3ClustFinder","Cluster Finder")
        <<AliL3Log::kDec<<"Zero cluster"<<ENDLOG;
@@ -473,7 +474,8 @@ void AliL3ClustFinder::WriteClusters(Int_t ncl,resx *r)
       fSpacePointData[counter].fZErr = fZErr;
       fSpacePointData[counter].fID = counter
                   +((fCurrentSlice&0x7f)<<25)+((fCurrentPatch&0x7)<<22);//uli
-
+      if(fCurrentRow > 170)
+       printf("padrow %d X %f Y %f Z %f\n",fCurrentRow,xyz[0],xyz[1],xyz[2]);
       
       fNClusters++;
       counter++;
index 80813fafa3d834fc456c4533c767568427034a5d..736f8834e6f5302a89b9cccc0f6db0fb602038af 100644 (file)
@@ -86,7 +86,7 @@ void AliL3ConfMapper::InitSector(Int_t sector,Int_t *rowrange,Float_t *etarange)
   else //complete sector
     {
       fRowMin = 0;
-      fRowMax = 173;
+      fRowMax = 175;
     }
   if(etarange)
     {
@@ -138,7 +138,7 @@ void AliL3ConfMapper::SetPointers()
 {
   //Data organization.
   //Allocate volumes, set conformal coordinates and pointers.
-  fNumRowSegmentPlusOne = 174;//fNumRowSegment+1;
+  fNumRowSegmentPlusOne = 176;//fNumRowSegment+1;
   fNumPhiSegmentPlusOne = fNumPhiSegment+1;
   fNumEtaSegmentPlusOne = fNumEtaSegment+1;
   fNumPhiEtaSegmentPlusOne = fNumPhiSegmentPlusOne*fNumEtaSegmentPlusOne;
index 129d8df68b5f0dbc5c0a415a2495bf19e664a211..e34faeb2b71627088c864d222cdd86c37e18b13e 100644 (file)
@@ -3,7 +3,7 @@
 
 #include "AliL3RootTypes.h"
 
-const Int_t NRows[5][2] = {{ 0, 45},{46,77},{78,109},{110,141},{142,173}};
+const Int_t NRows[5][2] = {{ 0, 45},{46,77},{78,109},{110,141},{142,175}};
 const Double_t Pi = 3.14159265358979323846;
 const Double_t ToRad = Pi/180.;
 
index dac4111a71f7ff9b5e47f963916e53205c0bd715..a115c57f6d4ca3520dcd0823d3ed3b81a1f08bc7 100644 (file)
@@ -39,7 +39,7 @@ AliL3Display::AliL3Display(Int_t *slice)
 {
   //Ctor. Specify which slices you want to look at.
 
-  TFile *file = new TFile("/nfs/david/subatom/alice/data/GEO/alice.geom");
+  TFile *file = new TFile("alice.geom");
   if(!file) printf("NO FILE\n");
   if(file->IsOpen())
     LOG(AliL3Log::kError,"AliL3Display::AliL3Display","File Open")
@@ -121,9 +121,9 @@ void AliL3Display::DisplayTracks(Int_t min_hits)
     
   Int_t ntracks = fTracks->GetNTracks();
   TPolyLine3D *line = new TPolyLine3D[ntracks];
-  Float_t xcl[174];
-  Float_t ycl[174];
-  Float_t zcl[174];
+  Float_t xcl[176];
+  Float_t ycl[176];
+  Float_t zcl[176];
   
   for(Int_t j=0; j<ntracks; j++)
     {
@@ -278,9 +278,9 @@ void AliL3Display::DisplayAll(Int_t min_hits)
   
   Int_t ntracks = fTracks->GetNTracks();
   TPolyLine3D *line = new TPolyLine3D[ntracks];
-  Float_t xcl[174];
-  Float_t ycl[174];
-  Float_t zcl[174];
+  Float_t xcl[176];
+  Float_t ycl[176];
+  Float_t zcl[176];
   
   
   for(Int_t j=0; j<ntracks; j++)
index d675e317d43dec8b46deda9ee0be19978ca7f273..22a8389f87f0449326848f6bb033901c6d648794 100644 (file)
@@ -351,7 +351,7 @@ void AliL3Evaluate::EvaluatePatch(Int_t slice,Int_t patch,Int_t min_points,Int_t
 {
   //Make efficiency plots for tracking on patch level (before any merging).
   
-  Int_t row[5][2] = {{ 0, 45},{46,77},{78,109},{110,141},{142,173}};
+  Int_t row[5][2] = {{ 0, 45},{46,77},{78,109},{110,141},{142,175}};
   Int_t *particle_id = new Int_t[fParticles->GetEntriesFast()];
   TObjArray *good_particles = DefineGoodTracks(slice,row[patch],good_number,particle_id);
   SetMinPoints(min_points);
@@ -369,7 +369,7 @@ void AliL3Evaluate::EvaluateSlice(Int_t slice,Int_t min_points,Int_t good_number
   //min_points = minimum points on track to be considered for evaluation
   //good_number = minimum hits (padrows) produced by simulated track for consideration.
 
-  Int_t row[2] = {0,173};
+  Int_t row[2] = {0,175};
   Int_t *particle_id = new Int_t[fParticles->GetEntriesFast()];
   TObjArray *good_particles = DefineGoodTracks(slice,row,good_number,particle_id);
 
@@ -387,7 +387,7 @@ void AliL3Evaluate::EvaluateGlobal(Int_t min_points,Int_t good_number)
 {
   //Make efficiency plots for tracking on several slices.
   
-  Int_t row[2] = {0,173};
+  Int_t row[2] = {0,175};
   Int_t *particle_id = new Int_t[fParticles->GetEntriesFast()];
   SetMinPoints(min_points);
   AssignIDs();
@@ -811,8 +811,8 @@ TNtuple *AliL3Evaluate::EvaluatePoints()
  
   TNtuple *ntuppel = new TNtuple("ntuppel","residuals","resy:ptgen:padrow:zHit:slice");
   
-  Int_t good_number=173;
-  Int_t row[2] = {0,173};
+  Int_t good_number=175;
+  Int_t row[2] = {0,175};
   UInt_t id;
   //Float_t yres_local;
   for(Int_t slice=fMinSlice; slice<=fMaxSlice; slice++)
@@ -909,8 +909,8 @@ TNtuple *AliL3Evaluate::EvaluateGEANT()
 {
   TNtuple *ntuppel = new TNtuple("ntuppel","residuals","resy:ptgen:padrow:zHit:slice");
   
-  Int_t good_number=173;
-  Int_t row[2] = {0,173};
+  Int_t good_number=175;
+  Int_t row[2] = {0,175};
       
   Float_t xyz_cross[3];
   Float_t xyz_cl[3];
index 07d6b92097b6577ec004f33d6296bd33196eea05..0d1438c261b852784e2f8b4c68f622d1a5236989 100644 (file)
@@ -36,7 +36,7 @@ class AliL3Evaluate : public TObject {
   Int_t fMinSlice;
   Int_t fMaxSlice;
   UInt_t fNcl[36][5];
-  Int_t fRowid[36][174];
+  Int_t fRowid[36][176];
   Int_t fMinPointsOnTrack;  //Minimum points on track to be considered.
   Bool_t fIsSlow;
   Bool_t fNoOverlap;
index fd274a350c3be464725e7af5be5ce7ef9e1d91e6..eb0dbc122b84e12994f0063e180ef4f2c8a27f45 100644 (file)
@@ -37,7 +37,7 @@ AliL3MemHandler::AliL3MemHandler(){
   fNUsed = 0;
   fNDigits = 0;
   
-  Int_t row[2] = {0,173};
+  Int_t row[2] = {0,175};
   Init(0,0,row);
   ResetROI();
 }
index e7ca8804224a8bf2c30af9c0374d1f309db84cec..4e21b78c66c242fac6615086ebcc9eeb128fef20 100644 (file)
@@ -50,8 +50,8 @@ class AliL3MemHandler{
   Int_t fSlice;
   Int_t fPatch;
 
-  Int_t fEtaMinTimeBin[174];
-  Int_t fEtaMaxTimeBin[174];
+  Int_t fEtaMinTimeBin[176];
+  Int_t fEtaMaxTimeBin[176];
   
 
  public:
index 12fbe2a84f492f579ae74a801283f3a947606d6e..9365588f81078dfe69fcafca8ef841f56861cc23 100644 (file)
@@ -154,7 +154,7 @@ AliL3Track * AliL3Merger::MultiMerge(AliL3TrackArray *mergedtracks,AliL3Track **
   for(Int_t i=0;i<ntrack;i++){
     nps+=tracks[i]->GetNHits();
   }
-  if(nps>174){
+  if(nps>176){
     LOG(AliL3Log::kWarning,"AliL3Merger::MultiMerge","Adding Points")
     <<AliL3Log::kDec<<"Too many Points: "<<nps<<ENDLOG;
     return 0;
@@ -163,7 +163,7 @@ AliL3Track * AliL3Merger::MultiMerge(AliL3TrackArray *mergedtracks,AliL3Track **
   //create new track
   AliL3Track *newtrack = mergedtracks->NextTrack();
   //copy points
-  UInt_t nn[174];
+  UInt_t nn[176];
   nps = 0;
 
 //  for(Int_t i=0;i<ntrack;i++){
@@ -270,7 +270,7 @@ Bool_t AliL3Merger::IsTrack(AliL3Track *innertrack,AliL3Track *outertrack){
 
   if(innertrack->GetCharge()!=outertrack->GetCharge()) return kFALSE;
   if( (!innertrack->IsPoint()) || (!outertrack->IsPoint()) )  return kFALSE; 
-  if(innertrack->GetNHits()+outertrack->GetNHits()>174) return kFALSE;
+  if(innertrack->GetNHits()+outertrack->GetNHits()>176) return kFALSE;
 
   if(fabs(innertrack->GetPointY()-outertrack->GetPointY()) >fMaxY) return kFALSE;
   if(fabs(innertrack->GetPointZ()-outertrack->GetPointZ()) >fMaxZ) return kFALSE;
index c9dd0e9e7baa81bcdcebb8876a9eedbff1532d99..6b05205eca2a75ece7b55f4b51671f9605a1dae9 100644 (file)
@@ -51,7 +51,7 @@ AliL3Track::AliL3Track()
   fIsLocal=true;
   fRowRange[0]=0;
   fRowRange[1]=0;
-  memset(fHitNumbers,0,174*sizeof(UInt_t));
+  memset(fHitNumbers,0,176*sizeof(UInt_t));
 }
 
 void AliL3Track::Set(AliL3Track *tpt){
index 478c0d89fe86f22f6985e537f82e1a7d30777a23..4f87e97e9f5eec9055d6a78534e417bf7465c384 100644 (file)
@@ -47,7 +47,7 @@ class AliL3Track {
   
   Bool_t fIsLocal; //Track given in local coordinates.
 
-  UInt_t fHitNumbers[174];  //Array of hit numbers for this track
+  UInt_t fHitNumbers[176];  //Array of hit numbers for this track
 
  protected:
 
index 33d5d82dd229fb052753b5452206af9433def907..20a132a675a61167937bcea10a39bdd71c101796 100644 (file)
@@ -60,7 +60,7 @@ void AliL3VertexFinder::Read(Int_t ncluster, AliL3SpacePointData* hits ){
   //  analyze sector 
   // 
   
-  const Int_t seedRow = 173
+  const Int_t seedRow = 175
   const Int_t firstRow = seedRow-32;
   for(Int_t n=0;n<ncluster;n++){
     if(hits[n].fPadRow==seedRow)