10 std::vector<unsigned int>
getTriggerIndices(
const std::vector<std::string> &requestedTriggers,
11 const std::vector<std::string> &triggersInEvent) {
12 std::vector<unsigned int> triggerIndices;
14 for (
const auto &requestedTriggerName : requestedTriggers) {
16 std::size_t wildcarPosition =
name.find(
'*');
17 if (wildcarPosition != std::string::npos) {
19 name =
name.substr(0, wildcarPosition - 1);
22 unsigned int triggerIndex = 0;
25 triggerIndices.push_back(triggerIndex);
31 return triggerIndices;
37 results.resize(triggers.size());
56 std::vector<unsigned int>
results;
80 for (
const auto &
filter : hltFilters) {
85 const size_t nTriggers =
triggerEvent.filterIds(filterIndex).size();
86 for (
size_t i = 0;
i < nTriggers; ++
i) {
94 return obj1.et() > obj2.et();
99 std::vector<edm::InputTag>
getHLTFilters(
const std::vector<unsigned int> &triggers,
102 std::vector<edm::InputTag>
results;
103 for (
auto trigger : triggers) {
104 unsigned int hltIndexOffset(2);
109 results.push_back(filterInputTag);