Metro

Killer receives 40 to life for attempted murder of hero cop who survived shot to the head

The .38 cal revolver (pictured, model RG 40) used in the shooting of Brennan, as well as the shooting of Shannon McKinney.

The .38 cal revolver (pictured, model RG 40) used in the shooting of Brennan, as well as the shooting of Shannon McKinney. (Gregory P. Mango)

New York Police Sgt. Kevin Brennan is applauded by officers as he received the Department's Combat Cross Tuesday, June 11, 2013, during the annual Medal Day ceremony, at Police Headquarters in New York. Brennan was shot in the head Jan. 31, 2012, in Brooklyn while responding to calls of shots fired.

New York Police Sgt. Kevin Brennan is applauded by officers as he received the Department’s Combat Cross Tuesday, June 11, 2013, during the annual Medal Day ceremony, at Police Headquarters in New York. Brennan was shot in the head Jan. 31, 2012, in Brooklyn while responding to calls of shots fired. (Chad Rachman/New York Post)

A hero cop who survived being shot in the head by a cold-blooded killer walked out of a Brooklyn courtroom to cheers from fellow cops after a judge today slapped his unrepentant shooter with 40 years to life for blasting him – plus life without parole for the murder of a man he’d robbed just one month earlier.

Brooklyn gangbanger Luis Ortiz, 23, turned around in his chair as he was sentenced in Brooklyn Supreme Court so he could stare down NYPD Sgt. Kevin Brennan, who’s life he tried to end as the cop chased him through the Bushwick Houses on Jan. 31, 2012.

Asked after court if he thought Ortiz was staring him down, Brennan said coolly, “Yeah, I think he was.”

In front of a packed courtroom, Brennan said he knew Ortiz would ask for a lesser sentence because he was just 21 years old during the time of the shootings.

“When I was 21 years old I was in the police academy. I chose to protect and serve, he chose to sell drugs, rob, and kill,” Brennan said in his victim impact statement – adding that he still has bullet fragments in his head that could shift and cause further brain damage.

Brennan’s wife recounted her husband’s horrific injuries in a statement read by prosecutors.

“The most heartbreaking thing I saw was Kevin being unable to hold his daughter when she came to the hospital,” Janet Brennan said in the statement, adding that she would hold their now-19-month old daughter near Brennan so the two could be close.

The Brennans sat together in the gallery and kissed one another when Judge Albert Tomei locked Ortiz up forever.

“You will spend the rest of your life in a soulless, loveless, and compassionless environment,” said Tomei, who also called Ortiz’s January 1, 2012 murder of Shannon McKinney an “execution.”

A jury took just three hours to convict Ortiz earlier this month of shooting Brennan and of killing McKinney, 34, during a robbery outside a Bushwick grocery store.

The same gun was used in both shootings, prosecutors said.

“Somehow this defendant lost a link to his humanity,” said assistant district attorney Lewis Lieberman. “He has expressed no remorse.”

jsaul@nypost.com