(CNN) Had two Capitol Police officers not gone to a baseball diamond around 7 a.m. Wednesday, several members of Congress might be dead.

But their quick action and heroics prevented a shooting rampage from becoming what "very well could have been a large-scale massacre," Rep. Mo Brooks said.

The attack proved how vital -- and encompassing -- the Capitol Police can be. Here's what we know about the often obscure police force:

Who are the US Capitol Police, and what do they do?

The USCP also collaborates with other federal agencies and local law enforcement "to increase the collection and sharing of intelligence information," according to the Capitol Police strategic plan

How big is their jurisdiction?

The Capitol Police jurisdiction is in the District of Columbia. But if members of Congress need additional security while in their home districts (or elsewhere), Capitol Police can coordinate with local police departments to provide that security.

Who were the Capitol Police officers in Wednesday's attack?

Special agents Crystal Griner and David Bailey are being hailed as heroes for taking down the gunman who shot House Majority Whip Steve Scalise of Louisiana and several others at a baseball practice.

Griner and Bailey are both members of Scalise's security detail.

Brooks, who was on the field when gunfire rang out, said he was amazed by the bravery of Capitol Police.

"The Capitol security guy, who had already been shot, who helped take down the shooter, came limping toward us in the outfield, totally ignoring his own wounds, to check on the person he was primarily responsible for, Steve Scalise," said Brooks, an Alabama Republican.

"We insisted that he (the officer) go back and get attended to because he was bleeding, but he was doing his job. Those two security details, those two Capitol police officers, they showed incredible bravery -- pistols against a rifle -- from a 90- to 120-feet distance. As you know, that kind of distance heavily favors the rifle."

Who gets personal security detail?

Definitely not all 535 members of Congress. But a handful of congressional leaders do have an officer nearby.

"Only constitutional office holders are given (security) details," said Rep. Joseph Crowley of New York, the Democratic Caucus chairman.

JUST WATCHED See the moment shots are fired at GOP practice Replay More Videos ... MUST WATCH See the moment shots are fired at GOP practice 00:59

In the House, that includes the speaker of the House, the majority and minority leaders, and both the whips.

"I'm not issued a detail," Crowley said. "No other members of leadership have detail or protection."

In the Senate, the leaders given personal detail are Majority Leader Mitch McConnell, Minority Leader Chuck Schumer, Majority Whip John Cornyn, Minority Whip Dick Durbin and President Pro Tem Orrin Hatch.

But any member of Congress can get extra security, if needed.

"If a threat is made against a specific member, the threat would be reported to police," Crowley said. "Then it would go through a risk assessment, and if it was determined that (the member) needed more security, then they would do it."

What events are Capitol Police required to work?

Photos: Congressman shot during GOP baseball practice Photos: Congressman shot during GOP baseball practice A wounded person is stretchered away from a baseball field in Alexandria, Virginia, on Wednesday, June 14. A gunman opened fire on Republican congressmen as they practiced baseball at the field. House Majority Whip Steve Scalise, a congressional staffer, a lobbyist and two members of the congressional police force were among those injured, officials said. The alleged gunman was killed. Hide Caption 1 of 12 Photos: Congressman shot during GOP baseball practice A bullet hole is visible in the window pane of a YMCA near the field in Alexandria. Hide Caption 2 of 12 Photos: Congressman shot during GOP baseball practice Baseball equipment is seen scattered on the field. Members of Congress were practicing for a game that is scheduled for Thursday night at Nationals Park. The annual congressional baseball game has been played since 1909. Hide Caption 3 of 12 Photos: Congressman shot during GOP baseball practice A person is treated by emergency workers at the scene of the shooting. Hide Caption 4 of 12 Photos: Congressman shot during GOP baseball practice Investigators gather near the scene. Hide Caption 5 of 12 Photos: Congressman shot during GOP baseball practice Mic.com writer Will Drabold tweeted this photo of a car with a window shot out. Hide Caption 6 of 12 Photos: Congressman shot during GOP baseball practice US Rep. Ruben Kihuen tweeted this photo with the following caption: ".@HouseDemocrats praying for our @HouseGOP @SenateGOP baseball colleagues after hearing about the horrific shooting." Hide Caption 7 of 12 Photos: Congressman shot during GOP baseball practice US Sen. Jeff Flake hugs another member of the Republican congressional baseball team after the shooting. Hide Caption 8 of 12 Photos: Congressman shot during GOP baseball practice US Rep. Mo Brooks meets with reporters in Alexandria after the shooting. Hide Caption 9 of 12 Photos: Congressman shot during GOP baseball practice US Rep. Roger Williams is wheeled away by medical service personnel. In a statement, the Texas congressman said one of his staff members, legislative correspondent Zack Barth, was shot during the incident. Hide Caption 10 of 12 Photos: Congressman shot during GOP baseball practice People stand near the scene of the shooting. Hide Caption 11 of 12 Photos: Congressman shot during GOP baseball practice An Alexandria police officer tapes off an area after the shooting. Hide Caption 12 of 12

Capitol Police are required to secure all events on Capitol grounds.

While some members of Congress are granted off-site security detail, the extent to which Capitol Police are present at events outside Capitol grounds is not clear.

Several Congress members declined to provide details on how broad the security detail is, citing security concerns.

What happened to the officers wounded in Wednesday's attack?

Capitol Police Chief Matthew R. Verderosa commended Griner, Bailey and a third officer, Henry Cabrera, "for their heroic and appropriate response in protecting the Members and others."

"I'm grateful that Special Agent Griner is in good condition in the hospital having been shot in the ankle, and Special Agent Bailey was treated and released having sustained a minor injury during the incident," Verderosa said in a statement.

Rep. Roger Williams of Texas was at the GOP baseball practice Wednesday when the shooting started. He praised the two officers who fired back at the gunman.

"There could have easily been 25 deaths today," Williams said. Then his voice began shaking.

"My family and I will be forever grateful."