已知函数 $f(x)=\left\{\begin{array}{ll}2(x-1), & x < 1, \\ \ln x, & x \geq 1,\end{array}\right.$ 则 $f(x)$ 的一个原函数是
A. $F(x)= \begin{cases}(x-1)^2, & x < 1 \\ x(\ln x-1), & x \geq 1\end{cases}$
B. $F(x)= \begin{cases}(x-1)^2, & x < 1 \\ x(\ln x+1)-1, & x \geq 1\end{cases}$
C. $F(x)= \begin{cases}(x-1)^2, & x < 1, \\ x(\ln x+1)+1, & x \geq 1 .\end{cases}$
D. $F(x)= \begin{cases}(x-1)^2, & x < 1, \\ x(\ln x-1)+1, & x \geq 1\end{cases}$