A collimator includes a plurality of modules each of which has a grid formation and in each of which a plurality of walls are arranged in a row in a first direction and a second direction intersecting the first direction. The plurality of modules are connected together by one or more connecting parts.