]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDclusterizerV0.cxx
ZDC digitization -> TreeS and TreeD are written in a separate file
[u/mrichter/AliRoot.git] / TRD / AliTRDclusterizerV0.cxx
index 6162866d134f33e5e0448232617e557098cb6f6a..9e28834f38cb3db0212ba37c6c04807be32e2220 100644 (file)
 
 /*
 $Log$
+Revision 1.9  2001/05/28 17:07:58  hristov
+Last minute changes; ExB correction in AliTRDclusterizerV1; taking into account of material in G10 TEC frames and material between TEC planes (C.Blume,S.Sedykh)
+
+Revision 1.8  2001/05/07 08:06:44  cblume
+Speedup of the code. Create only AliTRDcluster
+
+Revision 1.7  2001/02/14 18:22:26  cblume
+Change in the geometry of the padplane
+
 Revision 1.6  2000/11/01 14:53:20  cblume
 Merge with TRD-develop
 
@@ -143,16 +152,14 @@ Bool_t AliTRDclusterizerV0::MakeClusters()
   // Generates the cluster
   //
 
-  // Get the pointer to the detector class and check for version 1
-  AliTRD *trd = (AliTRD*) gAlice->GetDetector("TRD");
-  if (trd->IsVersion() != 0) {
+  if (fTRD->IsVersion() != 0) {
     printf("AliTRDclusterizerV0::MakeCluster -- ");
     printf("TRD must be version 0 (fast simulator).\n");
     return kFALSE; 
   }
 
   // Get the geometry
-  AliTRDgeometry *geo = trd->GetGeometry();
+  AliTRDgeometry *geo = fTRD->GetGeometry();
   
   printf("AliTRDclusterizerV0::MakeCluster -- ");
   printf("Start creating cluster.\n");
@@ -193,12 +200,12 @@ Bool_t AliTRDclusterizerV0::MakeClusters()
           nBytes += hitTree->GetEvent(iTrack);
 
           // Get the number of hits in the TRD created by this particle
-          Int_t nHit = trd->Hits()->GetEntriesFast();
+          Int_t nHit = fTRD->Hits()->GetEntriesFast();
 
           // Loop through the TRD hits  
           for (Int_t iHit = 0; iHit < nHit; iHit++) {
 
-            if (!(hit = (AliTRDhit *) trd->Hits()->UncheckedAt(iHit))) 
+            if (!(hit = (AliTRDhit *) fTRD->Hits()->UncheckedAt(iHit))) 
               continue;
 
             Float_t pos[3];
@@ -221,7 +228,7 @@ Bool_t AliTRDclusterizerV0::MakeClusters()
             geo->Rotate(detector,pos,rot);
 
             // Add this recPoint to the temporary array for this chamber
-            AliTRDrecPoint *recPoint = new AliTRDrecPoint();
+            AliTRDrecPoint *recPoint = new AliTRDrecPoint("");
             recPoint->SetLocalRow(rot[2]);
             recPoint->SetLocalCol(rot[1]);
             recPoint->SetLocalTime(rot[0]);
@@ -316,7 +323,7 @@ Bool_t AliTRDclusterizerV0::MakeClusters()
           Int_t detector  = recPoint1->GetDetector();
           Int_t digits[3] = {0};
          Int_t tr[9] = {-1}; 
-          trd->AddRecPoint(smear,digits,detector,0.0,tr);
+          fTRD->AddCluster(smear,digits,detector,0.0,tr,0,0);
 
        }
 
@@ -328,7 +335,7 @@ Bool_t AliTRDclusterizerV0::MakeClusters()
   }
 
   printf("AliTRDclusterizerV0::MakeCluster -- ");
-  printf("Found %d points.\n",trd->RecPoints()->GetEntries());
+  printf("Found %d points.\n",fTRD->RecPoints()->GetEntries());
   printf("AliTRDclusterizerV0::MakeCluster -- ");
   printf("Fill the cluster tree.\n");
   clusterTree->Fill();