You have been trained to deal with active shooter incidents. In most cases, the active shooter is not a trained combat operative. You have been trained and you can use your training to take the fight to him and foil his plans for mass murder.
If you have received the proper training for responding to an active shooter, then you should know how to search a building for a shooter without unnecessarily exposing yourself to fire. Tactics such as corner rounding, sometimes referred to as slicing the pie, bounding, and use of cover and concealment are practical skills that we all should have and should be refining on a regular basis.
One great way to practice these techniques and tactics is in force-on-force training. Many agencies, especially those that are progressive, make force-on-force training with airsoft guns, Simunitions, or paintball guns an integral part of their regular training schedules. The benefits of this type of training are well known, and if your department doesn't provide it, then find some of this training on your own. It's the kind of experience that can really make a difference when the bullets are real.
Another advantage that you have over most active shooters is the quality of your weapons. Long guns, especially patrol rifles or carbines, have become much more prevalent in today's police arsenal. A long gun is a force multiplier that allows a trained single officer to put accurate fire into targets at greater distances than those afforded by handguns. Remember, distance favors the trained shooter.
Even your duty pistol has many inherent advantages over the usual handguns preferred by active shooters. Double-stack magazines allow you to carry enough ammunition to stay in the fight long enough to prevail. As a professional, you have probably also taken the time and effort to customize your pistol to meet your needs. Accessories like adjustable grips, night sights, laser sights, and tactical lights increase your confidence and will help you put accurate fire on a target under stress.