Measure the distance from the center of the screw hole that hold the hammer to the tumbler stud, to the end of the nipple. That will give you the length of hammer needed. I know Dixie GWs sells a variety of lengths and shapes of hammers. In fitting the hammer to the stud, you have to drill a center hold to remove most of the metal, then mark the square in the right location so that the hammer comes to rest on or just beyond the face of the nipple when the tumbler rotates to its stop. Put lipstick on the stuck and use it to mark the backside of the hammer, with the nose of the hammer seated over the nipple. Do some measuring with a Machinist ruler( made of metal, with fine calibrations) to get your lines for the square correctly positioned. Put those 4 lines on both sides of the hammer. Then use a square-in-profile_ tapered file to carefully remove the metal, filing from the backside to the front. As you get close, you want to check your lines by putting the hammer onto the stud, as far as it can go. put dye or lipstick on the stud, and it will tell you where the high spots are in the hole you are filing. Take your time, and do it right the first time. The hammers are not expensive items, and you can buy another and do it again, if you truly screw it up.
I have seen men use a cold roll steel chisel to remove much of the metal, but they have more skill, and practice with a chisel than I have, and I don't have the nerve to try that, in such a small space. Filing may take several hours, but the end product fits, and works well. If you have the old hammer, which broke, you can get good information about the alignment of that square hole for the stud from it.