#include <SysShiftMETcorrInputProducer.h>
Compute MET correction to compensate systematic shift of MET in x/y-direction (cf. https://indico.cern.ch/getFile.py/access?contribId=1&resId=0&materialId=slides&confId=174318 )
- Authors
- Christian Veelken, LLR
Definition at line 28 of file SysShiftMETcorrInputProducer.h.
◆ SysShiftMETcorrInputProducer()
SysShiftMETcorrInputProducer::SysShiftMETcorrInputProducer |
( |
const edm::ParameterSet & |
cfg | ) |
|
|
explicit |
Definition at line 11 of file SysShiftMETcorrInputProducer.cc.
18 if (corrPxFormula.Contains(
"Nvtx") || corrPyFormula.Contains(
"Nvtx")) {
22 corrPxFormula.ReplaceAll(
"sumEt",
"x");
23 corrPxFormula.ReplaceAll(
"Nvtx",
"y");
25 corrPx_ =
new TFormula(corrPxName.data(), corrPxFormula.Data());
27 corrPyFormula.ReplaceAll(
"sumEt",
"x");
28 corrPyFormula.ReplaceAll(
"Nvtx",
"y");
30 corrPy_ =
new TFormula(corrPyName.data(), corrPyFormula.Data());
32 produces<CorrMETData>();
References looper::cfg, corrPx_, corrPy_, data, edm::ParameterSet::getParameter(), moduleLabel_, AlCaHLTBitMon_QueryRunRegistry::string, token_, useNvtx, and verticesToken_.
◆ ~SysShiftMETcorrInputProducer()
SysShiftMETcorrInputProducer::~SysShiftMETcorrInputProducer |
( |
| ) |
|
|
override |
◆ produce()
Definition at line 39 of file SysShiftMETcorrInputProducer.cc.
46 throw cms::Exception(
"SysShiftMETcorrInputProducer::produce") <<
"Failed to find unique MET object !!\n";
59 std::unique_ptr<CorrMETData> metCorr(
new CorrMETData());
References corrPx_, corrPy_, edm::Event::getByToken(), BTaggingMonitor_cfi::met, eostools::move(), edm::Event::put(), objects.METAnalyzer::sumEt, token_, useNvtx, AlignmentTracksFromVertexSelector_cfi::vertices, and verticesToken_.
◆ corrPx_
TFormula* SysShiftMETcorrInputProducer::corrPx_ |
|
private |
◆ corrPy_
TFormula* SysShiftMETcorrInputProducer::corrPy_ |
|
private |
◆ moduleLabel_
std::string SysShiftMETcorrInputProducer::moduleLabel_ |
|
private |
◆ token_
◆ useNvtx
bool SysShiftMETcorrInputProducer::useNvtx |
|
private |
◆ verticesToken_