We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5bf8d0d commit 50d1341Copy full SHA for 50d1341
1 file changed
rooutil/inc/Trigger.hh
@@ -39,6 +39,17 @@ namespace rooutil {
39
return Fired(_nameToIndex.at(name));
40
}
41
42
+ // Check if any trigger with this pattern string was fired
43
+ bool FiredByTag(const std::string pattern) const {
44
+ bool fired = false;
45
+ for(const auto& itr : NameToIndexMap()) {
46
+ const std::string name = itr.first;
47
+ if(name.find(pattern) != std::string::npos) fired |= Fired(itr.second);
48
+ if(fired) break;
49
+ }
50
+ return fired;
51
52
+
53
// Data accessors
54
const mu2e::TrigInfo* TrigInfo () const { return _trig; }
55
const std::map<std::string, int>& NameToIndexMap() const { return _nameToIndex; }
0 commit comments