// 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();
,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)) {
// 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;