Preheat oven to 350 degrees. Prepare unbaked pie crust in a tart pan or pie pan. Place a layer of grated cheese on the bottom of the crust. Put the roasted garlic through a garlic press and dab it on top of the cheese, evenly distributed. Core tomatoes, then slice very thinly. Place one layer of tomato on top of the cheese, not too close together. Sprinkle tops of tomato slices with salt and pepper. Mince rosemary leaves and sprinkle on top. Add another layer of cheese, then add a second layer of tomato overlapping gaps in the first. Sprinkle with salt again (just on tomatoes), then top with remaining cheese. Bake for 30-45 minutes, until cheese is just browned and bubbly. Serve warm.