/*
$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
// 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");
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];
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]);
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);
}
}
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();