Fed funds rate

Hi do anyone know how the fed through their open market operation know how much treasuries they must sell or buy in order to reach the rate they had announced? Is it the same system for the europeans?