1 #ifndef PhysicsTools_MVAComputer_MVAModuleHelper_h
2 #define PhysicsTools_MVAComputer_MVAModuleHelper_h
22 #include <boost/bind.hpp>
31 namespace PhysicsTools {
41 template<
typename Object>
47 {
return object.compute(name); }
60 template<
class Record,
typename Object,
61 class Filler = MVAModuleHelperDefaultFiller<Object> >
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
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();
179 #endif // PhysicsTools_MVAComputer_MVAModuleHelper_h
reco::JetExtendedAssociation::JetExtendedData Value
T const * product() const
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
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