Seismic behaviour, vulnerability and probability of collapse of masonry buildings