CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
PixelTrackDumpCUDAT< TrackerTraits > Class Template Reference
Inheritance diagram for PixelTrackDumpCUDAT< TrackerTraits >:
edm::global::EDAnalyzer<> edm::global::EDAnalyzerBase edm::EDConsumerBase

Public Types

using TrackSoADevice = TrackSoAHeterogeneousDevice< TrackerTraits >
 
using TrackSoAHost = TrackSoAHeterogeneousHost< TrackerTraits >
 
using VertexSoADevice = ZVertexSoADevice
 
using VertexSoAHost = ZVertexSoAHost
 
- Public Types inherited from edm::global::EDAnalyzerBase
typedef EDAnalyzerBase ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 

Public Member Functions

 PixelTrackDumpCUDAT (const edm::ParameterSet &iConfig)
 
 ~PixelTrackDumpCUDAT () override=default
 
- Public Member Functions inherited from edm::global::EDAnalyzer<>
 EDAnalyzer ()=default
 
 EDAnalyzer (const EDAnalyzer &)=delete
 
const EDAnalyzeroperator= (const EDAnalyzer &)=delete
 
bool wantsGlobalLuminosityBlocks () const noexcept final
 
bool wantsGlobalRuns () const noexcept final
 
bool wantsInputProcessBlocks () const noexcept final
 
bool wantsProcessBlocks () const noexcept final
 
bool wantsStreamLuminosityBlocks () const noexcept final
 
bool wantsStreamRuns () const noexcept final
 
- Public Member Functions inherited from edm::global::EDAnalyzerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzerBase ()
 
ModuleDescription const & moduleDescription () const
 
 ~EDAnalyzerBase () override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
ESResolverIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESResolverIndex > const & esGetTokenIndicesVector (edm::Transition iTrans) const
 
std::vector< ESRecordIndex > const & esGetTokenRecordIndicesVector (edm::Transition iTrans) const
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::array< std::vector< ModuleDescription const *> *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, ProductRegistry const &preg, std::map< std::string, ModuleDescription const *> const &labelsToDesc, std::string const &processName) const
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
void selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase)
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProductResolverIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 
- Static Public Member Functions inherited from edm::global::EDAnalyzerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 

Private Member Functions

void analyze (edm::StreamID streamID, edm::Event const &iEvent, const edm::EventSetup &iSetup) const override
 

Private Attributes

const bool m_onGPU
 
edm::EDGetTokenT< cms::cuda::Product< TrackSoADevice > > tokenGPUTrack_
 
edm::EDGetTokenT< cms::cuda::Product< VertexSoADevice > > tokenGPUVertex_
 
edm::EDGetTokenT< TrackSoAHosttokenSoATrack_
 
edm::EDGetTokenT< VertexSoAHosttokenSoAVertex_
 

Additional Inherited Members

- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< Bconsumes (edm::InputTag tag) noexcept
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
constexpr auto esConsumes ()
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag)
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
void resetItemsToGetFrom (BranchType iType)
 

Detailed Description

template<typename TrackerTraits>
class PixelTrackDumpCUDAT< TrackerTraits >

Definition at line 28 of file PixelTrackDumpCUDA.cc.

Member Typedef Documentation

◆ TrackSoADevice

template<typename TrackerTraits >
using PixelTrackDumpCUDAT< TrackerTraits >::TrackSoADevice = TrackSoAHeterogeneousDevice<TrackerTraits>

Definition at line 31 of file PixelTrackDumpCUDA.cc.

◆ TrackSoAHost

template<typename TrackerTraits >
using PixelTrackDumpCUDAT< TrackerTraits >::TrackSoAHost = TrackSoAHeterogeneousHost<TrackerTraits>

Definition at line 30 of file PixelTrackDumpCUDA.cc.

◆ VertexSoADevice

template<typename TrackerTraits >
using PixelTrackDumpCUDAT< TrackerTraits >::VertexSoADevice = ZVertexSoADevice

Definition at line 34 of file PixelTrackDumpCUDA.cc.

◆ VertexSoAHost

template<typename TrackerTraits >
using PixelTrackDumpCUDAT< TrackerTraits >::VertexSoAHost = ZVertexSoAHost

Definition at line 33 of file PixelTrackDumpCUDA.cc.

Constructor & Destructor Documentation

◆ PixelTrackDumpCUDAT()

template<typename TrackerTraits >
PixelTrackDumpCUDAT< TrackerTraits >::PixelTrackDumpCUDAT ( const edm::ParameterSet iConfig)
explicit

Definition at line 51 of file PixelTrackDumpCUDA.cc.

References edm::EDConsumerBase::consumes(), edm::ParameterSet::getParameter(), PixelTrackDumpCUDAT< TrackerTraits >::m_onGPU, PixelTrackDumpCUDAT< TrackerTraits >::tokenGPUTrack_, PixelTrackDumpCUDAT< TrackerTraits >::tokenGPUVertex_, PixelTrackDumpCUDAT< TrackerTraits >::tokenSoATrack_, and PixelTrackDumpCUDAT< TrackerTraits >::tokenSoAVertex_.

