A trolley is sliding down a frictionless slope having inclination $\theta$. If a simple pendulum is suspended on top of this trolley, its periodic time is given by $\mathrm{T}=2 \pi \sqrt{\left(1 / \mathrm{g}_{\mathrm{eff}}\right)}$, where $g_{\mathrm{eff}}=\ldots \ldots$
(A) $\mathrm{g}$
(B) $g \sin \theta$
(C) $g \cos \theta$
(D) $g \tan \theta$