Preheat the oven to 180 degrees. Wash the tomatoes and place in a gratin dish. Drizzle with olive oil, salt and pepper. Peel, chop and sprinkle the garlic. Stew everything for 15 minutes.
Cook the pasta in salted water until al dente. Cut the Parma ham into strips. Wash and drain the basil. Drain the pasta, then return it to the saucepan.
Mix in the ricotta with the ham, pepper and serve. Grate the parmesan on top. Spread the basil and cherry tomatoes on top. Drizzle with olive oil from the tomatoes.