From: cblume Date: Tue, 15 Aug 2006 08:43:07 +0000 (+0000) Subject: Take switched off super modules into account X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=commitdiff_plain;h=559d92d469c0a85af7038c7188fe46df21b133fa;hp=d021d0d7da9a2ddea26bedc47af840d1b2cacc3f;ds=sidebyside Take switched off super modules into account --- diff --git a/TRD/AliTRDclusterizerV1.cxx b/TRD/AliTRDclusterizerV1.cxx index ee32b8c305f..d777409529d 100644 --- a/TRD/AliTRDclusterizerV1.cxx +++ b/TRD/AliTRDclusterizerV1.cxx @@ -261,6 +261,10 @@ Bool_t AliTRDclusterizerV1::MakeClusters() // Get the digits digitsIn = fDigitsManager->GetDigits(idet); + // This is to take care of switched off super modules + if (digitsIn->GetNtime() == 0) { + continue; + } digitsIn->Expand(); track0 = fDigitsManager->GetDictionary(idet,0); track0->Expand(); @@ -468,6 +472,9 @@ Bool_t AliTRDclusterizerV1::MakeClusters() ,iType ,clusterPads[1]); + printf("Add a cluster: q=%f, det=%d, x=%f, y=%f, z=%f\n",clusterCharge + ,idet,clusterPos[0],clusterPos[1],clusterPos[2]); + Short_t signals[7]={ 0, 0, 0, 0, 0, 0, 0 }; for (Int_t jPad = col-3; jPad <= col+3; jPad++) { if ((jPad < 0) || (jPad >= nColMax-1)) { diff --git a/TRD/AliTRDtrigger.cxx b/TRD/AliTRDtrigger.cxx index abb77ee7ef2..539809adc6c 100644 --- a/TRD/AliTRDtrigger.cxx +++ b/TRD/AliTRDtrigger.cxx @@ -428,6 +428,10 @@ Bool_t AliTRDtrigger::MakeTracklets(Bool_t makeTracks) // Get the digits fDigits = fDigitsManager->GetDigits(idet); if (!fDigits) return kFALSE; + // This is to take care of switched off super modules + if (fDigits->GetNtime() == 0) { + continue; + } fDigits->Expand(); fTrack0 = fDigitsManager->GetDictionary(idet,0); if (!fTrack0) return kFALSE;