6 triggerResults_(edm::
RefProd<edm::TriggerResults>(handle).refCore()),
14 return prescaleValues_[
index];
18 if (triggerNames_ == 0)
throw cms::Exception(
"LogicError",
"getPrescaleForName called without having called setTriggerNames first");
20 const std::vector<std::string> &
names = triggerNames_->triggerNames();
21 size_t siz = name.length()-1;
22 while (siz > 0 && (name[siz] ==
'*' || name[siz] ==
'\0')) siz--;
23 for (
unsigned int i = 0,
n = names.size();
i <
n; ++
i) {
24 if (strncmp(name.c_str(), names[
i].c_str(), siz) == 0) {
25 return getPrescaleForIndex(
i);
30 int index = triggerNames_->triggerIndex(name);
31 return getPrescaleForIndex(index);
37 prescaleValues_[
index] = prescale;
int getPrescaleForName(const std::string &name, bool prefixOnly=false) const
static const HistoName names[]
std::vector< int > prescaleValues_
void addPrescaledTrigger(int index, int prescale)
static std::string const triggerResults
edm::RefProd< Container > RefProd
int getPrescaleForIndex(int index) const
tuple size
Write out results.