You already know that the ideas we have about ourselves influence how we interpret things that happen to us.
A set of ideas that we have about a person, place, or situation (including ourselves) is called a schema.
For example, most people have a "library schema" that includes the following ideas: Books, being quiet, reading, and studying.