$O(2)$ is an extension of $\mathbb{Z}_2$ by $SO(2)$, $$1\to SO(2) \to O(2)\to \mathbb{Z}_2 \to 1$$ Suppose the generator of $SO(2)$ is $j$, and the generator of $\mathbb{Z}_2$ is $r$, then $O(2)$ is generated by the pair $(j, r)$ with $rj=j^{-1} r$ and $r^2=1$. Let $w_i(G)$ be the $i$-th stiefel whitney class of the $G$-bundle.
Then what is the relation between $w_2(O(2))$ and $w_2(SO(2))$? Are they the same?
If we instead of considering $O(2)$, but consider the group $Pin(2)^-$, which is generated by $(j, r)$ with $rj=j^{-1}r$, $r^2 j= j r^2$ and $r^4=1$,
then what is the relation between $w_2(Pin(2)^-)$ and $w_2(SO(2))$?