dig[3]=d->GetPadz();
dig[4]=d->GetPadx();
+ /* check valid index */
+ if (dig[0]==-1||dig[1]==-1||dig[2]==-1||dig[3]==-1||dig[4]==-1) continue;
+
// Do not reconstruct anything in the holes
if (dig[0]==13 || dig[0]==14 || dig[0]==15 ) { // sectors with holes
if (dig[1]==2) { // plate with holes
dig[3]=d->GetPadz();
dig[4]=d->GetPadx();
+ /* check valid index */
+ if (dig[0]==-1||dig[1]==-1||dig[2]==-1||dig[3]==-1||dig[4]==-1) continue;
+
// Do not reconstruct anything in the holes
if (dig[0]==13 || dig[0]==14 || dig[0]==15 ) { // sectors with holes
if (dig[1]==2) { // plate with holes
else ftxt << " " << detectorIndex[4];
}
+ /* check valid index */
+ if (detectorIndex[0]==-1||detectorIndex[1]==-1||detectorIndex[2]==-1||detectorIndex[3]==-1||detectorIndex[4]==-1) continue;
+
// Do not reconstruct anything in the holes
if (detectorIndex[0]==13 || detectorIndex[0]==14 || detectorIndex[0]==15 ) { // sectors with holes
if (detectorIndex[1]==2) { // plate with holes
else ftxt << " " << detectorIndex[4];
}
+ /* check valid index */
+ if (detectorIndex[0]==-1||detectorIndex[1]==-1||detectorIndex[2]==-1||detectorIndex[3]==-1||detectorIndex[4]==-1) continue;
+
// Do not reconstruct anything in the holes
if (detectorIndex[0]==13 || detectorIndex[0]==14 || detectorIndex[0]==15 ) { // sectors with holes
if (detectorIndex[1]==2) { // plate with holes
detectorIndex[3] = detectorIndex[4];//padx
detectorIndex[4] = dummy;//padz
+ /* check valid index */
+ if (detectorIndex[0]==-1||detectorIndex[1]==-1||detectorIndex[2]==-1||detectorIndex[3]==-1||detectorIndex[4]==-1) continue;
+
// Do not reconstruct anything in the holes
if (detectorIndex[0]==13 || detectorIndex[0]==14 || detectorIndex[0]==15 ) { // sectors with holes
if (detectorIndex[1]==2) { // plate with holes