As Matt Stone and Trey Parker's Underpant Knomes would say:

Step 1: Play poker
Step 2: ...
Step 3: Profit

Never thought of Step 2 before...

What I do when I'm on a bad run like this, wheter it be bad beats or bad play, is play on lower levels. I play on 25NL right now, and if I drop $50, I'll submit myself to 10NL until I get me confidence back.

I'll start to notice that I'm on tilt with I'm playing a higher % of hands than normal, and I'm betting at pots strongly OOP with a high card. So take my suggestion, drop down a level until you find yourself looking forward to playing at your prefered level within your 'A' game.