CMS 3D CMS Logo

TestHostOnlyHelperClass.cc
Go to the documentation of this file.
3 
4 namespace cms::alpakatest {
6  : edToken_(iC.consumes(iConfig.getParameter<edm::InputTag>("intSource"))), esToken_(iC.esConsumes()) {}
7 
9  iDesc.add<edm::InputTag>("intSource");
10  }
11 
13  auto const& ed = iEvent.get(edToken_);
14  auto const& es = iSetup.getData(esToken_);
15 
16  return ed.value + es.value();
17  }
18 } // namespace cms::alpakatest
ESGetTokenH3DDVariant esConsumes(std::string const &Record, edm::ConsumesCollector &)
Definition: DeDxTools.cc:283
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
Definition: EventSetup.h:119
edm::EDGetTokenT< edmtest::IntProduct > const edToken_
int iEvent
Definition: GenABIO.cc:224
int run(edm::Event const &iEvent, edm::EventSetup const &iSetup) const
TestHostOnlyHelperClass(edm::ParameterSet const &iConfig, edm::ConsumesCollector iC)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
static void fillPSetDescription(edm::ParameterSetDescription &iDesc)
edm::ESGetToken< cms::alpakatest::ESTestDataA, AlpakaESTestRecordA > const esToken_
HLT enums.