temp->SetZ(-240);
}
- if(temp->GetType()==5 && temp->GetSide()==0) {
+ if ( num < (Int_t)(sizeof(kTSz)/sizeof(kTSz[0]))) {
+ if(temp->GetType()==5 && temp->GetSide()==0) {
temp->SetZ(kTSz[num]);
}
- if(temp->GetType()==5 && temp->GetSide()==1) {
+ if(temp->GetType()==5 && temp->GetSide()==1) {
temp->SetZ(-kTSz[num]);
}
-
+ }
}
return array;