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) {
106 unsigned int moduleIndex = 999999;
109 moduleIndex =
ii - 1;
113 if (moduleIndex == 999999) {
120 results.push_back(filterInputTag);
trigger::TriggerObjectCollection getMatchedTriggerObjects(double eta, double phi, double maxDeltaR, const trigger::TriggerObjectCollection triggerObjects)
The single EDProduct to be saved for each event (AOD case)
trigger::TriggerObjectCollection getTriggerObjects(const std::vector< edm::InputTag > &hltFilters, const trigger::TriggerEvent &triggerEvent)
Log< level::Error, false > LogError
std::vector< unsigned int > getTriggerIndices(const std::vector< std::string > &requestedTriggers, const std::vector< std::string > &triggersInEvent)
Single trigger physics object (e.g., an isolated muon)
std::vector< edm::InputTag > getHLTFilters(const std::vector< unsigned int > &triggers, const HLTConfigProvider &hltConfig, const std::string triggerProcess)
static std::string const triggerResults
std::vector< TriggerObject > TriggerObjectCollection
collection of trigger physics objects (e.g., all isolated muons)
std::vector< bool > getTriggerResults(const std::vector< unsigned int > &triggers, const edm::TriggerResults &triggerResults)
std::vector< size_type > Keys
std::vector< unsigned int > getFiredTriggerIndices(const std::vector< unsigned int > &triggers, const std::vector< bool > &triggerResults)
bool passesAnyTriggerFromList(const std::vector< unsigned int > &triggers, const edm::TriggerResults &triggerResults)