A shower position detector inside an electromagnetic calorimeter