1 #ifndef DQMOffline_Trigger_UtilFuncs_h 2 #define DQMOffline_Trigger_UtilFuncs_h 23 for(
unsigned short trigKey : trigKeys){
35 if(filterNames.empty())
return true;
53 if(trigPattern.empty())
return true;
55 std::vector<std::string> trigNamesToPass;
62 trigNamesToPass.push_back(trigPattern);
64 for(
auto& trigName : trigNamesToPass){
66 if(pathIndex<trigResults.
size() &&
67 trigResults.
accept(pathIndex))
return true;
The single EDProduct to be saved for each event (AOD case)
trigger::size_type sizeFilters() const
bool accept() const
Has at least one path accepted the event?
const Keys & filterKeys(trigger::size_type index) const
bool is_glob(std::string const &pattern)
trigger::size_type filterIndex(const edm::InputTag &filterTag) const
find index of filter in data-member vector from filter tag
Strings const & triggerNames() const
Single trigger physics object (e.g., an isolated muon)
unsigned int triggerIndex(std::string const &name) const
const TriggerObjectCollection & getObjects() const
unsigned int size() const
Get number of paths stored.
std::vector< TriggerObject > TriggerObjectCollection
collection of trigger physics objects (e.g., all isolated muons)
static const char *const trigNames[]
std::vector< size_type > Keys
T1 deltaR2(T1 eta1, T2 phi1, T3 eta2, T4 phi2)
std::vector< std::vector< std::string >::const_iterator > regexMatch(std::vector< std::string > const &strings, std::regex const ®exp)
bool passTrig(const float objEta, float objPhi, const trigger::TriggerEvent &trigEvt, const std::string &filterName, const std::string &processName)