My definition of good food is one with a nice ratio of protein to calories, especially when getting lean.
Aprproximately 1 gram per 5 calories = Awesome. Examples, Chicken Breast, Cod
Approximately 1 gram per 10 calories = good. Examples: Greek Yogurt, eggs, cottage cheese, lean pork
Approximately 1 gram per 20 calories = OK. Examples: Chick peas, broccoli
Anything above 1 gram per 30 calories is probably only good as enjoyment food, which is also important.
If it's 1 gram of protein (or none) per 50 calories, then it's probably pure junk.
That's just looking at it from a raw numbers perspective when it comes to the basic calories in calories out rules. Of course there's other factors like fiber and micronutrients. The leaner I need to be, the more I eat from the "awesome" and "good" section, and...surprise! The leaner I get.