CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | Private Attributes
HcalCPURecHitsProducer Class Reference
Inheritance diagram for HcalCPURecHitsProducer:
edm::stream::EDProducer< edm::ExternalWork >

Public Member Functions

 HcalCPURecHitsProducer (edm::ParameterSet const &ps)
 
 ~HcalCPURecHitsProducer () override=default
 
- Public Member Functions inherited from edm::stream::EDProducer< edm::ExternalWork >
 EDProducer ()=default
 
 EDProducer (const EDProducer &)=delete
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginProcessBlocks () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndProcessBlocks () const final
 
bool hasAbilityToProduceInEndRuns () const final
 
const EDProduceroperator= (const EDProducer &)=delete
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &)
 

Private Types

using IProductType = cms::cuda::Product< hcal::RecHitCollection< calo::common::DevStoragePolicy >>
 
using OProductType = hcal::RecHitCollection< calo::common::VecStoragePolicy< calo::common::CUDAHostAllocatorAlias >>
 

Private Member Functions

void acquire (edm::Event const &, edm::EventSetup const &, edm::WaitingTaskWithArenaHolder) override
 
void produce (edm::Event &, edm::EventSetup const &) override
 

Private Attributes

const bool produceLegacy_
 
const bool produceSoA_
 
const edm::EDPutTokenT
< HBHERecHitCollection
recHitsLegacyTokenOut_
 
const edm::EDGetTokenT
< IProductType
recHitsM0TokenIn_
 
const edm::EDPutTokenT
< OProductType
recHitsM0TokenOut_
 
OProductType tmpRecHits_
 

Additional Inherited Members

- Public Types inherited from edm::stream::EDProducer< edm::ExternalWork >
using CacheTypes = CacheContexts< T...>
 
using GlobalCache = typename CacheTypes::GlobalCache
 
using HasAbility = AbilityChecker< T...>
 
using InputProcessBlockCache = typename CacheTypes::InputProcessBlockCache
 
using LuminosityBlockCache = typename CacheTypes::LuminosityBlockCache
 
using LuminosityBlockContext = LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache >
 
using LuminosityBlockSummaryCache = typename CacheTypes::LuminosityBlockSummaryCache
 
using RunCache = typename CacheTypes::RunCache
 
using RunContext = RunContextT< RunCache, GlobalCache >
 
using RunSummaryCache = typename CacheTypes::RunSummaryCache
 

Detailed Description

Definition at line 15 of file HcalCPURecHitsProducer.cc.

Member Typedef Documentation

Definition at line 30 of file HcalCPURecHitsProducer.cc.

Definition at line 33 of file HcalCPURecHitsProducer.cc.

Constructor & Destructor Documentation

HcalCPURecHitsProducer::HcalCPURecHitsProducer ( edm::ParameterSet const &  ps)
explicit

Definition at line 53 of file HcalCPURecHitsProducer.cc.

References edm::ParameterSet::getParameter(), produceLegacy_, produceSoA_, recHitsM0TokenIn_, recHitsM0TokenOut_, and AlCaHLTBitMon_QueryRunRegistry::string.

54  : produceSoA_{ps.getParameter<bool>("produceSoA")},
55  produceLegacy_{ps.getParameter<bool>("produceLegacy")},
56  recHitsM0TokenIn_{consumes<IProductType>(ps.getParameter<edm::InputTag>("recHitsM0LabelIn"))},
57  recHitsM0TokenOut_{produceSoA_ ? produces<OProductType>(ps.getParameter<std::string>("recHitsM0LabelOut"))
58  : edm::EDPutTokenT<OProductType>{}}, // empty token if disabled
const edm::EDPutTokenT< OProductType > recHitsM0TokenOut_
const edm::EDGetTokenT< IProductType > recHitsM0TokenIn_
hcal::RecHitCollection< calo::common::VecStoragePolicy< calo::common::CUDAHostAllocatorAlias >> OProductType
HcalCPURecHitsProducer::~HcalCPURecHitsProducer ( )
overridedefault

Member Function Documentation

void HcalCPURecHitsProducer::acquire ( edm::Event const &  ,
edm::EventSetup const &  ,
edm::WaitingTaskWithArenaHolder   
)
overrideprivate
void HcalCPURecHitsProducer::fillDescriptions ( edm::ConfigurationDescriptions confDesc)
static

Definition at line 41 of file HcalCPURecHitsProducer.cc.

References edm::ParameterSetDescription::add(), edm::ConfigurationDescriptions::addWithDefaultLabel(), submitPVResolutionJobs::desc, and AlCaHLTBitMon_QueryRunRegistry::string.

41  {
43 
44  desc.add<edm::InputTag>("recHitsM0LabelIn", edm::InputTag{"hbheRecHitProducerGPU"});
45  desc.add<std::string>("recHitsM0LabelOut", "");
46  desc.add<std::string>("recHitsLegacyLabelOut", "");
47  desc.add<bool>("produceSoA", true);
48  desc.add<bool>("produceLegacy", true);
49 
50  confDesc.addWithDefaultLabel(desc);
51 }
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void HcalCPURecHitsProducer::produce ( edm::Event ,
edm::EventSetup const &   
)
overrideprivate

Member Data Documentation

const bool HcalCPURecHitsProducer::produceLegacy_
private

Definition at line 28 of file HcalCPURecHitsProducer.cc.

Referenced by HcalCPURecHitsProducer().

const bool HcalCPURecHitsProducer::produceSoA_
private

Definition at line 27 of file HcalCPURecHitsProducer.cc.

Referenced by HcalCPURecHitsProducer().

const edm::EDPutTokenT<HBHERecHitCollection> HcalCPURecHitsProducer::recHitsLegacyTokenOut_
private

Definition at line 35 of file HcalCPURecHitsProducer.cc.

const edm::EDGetTokenT<IProductType> HcalCPURecHitsProducer::recHitsM0TokenIn_
private

Definition at line 31 of file HcalCPURecHitsProducer.cc.

Referenced by HcalCPURecHitsProducer().

const edm::EDPutTokenT<OProductType> HcalCPURecHitsProducer::recHitsM0TokenOut_
private

Definition at line 34 of file HcalCPURecHitsProducer.cc.

Referenced by HcalCPURecHitsProducer().

OProductType HcalCPURecHitsProducer::tmpRecHits_
private

Definition at line 38 of file HcalCPURecHitsProducer.cc.