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);
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)
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)