12 : moduleLabel_(cfg.getParameter<
std::
string>(
"@module_label")),
22 if ( corrPxFormula.Contains(
"Nvtx") || corrPyFormula.Contains(
"Nvtx") )
28 corrPxFormula.ReplaceAll(
"sumEt",
"x");
29 corrPxFormula.ReplaceAll(
"Nvtx",
"y");
31 corrPx_ =
new TFormula(corrPxName.data(), corrPxFormula.Data());
33 corrPyFormula.ReplaceAll(
"sumEt",
"x");
34 corrPyFormula.ReplaceAll(
"Nvtx",
"y");
36 corrPy_ =
new TFormula(corrPyName.data(), corrPyFormula.Data());
38 produces<CorrMETData>();
53 if ( met->size() != 1 )
55 <<
"Failed to find unique MET object !!\n";
57 double sumEt = met->front().sumEt();
65 Nvtx = vertices->size();
69 std::unique_ptr<CorrMETData> metCorr(
new CorrMETData());
70 metCorr->mex = -
corrPx_->Eval(sumEt, Nvtx);
71 metCorr->mey = -
corrPy_->Eval(sumEt, Nvtx);
T getParameter(std::string const &) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
char data[epos_bytes_allocation]