Particle collider takes a bullet particle like proton and increases its speed with magnetic field till it reaches near light speed. Then it is smashed into other particle. The collision creates a lot of energy and other smaller particles that shoot in all directions which leaves a pattern. These patterns help to understand the subatomic structure. Scientists can say the mass of pieces by how they move from the collision.