A semiconductor device has first wiring layers 30 and a plurality of dummy wiring layers 32 that are provided on the same level as the first wiring layers 30. The guidance section includes a BSE compensation element to add high-pass filtered noise to compensated BSE data. At least one gas jet is provided including a jet exit located on the outer boundary.