Let X(w) be a real random variable on ($\Omega$ , P). The image X($\Omega$) the set of all the values X(w) can take ,written $\Omega^{X}$. For any set $ B \subset \Omega^{X}$ the probability of the event that the value of X lies in B is equal to $P\{w|X(w) \in B\} = P(X^{-1}(B))$.
What I understood from that is that the probability measure P is the probability of the set of all ws such that the event X(w) is realized and which from that is an element of B, namely is equal to $P\{w|X(w) \in B\}$ however I do not understand why $P(X^{-1}(B))$ is used? Does it actually mean the inverse of event X or inverse composite? How physically can I vindicate the use of $X^{-1}$? Any ideas?
The sentence beginning "What I understood" is difficult to parse, but from the last part of it I get the impression that you are unaware that $\{w\mid X(w)\in B\}$ is the same thing as $X^{-1}(B)$. If that's the problem, then you should review the definition of $X^{-1}(B)$, perhaps not in a specifically probabilistic context but in the general context of any function $X$ that maps into a set that includes another set $B$ as a subset.