1 #ifndef PhysicsTools_MVAComputer_MVAModuleHelper_h 2 #define PhysicsTools_MVAComputer_MVAModuleHelper_h 22 #include <boost/bind.hpp> 41 template<
typename Object>
47 {
return object.compute(name); }
60 template<
class Record,
typename Object,
73 void train(
const Object &
object,
bool target,
double weight = 1.0)
const;
84 name(name),
filler(name) {}
86 name(name),
filler(name), value(value) {}
88 inline bool update(
const Object &
object)
const 91 return !std::isfinite(
value);
107 template<
class Record,
typename Object,
class Filler>
114 if (cache.update(container,
label.c_str()) && cache)
118 template<
class Record,
typename Object,
class Filler>
123 setup.
get<
Record>().
get(esLabel, handle);
125 if (cache.update(container,
label.c_str()) && cache)
129 template<
class Record,
typename Object,
class Filler>
133 const std::vector<PhysicsTools::Calibration::Variable> &vars =
136 for(std::vector<PhysicsTools::Calibration::Variable>::const_iterator
137 iter = vars.begin(); iter != vars.end(); ++iter)
138 if (std::strncmp(iter->name.c_str(),
"__", 2) != 0)
142 template<
class Record,
typename Object,
class Filler>
144 const Object &
object)
const 148 return cache->eval(
values);
151 template<
class Record,
typename Object,
class Filler>
163 bind(std::plus<int>(), _1,
168 list.
add(kTargetId, target);
169 list.
add(kWeightId, weight);
170 for(
typename std::vector<Value>::const_iterator iter =
values.begin();
171 iter !=
values.end(); ++iter)
172 list.
add(iter->getName(), iter->getValue());
179 #endif // PhysicsTools_MVAComputer_MVAModuleHelper_h
def setup(process, global_tag, zero_tesla=False)
reco::JetExtendedAssociation::JetExtendedData Value
T const * product() const
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger list("!*","!HLTx*"if it matches 2 triggers or more) will accept the event if all the matching triggers are FAIL.It will reject the event if any of the triggers are PASS or EXCEPTION(this matches the behavior of"!*"before the partial wildcard feature was incorporated).Triggers which are in the READY state are completely ignored.(READY should never be returned since the trigger paths have been run