#include <VariableEventSelector.h>
Definition at line 10 of file VariableEventSelector.h.
Definition at line 14 of file VariableEventSelector.h.
References formula_, edm::ParameterSet::getParameter(), EventSelector::name_, AlCaHLTBitMon_QueryRunRegistry::string, threshold_, and vars_.
18 int open = ts.Index(
"[");
19 int close = ts.Index(
"]");
22 TString sub(ts(open, close - open));
24 vars_.insert(sub.Data());
26 open = ts.Index(
"[", open);
27 close = ts.Index(
"]", open);
31 std::set<std::string>::iterator v_it;
32 for (v_i = 0, v_it =
vars_.begin(); v_i !=
vars_.size(); ++v_i, ++v_it) {
33 ts.ReplaceAll(TString::Format(
"[%s]", v_it->c_str()), TString::Format(
"[%d]", v_i));
37 formula_ =
new TFormula(name_.c_str(), ts);
T getParameter(std::string const &) const
bool VariableFormulaEventSelector::select |
( |
const edm::Event & |
| ) |
const |
|
inlineoverridevirtual |
decision of the selector module
Implements EventSelector.
Definition at line 42 of file VariableEventSelector.h.
References CachingVariable::compute(), alignCSCRings::e, formula_, threshold_, findQualityFiles::v, isotrackApplyRegressor::var, and vars_.
44 std::set<std::string>::iterator v_it;
46 for (v_i = 0, v_it =
vars_.begin(); v_i !=
vars_.size(); ++v_i, ++v_it) {
list var
if using global norm cols_to_minmax = ['t_delta', 't_hmaxNearP','t_emaxNearP', 't_hAnnular', 't_eAnnular','t_pt','t_nVtx','t_ieta','t_eHcal10', 't_eHcal30','t_rhoh','t_eHcal'] df[cols_to_minmax] = df[cols_to_minmax].apply(lambda x: (x - x.min()) / (x.max() - x.min()) if (x.max() - x.min() > 0) else 1.0/200.0)
bool compute(const edm::Event &iEvent) const
TFormula* VariableFormulaEventSelector::formula_ |
|
private |
double VariableFormulaEventSelector::threshold_ |
|
private |
std::set<std::string> VariableFormulaEventSelector::vars_ |
|
private |