CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Attributes
cms::alpakatest::TestHostOnlyHelperClass Class Reference

#include <TestHostOnlyHelperClass.h>

Public Member Functions

int run (edm::Event const &iEvent, edm::EventSetup const &iSetup) const
 
 TestHostOnlyHelperClass (edm::ParameterSet const &iConfig, edm::ConsumesCollector iC)
 

Static Public Member Functions

static void fillPSetDescription (edm::ParameterSetDescription &iDesc)
 

Private Attributes

edm::EDGetTokenT< edmtest::IntProduct > const edToken_
 
edm::ESGetToken< cms::alpakatest::ESTestDataA, AlpakaESTestRecordA > const esToken_
 

Detailed Description

Definition at line 15 of file TestHostOnlyHelperClass.h.

Constructor & Destructor Documentation

◆ TestHostOnlyHelperClass()

cms::alpakatest::TestHostOnlyHelperClass::TestHostOnlyHelperClass ( edm::ParameterSet const &  iConfig,
edm::ConsumesCollector  iC 
)

Definition at line 5 of file TestHostOnlyHelperClass.cc.

6  : edToken_(iC.consumes(iConfig.getParameter<edm::InputTag>("intSource"))), esToken_(iC.esConsumes()) {}
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
edm::EDGetTokenT< edmtest::IntProduct > const edToken_
edm::ESGetToken< cms::alpakatest::ESTestDataA, AlpakaESTestRecordA > const esToken_

Member Function Documentation

◆ fillPSetDescription()

void cms::alpakatest::TestHostOnlyHelperClass::fillPSetDescription ( edm::ParameterSetDescription iDesc)
static

Definition at line 8 of file TestHostOnlyHelperClass.cc.

References edm::ParameterSetDescription::add().

Referenced by ALPAKA_ACCELERATOR_NAMESPACE::TestAlpakaStreamSynchronizingProducer::fillDescriptions().

8  {
9  iDesc.add<edm::InputTag>("intSource");
10  }
ParameterDescriptionBase * add(U const &iLabel, T const &value)

◆ run()

int cms::alpakatest::TestHostOnlyHelperClass::run ( edm::Event const &  iEvent,
edm::EventSetup const &  iSetup 
) const

Definition at line 12 of file TestHostOnlyHelperClass.cc.

References edToken_, esToken_, edm::EventSetup::getData(), and iEvent.

Referenced by ALPAKA_ACCELERATOR_NAMESPACE::TestAlpakaStreamSynchronizingProducer::acquire().

12  {
13  auto const& ed = iEvent.get(edToken_);
14  auto const& es = iSetup.getData(esToken_);
15 
16  return ed.value + es.value();
17  }
edm::EDGetTokenT< edmtest::IntProduct > const edToken_
int iEvent
Definition: GenABIO.cc:224
edm::ESGetToken< cms::alpakatest::ESTestDataA, AlpakaESTestRecordA > const esToken_

Member Data Documentation

◆ edToken_

edm::EDGetTokenT<edmtest::IntProduct> const cms::alpakatest::TestHostOnlyHelperClass::edToken_
private

Definition at line 24 of file TestHostOnlyHelperClass.h.

Referenced by run().

◆ esToken_

edm::ESGetToken<cms::alpakatest::ESTestDataA, AlpakaESTestRecordA> const cms::alpakatest::TestHostOnlyHelperClass::esToken_
private

Definition at line 25 of file TestHostOnlyHelperClass.h.

Referenced by run().