52  : m_onGPU(iConfig.getParameter<bool>("onGPU")) {
53  if (m_onGPU) {
54  tokenGPUTrack_ = consumes(iConfig.getParameter<edm::InputTag>("pixelTrackSrc"));
55  tokenGPUVertex_ = consumes(iConfig.getParameter<edm::InputTag>("pixelVertexSrc"));
56  } else {
57  tokenSoATrack_ = consumes(iConfig.getParameter<edm::InputTag>("pixelTrackSrc"));
58  tokenSoAVertex_ = consumes(iConfig.getParameter<edm::InputTag>("pixelVertexSrc"));
59  }
60 }
edm::EDGetTokenT< cms::cuda::Product< TrackSoADevice > > tokenGPUTrack_
T getParameter(std::string const &) const
Definition: ParameterSet.h:307
edm::EDGetTokenT< cms::cuda::Product< VertexSoADevice > > tokenGPUVertex_
edm::EDGetTokenT< TrackSoAHost > tokenSoATrack_
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
edm::EDGetTokenT< VertexSoAHost > tokenSoAVertex_

◆ ~PixelTrackDumpCUDAT()

template<typename TrackerTraits >
PixelTrackDumpCUDAT< TrackerTraits >::~PixelTrackDumpCUDAT ( )
overridedefault

Member Function Documentation

◆ analyze()

template<typename TrackerTraits >
void PixelTrackDumpCUDAT< TrackerTraits >::analyze ( edm::StreamID  streamID,
edm::Event const &  iEvent,
const edm::EventSetup iSetup 
) const
overrideprivatevirtual

Implements edm::global::EDAnalyzerBase.

Definition at line 73 of file PixelTrackDumpCUDA.cc.

References cms::cuda::assert(), iEvent, DiMuonV_cfg::tracks, and AlignmentTracksFromVertexSelector_cfi::vertices.

75  {
76  if (m_onGPU) {
77  auto const& hTracks = iEvent.get(tokenGPUTrack_);
79 
80  auto const& tracks = ctx.get(hTracks);
81  auto const* tsoa = &tracks;
82  assert(tsoa->buffer());
83 
84  auto const& vertices = ctx.get(iEvent.get(tokenGPUVertex_));
85  auto const* vsoa = &vertices;
86  assert(vsoa->buffer());
87 
88  } else {
89  auto const& tsoa = iEvent.get(tokenSoATrack_);
90  assert(tsoa.buffer());
91 
92  auto const& vsoa = iEvent.get(tokenSoAVertex_);
93  assert(vsoa.buffer());
94  }
95 }
edm::EDGetTokenT< cms::cuda::Product< TrackSoADevice > > tokenGPUTrack_
edm::EDGetTokenT< cms::cuda::Product< VertexSoADevice > > tokenGPUVertex_
assert(be >=bs)
edm::EDGetTokenT< TrackSoAHost > tokenSoATrack_
edm::EDGetTokenT< VertexSoAHost > tokenSoAVertex_
int iEvent
Definition: GenABIO.cc:224

◆ fillDescriptions()

template<typename TrackerTraits >
void PixelTrackDumpCUDAT< TrackerTraits >::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 63 of file PixelTrackDumpCUDA.cc.

References edm::ConfigurationDescriptions::addWithDefaultLabel(), submitPVResolutionJobs::desc, and ProducerED_cfi::InputTag.

63  {
65 
66  desc.add<bool>("onGPU", true);
67  desc.add<edm::InputTag>("pixelTrackSrc", edm::InputTag("pixelTracksCUDA"));
68  desc.add<edm::InputTag>("pixelVertexSrc", edm::InputTag("pixelVerticesCUDA"));
69  descriptions.addWithDefaultLabel(desc);
70 }
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)

Member Data Documentation

◆ m_onGPU

template<typename TrackerTraits >
const bool PixelTrackDumpCUDAT< TrackerTraits >::m_onGPU
private

◆ tokenGPUTrack_

template<typename TrackerTraits >
edm::EDGetTokenT<cms::cuda::Product<TrackSoADevice> > PixelTrackDumpCUDAT< TrackerTraits >::tokenGPUTrack_
private

◆ tokenGPUVertex_

template<typename TrackerTraits >
edm::EDGetTokenT<cms::cuda::Product<VertexSoADevice> > PixelTrackDumpCUDAT< TrackerTraits >::tokenGPUVertex_
private

◆ tokenSoATrack_

template<typename TrackerTraits >
edm::EDGetTokenT<TrackSoAHost> PixelTrackDumpCUDAT< TrackerTraits >::tokenSoATrack_
private

◆ tokenSoAVertex_

template<typename TrackerTraits >
edm::EDGetTokenT<VertexSoAHost> PixelTrackDumpCUDAT< TrackerTraits >::tokenSoAVertex_
private