#include <VariableEventSelector.h>
Definition at line 10 of file VariableEventSelector.h.
Definition at line 13 of file VariableEventSelector.h.
References formula_, edm::ParameterSet::getParameter(), EventSelector::name_, AlCaHLTBitMon_QueryRunRegistry::string, threshold_, and vars_.
19 int open = ts.Index(
"[");
20 int close = ts.Index(
"]");
23 TString sub( ts(open,close-open));
25 vars_.insert( sub.Data() );
27 open = ts.Index(
"[",open);
28 close = ts.Index(
"]",open);
32 std::set<std::string>::iterator v_it;
33 for (v_i = 0, v_it=
vars_.begin();
34 v_i!=
vars_.size(); ++v_i,++v_it)
36 ts.ReplaceAll(TString::Format(
"[%s]", v_it->c_str()),TString::Format(
"[%d]", v_i));
40 formula_ =
new TFormula(name_.c_str(), ts);
T getParameter(std::string const &) const
bool VariableFormulaEventSelector::select |
( |
const edm::Event & |
| ) |
const |
|
inlineoverridevirtual |
TFormula* VariableFormulaEventSelector::formula_ |
|
private |
double VariableFormulaEventSelector::threshold_ |
|
private |
std::set<std::string> VariableFormulaEventSelector::vars_ |
|
private |