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