25 TTrigger::TTrigger(
const std::vector<std::string> &muonTriggerNames,
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) lId = i0;
43 if(lId == -1)
edm::LogWarning(
"ZCounting") <<
"=== Missing Trigger ==" << iName << std::endl;
50 if(lId == -1)
return -1;
52 for(
unsigned int i0 = 0; i0 <
fRecords[lId].objectMap.size(); i0++) {
54 return fRecords[lId].objectMap[i0].second;
63 if(lId == -1)
return false;
71 if(lId == -1)
return false;
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
int getTriggerObjectBit(const std::string &iName, const std::string &iObjName) const