Combine the flour, sugar, 1 teaspoon rosemary, 1/4 teaspoon salt and 1/2 teaspoon pepper in a food processor and pulse until just combined. Add the butter and pulse until the mixture looks like coarse meal.
Whisk the eggs and egg yolk in a small bowl. With the motor running, add the eggs to the food processor and process until the dough just gathers into a ball. Turn out onto a lightly floured surface and gently knead until soft and pliable. Press the dough into the bottom and about halfway up the side of a 9-inch springform pan. Cover and refrigerate the crust until very cold, at least 1 hour or overnight.
Slice the tomatoes and spread them out on 2 baking sheets in a single layer. Sprinkle lightly with salt and set aside until they release some of their juices, about 30 minutes. Meanwhile, combine the fontina and all but 1 tablespoon of the pecorino in a bowl; add the remaining 1 teaspoon rosemary.
Preheat the oven to 400 degrees F. Pat the tomatoes gently with paper towels to absorb the excess moisture. Sprinkle 1 tablespoon panko in the crust, then top with one-third of the tomatoes. Scatter half of the ham over the tomatoes, then half of the cheese mixture. Repeat with the remaining 3 tablespoons panko, another one-third of the tomatoes and the remaining ham and cheese. Top with a final layer of tomatoes and sprinkle with the reserved 1 tablespoon pecorino; drizzle with the olive oil.
Transfer the pan to a baking sheet and bake until the crust is golden and the cheese is melted, about 35 minutes. Transfer to a rack and let cool about 1 hour, then remove the springform ring.
Photograph by Ryan Liebe
Recipe courtesy of Food Network Magazine