Perhaps I should mention a little bit about my background since I'm new, and since my experience may bias my approach in ways that make it not entirely relevant to most readers. Most of my backcountry time in bear country has been in Alaska (about 30 years) and I currently live off the road system on the Alaska Peninsula with more brown bears than people (outside of commercial salmon season, anyway) and with no black bears. I am working part of this summer and fall as a ranger in Katmai NP.
So as you can tell I'm used to the more naive "country bears" and not the "street-smart" bears of more traveled areas. And while I have often dealt with black bears while living in other parts of the state, they are not an issue here. I've also never had to worry about humans rifling through my bear bear barrel but am now forewarned next time I travel outside!
While it may not be much of a threat to have black bears messing with a bear barrel near camp I think it is always, always, always a bad idea to have bears touching any gear, no matter how photogenic the moment may be. Even if the probability is low that the bear is an immediate danger to you, as with black bears (though even then it is only a probability), any time a bear gets to mess with your stuff it is an interesting new thing to her, and she will be all the more inclined to seek out human campsites in the future. Running bears off after watching or photographing for a while will almost certainly do zero to discourage them in the future. Shooting them in the butt with a rubber shotgun slug or pepper spraying them in the face *might*, but surely setting them up for that kind of thing is unethical. I really don't like to sound preachy or judgmental, esp. being new to the forum, but any kind of exposure to gear in any way that lets bears touch it, bite it, etc. only contributes to their delinquency, which makes it much more likely that the bear will eventually have to be shot. It also contributes to the possibility of a human being hurt, esp. in brown bear country.
The only reason a place like Brooks Camp in Katmai can exist is because of rigidly disallowing any contact between bears and gear that humans can carry, and not just human food.
For those and other reasons, I think that tent site location is by far the most important thing with bears. The biggest problems that can happen involve the tent of course, and visually the tent drawing them is the most likely thing to bring them to the barrel. So my approach is to scout the area I want to pitch within, locating all bear trails and routes of passage, and then hide my tent from view of those trails. The ideal site is one that is hidden from the usual travel routes for bears but does not allow a bear to come on it suddenly if they do go off route for whatever reason. This is basically what they teach rangers at Katmai, with the provision that if you are going to be in camp for only a night or two it's important to think about wind direction between your setup and the routes of bear travel. Longer than that and the wind direction will change enough that it won't matter.
I know some old hands here who, when they are able to get a good current running through a of the heavy-duty bear fence (not the backpacking models), will keep bear barrels in the perimeter of the fence, though they don't cook inside the fence. If I'm backpacking I just stash the barrel out of sight in some alders or willows 50 to 100 feet from my tent. Other than the general location of your site for overnighters there's not much to be done about scent with bears, so the main thing is that they don't see the barrel. "Scout their routes then hide everything."