Convicted former Baltimore Police Gun Trace Task Force detective Daniel Hersl, who gained a reputation as one of the city’s roughest cops before being indicted on racketeering charges last year, was sentenced to 18 years in federal prison Friday afternoon.