Cohomology of Artin Groups of type $tilde{A}_n,$ $tilde{B}_n$ and applications