10 using namespace ZCountingTrigger;
26 const std::vector<std::string> &muonTriggerObjectNames) {
27 for (
unsigned int i = 0;
i < muonTriggerNames.size(); ++
i) {
29 fRecords.back().objectMap.push_back(std::pair<std::string, int>(muonTriggerObjectNames.at(
i), 0));
32 fRecords.back().objectMap.push_back(std::pair<std::string, int>(
"hltEle35noerWPTightGsfTrackIsoFilter", 0));
34 fRecords.back().objectMap.push_back(std::pair<std::string, int>(
"hltEle27WPTightGsfTrackIsoFilter", 0));
40 for (
unsigned int i0 = 0; i0 <
fRecords.size(); i0++) {
41 if (iName ==
fRecords[i0].hltPattern)
45 edm::LogWarning(
"ZCounting") <<
"=== Missing Trigger ==" << iName << std::endl;
55 for (
unsigned int i0 = 0; i0 <
fRecords[lId].objectMap.size(); i0++) {
58 return fRecords[lId].objectMap[i0].second;
bool passObj(const std::string &iName, const std::string &iObjName, const TriggerObjects &iTrigObj) const
std::bitset< kNTrigObjectBit > TriggerObjects
TTrigger(const std::vector< std::string > &muonTriggerNames, const std::vector< std::string > &muonTriggerObjectNames)
int getTriggerBit(const std::string &iName) const
std::vector< ZCountingTrigger::TriggerRecord > fRecords
std::bitset< kNTrigBit > TriggerBits
bool pass(const std::string &iName, const TriggerBits &iTrig) const
Log< level::Warning, false > LogWarning
int getTriggerObjectBit(const std::string &iName, const std::string &iObjName) const