CMS 3D CMS Logo

Functions
EGRegressionModifierHelpers.cc File Reference
#include "RecoEgamma/EgammaTools/plugins/EGRegressionModifierHelpers.h"

Go to the source code of this file.

Functions

std::vector< const GBRForestD * > retrieveGBRForests (edm::EventSetup const &evs, std::vector< edm::ESGetToken< GBRForestD, GBRDWrapperRcd >> const &tokens)
 

Function Documentation

◆ retrieveGBRForests()

std::vector<const GBRForestD*> retrieveGBRForests ( edm::EventSetup const &  evs,
std::vector< edm::ESGetToken< GBRForestD, GBRDWrapperRcd >> const &  tokens 
)

Definition at line 15 of file EGRegressionModifierHelpers.cc.

16  {
17  std::vector<const GBRForestD*> items;
18 
19  items.reserve(tokens.size());
20  for (auto const& token : tokens) {
21  items.push_back(&evs.getData(token));
22  }
23 
24  return items;
25 }

References edm::EventSetup::getData(), mps_monitormerge::items, and unpackBuffers-CaloStage2::token.

Referenced by EGRegressionModifierV2::setEventContent(), and EGRegressionModifierV1::setEventContent().

mps_monitormerge.items
list items
Definition: mps_monitormerge.py:29
unpackBuffers-CaloStage2.token
token
Definition: unpackBuffers-CaloStage2.py:318