In a food processor, pulse flour, butter, salt, and sugar until coarse crumbs form. Add water gradually until dough comes together. Press into a 10-inch tart pan, freeze 30 minutes.
Preheat oven to 400°F. Cover crust with parchment and pie weights. Bake 20 minutes, then cool.
Slice tomatoes, sprinkle with salt, and rest on paper towels 20 minutes. Pat dry.
In a bowl, mix ricotta, Parmesan, eggs, bacon, salt, garlic powder and pepper.
Spread pesto on crust, then add ricotta mixture. Arrange tomato slices on top.
Bake at 375°F for 50 minutes, until set. Garnish with fresh basil.
Serve warm or at room temperature.