]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Take switched off super modules into account
authorcblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 15 Aug 2006 08:43:07 +0000 (08:43 +0000)
committercblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 15 Aug 2006 08:43:07 +0000 (08:43 +0000)
TRD/AliTRDclusterizerV1.cxx
TRD/AliTRDtrigger.cxx

index ee32b8c305fb62a3671b2fb06cc18b9ea8dba9e1..d777409529d8c5b63ecad067652d34aafe511053 100644 (file)
@@ -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)) {
index abb77ee7ef22667641f6cc6b9f9b5a412b5f0c94..539809adc6cbcc4cc0515c80b47327ade422c6ea 100644 (file)
@@ -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;