A simple pendulum having length $\ell$ is suspended at the roof of a train moving with constant acceleration 'a' along horizontal direction. The periodic time of this pendulum is....
(A) $\mathrm{T}=2 \pi \sqrt{(\ell / \mathrm{g})}$
(B) $\mathrm{T}=2 \pi \sqrt{\{\ell /(\mathrm{g}+\mathrm{a})\}}$
(C) $\mathrm{T}=2 \pi \sqrt{\{\ell /(\mathrm{g}-\mathrm{a})\}}$
(D) $\left.\mathrm{T}=2 \pi \sqrt{\{\ell} /\left(\mathrm{g}^{2}+\mathrm{a}^{2}\right)\right\}$