maff
When my USCF tournaments get rated does it count who I beat?

It's explained here: https://new.uschess.org/sites/default/files/media/documents/the-us-chess-rating-system-revised-september-2020.pdf
But my understanding is it's based on the opponent ratings and your expected performance.

The rating system is based on an expected score against each of your opponents. If you play someone at your rating, the expected score is 0.5. If you are much lower rated, then the expected score drops close to 0. If you are much higher rated, then the expected score approaches 1. For example, if two players are rated 200 points apart, then the higher rated is expected to score approximately 0.75 (or win 3 out of 4 games) while the lower rated is expected to score just 0.25.
Next you add up the expected scores from each opponent. The order of games does not matter. Then you subtract that sum from your actual score in those games. Forfeits and byes do not count. If you earned more points than you were expected to get, then your rating increases.
The final step is to multiply the difference between your actual score and the expected score by a K factor. In US Chess, K depends on your rating (decreases as your rating goes up) and weakly depends on how many games you played. There are also bonus points for exceptional results. On Chess.com, K depends on how frequently you play (decreases if you are active).
Note that you are considered provisional by US Chess until you play 25 rated games. Provisional ratings are calculated differently. I will omit those details. Sorry!
If you are curious, then check out the US Chess Ratings Estimator.
I've always thought about this but never really knew the true answer -
How exactly is your USCF chess rating impacted from tournaments based on the players you play or based on your result with the sum of your opponents rating?
For instance, lets say my rating is 1400, I am in a 4 game tournament, I happen to beat a 2000 but afterwards lose the rest of my games. When my result would be put in to US Chess would it be put in Win V. 2000, Lost V, Lose V xxxx, Lost V xxxx or more like 1/4 2000 xxxx xxxx xxxx?
The first one would be my exact win and loses against my opponents, the exact results I got, then the second one is my total points with all the ratings of the opponents that I had played.
For example,
R1: Win 2000
R2: Lost 1000
R3: Lost 1000
R4: Lost 1000
I am wondering if it would go as me beating the 2000 and losing to the 1000's or my 1/4 result getting put into a rating calculator with all the ratings of my opponents?
I am assuming if it is the second one then it would be assume that I just beat one 1000 while losing to two other 1000's along with a 2000.
Also assuming that if it is the first one then it would put me in as beating the 2000, therefore, my rating would go up more from this version.
Thank you for your help!