Remove templates, use edm::View instead
Check the type of the jet candidate once, and use a flag for the others