Background
I am working as a developer in a tech company. Every employee in our department has a vague and interlacing responsibility, meaning: an employee might be tasked to do something that he/she has no experience. Our development department does not have any plan, usually we perform tasks according to what manager wants at that moment. We have a fairly large room for our department but we sit in an open floor plan.
Problem
I get distracted from work very often. Sources of distraction can be:
Unknown urge for Internet browsing
Manager intervening while I am on an ongoing task
Customers calling for support/info
Colleague asking for solution
A sales rep. visiting about a project they have in mind
Usually, when one or more of above happen while I am in deep focus, I lose my focus and motivation. Even though I know exactly what to, I cannot perform anymore.
I understand our department performs on momentary verbal notice, so I began to put my headphones and dive into code. But this was not a solution and I still get interrupted. It takes unknown amount of time until I feel ready again to dive in code.
Question
1- How can I regain my focus?
2- Do I have an Attention deficit disorder? Should I visit a doctor?
UPDATE
There is an already discussed and answered question here but answers does not apply for my condition (Refer to Sources of distraction above)