- // to account for 83750 effective sensitive area
- // introduced in geometry (Dz=83600)
- if (z1l>fSegmentation->Dz()) return;
- if (z2l>fSegmentation->Dz()) return;
- // to preserve for hit having x>12800
- if (x1l>fSegmentation->Dx()) return;
- if (x2l>fSegmentation->Dx()) return;
+ // to account for the effective sensitive area
+ // introduced in geometry
+ if (z1l<0 || z1l>fSegmentation->Dz()) return;
+ if (z2l<0 || z2l>fSegmentation->Dz()) return;
+ if (x1l<0 || x1l>fSegmentation->Dx()) return;
+ if (x2l<0 || x2l>fSegmentation->Dx()) return;