Definition at line 18 of file CorrMETDataExtractor.cc.
◆ CorrMETDataExtractor()
Definition at line 20 of file CorrMETDataExtractor.cc.
References looper::cfg, corrTokens_, and DigiToRaw_Repack_cff::inputTag.
21 std::vector<edm::InputTag> corrInputTags =
cfg.getParameter<std::vector<edm::InputTag> >(
"corrections");
22 std::vector<edm::EDGetTokenT<CorrMETData> > corrTokens;
23 for (std::vector<edm::InputTag>::const_iterator
inputTag = corrInputTags.begin();
inputTag != corrInputTags.end();
28 produces<float>(
"corX");
29 produces<float>(
"corY");
30 produces<float>(
"corSumEt");
◆ ~CorrMETDataExtractor()
CorrMETDataExtractor::~CorrMETDataExtractor |
( |
| ) |
|
|
inlineoverride |
◆ produce()
Definition at line 38 of file CorrMETDataExtractor.cc.
References alignCSCRings::corr, corrTokens_, dqmMemoryStats::float, edm::Event::getByToken(), CorrMETData::mex, CorrMETData::mey, eostools::move(), edm::Event::put(), CorrMETData::sumet, and trackerHitRTTI::vector.
49 float cY = (
float)sumCor.
mey;
52 std::unique_ptr<float> corX(
new float(0));
53 std::unique_ptr<float> corY(
new float(0));
54 std::unique_ptr<float> corSumEt(
new float(0));
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
◆ corrTokens_