7 triggerResults_(edm::
RefProd<edm::TriggerResults>(handle).refCore()),
15 return prescaleValues_[
index];
19 if (triggerNames_ == 0)
throw cms::Exception(
"LogicError",
"getPrescaleForName called without having called setTriggerNames first");
21 const std::vector<std::string> &
names = triggerNames_->triggerNames();
22 size_t siz = name.length()-1;
23 while (siz > 0 && (name[siz] ==
'*' || name[siz] ==
'\0')) siz--;
24 for (
unsigned int i = 0,
n = names.size();
i <
n; ++
i) {
25 if (strncmp(name.c_str(), names[
i].c_str(), siz) == 0) {
26 return getPrescaleForIndex(
i);
31 int index = triggerNames_->triggerIndex(name);
32 return getPrescaleForIndex(index);
38 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.