CMS 3D CMS Logo

Classes | Functions
EGRegressionModifierHelpers.h File Reference
#include "CondFormats/DataRecord/interface/GBRDWrapperRcd.h"
#include "CondFormats/GBRForest/interface/GBRForestD.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "FWCore/Utilities/interface/ESGetToken.h"
#include "FWCore/Framework/interface/ConsumesCollector.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include <vector>

Go to the source code of this file.

Classes

struct  EGRegressionModifierCondTokens
 

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.

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

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

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 }