11 #include <boost/ptr_container/ptr_map.hpp> 31 const std::vector<double> &
values =
33 double stepSize = (max -
min)/(values.size()-1);
34 std::unique_ptr<TGraph>
output(
new TGraph(values.size()));
36 double x = min +
step*stepSize;
54 typedef boost::ptr_map<reco::PFTau::hadronicDecayMode, TGraph>
TransformMap;
65 typedef std::vector<edm::ParameterSet>
VPSet;
80 transforms_.insert(decayMode, buildTransform(transformImpl).
get());
82 edm::LogError(
"DecayModeNotUnique") <<
"The tau decay mode with " 83 "nCharged/nPiZero = " << nCharged <<
"/" << nPiZeros <<
84 " dm: " << decayMode <<
85 " is associated to multiple MVA transforms, " 86 "the second instantiation is being ignored!!!";
99 TransformMap::const_iterator transformIter =
104 const TGraph *
transform = transformIter->second;
107 double result = transform->Eval(value);
T getParameter(std::string const &) const
#define DEFINE_FWK_MODULE(type)
PFTau::hadronicDecayMode translateDecayMode(unsigned int nCharged, unsigned int nPiZero)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
double prediscriminantFailValue_