CMS 3D CMS Logo

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

Public Member Functions

 PixelTrackDumpCUDA (const edm::ParameterSet &iConfig)
 
 ~PixelTrackDumpCUDA () override=default
 
- Public Member Functions inherited from edm::global::EDAnalyzer<>
 EDAnalyzer ()=default
 
 EDAnalyzer (const EDAnalyzer &)=delete
 
const EDAnalyzeroperator= (const EDAnalyzer &)=delete
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
bool wantsInputProcessBlocks () const final
 
bool wantsProcessBlocks () const final
 
bool wantsStreamLuminosityBlocks () const final
 
bool wantsStreamRuns () const 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
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESProxyIndex > 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
 
bool registeredToConsumeMany (TypeID const &, 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::ESRecordsToProxyIndices 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< PixelTrackHeterogeneous > > tokenGPUTrack_
 
edm::EDGetTokenT< cms::cuda::Product< ZVertexHeterogeneous > > tokenGPUVertex_
 
edm::EDGetTokenT< PixelTrackHeterogeneoustokenSoATrack_
 
edm::EDGetTokenT< ZVertexHeterogeneoustokenSoAVertex_
 

Additional Inherited Members

- Public Types inherited from edm::global::EDAnalyzerBase
typedef EDAnalyzerBase ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- 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 ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
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

Definition at line 23 of file PixelTrackDumpCUDA.cc.

Constructor & Destructor Documentation

◆ PixelTrackDumpCUDA()

PixelTrackDumpCUDA::PixelTrackDumpCUDA ( const edm::ParameterSet iConfig)
explicit

Definition at line 39 of file PixelTrackDumpCUDA.cc.

References edm::ParameterSet::getParameter(), m_onGPU, tokenGPUTrack_, tokenGPUVertex_, tokenSoATrack_, and tokenSoAVertex_.

40  : m_onGPU(iConfig.getParameter<bool>("onGPU")) {
41  if (m_onGPU) {
43  consumes<cms::cuda::Product<PixelTrackHeterogeneous>>(iConfig.getParameter<edm::InputTag>("pixelTrackSrc"));
45  consumes<cms::cuda::Product<ZVertexHeterogeneous>>(iConfig.getParameter<edm::InputTag>("pixelVertexSrc"));
46  } else {
47  tokenSoATrack_ = consumes<PixelTrackHeterogeneous>(iConfig.getParameter<edm::InputTag>("pixelTrackSrc"));
48  tokenSoAVertex_ = consumes<ZVertexHeterogeneous>(iConfig.getParameter<edm::InputTag>("pixelVertexSrc"));
49  }
50 }
edm::EDGetTokenT< cms::cuda::Product< ZVertexHeterogeneous > > tokenGPUVertex_
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
edm::EDGetTokenT< ZVertexHeterogeneous > tokenSoAVertex_
edm::EDGetTokenT< PixelTrackHeterogeneous > tokenSoATrack_
edm::EDGetTokenT< cms::cuda::Product< PixelTrackHeterogeneous > > tokenGPUTrack_

◆ ~PixelTrackDumpCUDA()

PixelTrackDumpCUDA::~PixelTrackDumpCUDA ( )
overridedefault

Member Function Documentation

◆ analyze()

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

Implements edm::global::EDAnalyzerBase.

Definition at line 61 of file PixelTrackDumpCUDA.cc.

References cms::cuda::assert(), iEvent, m_onGPU, tokenGPUTrack_, tokenGPUVertex_, tokenSoATrack_, tokenSoAVertex_, tracks, and AlignmentTracksFromVertexSelector_cfi::vertices.

63  {
64  if (m_onGPU) {
65  auto const& hTracks = iEvent.get(tokenGPUTrack_);
67 
68  auto const& tracks = ctx.get(hTracks);
69  auto const* tsoa = tracks.get();
70  assert(tsoa);
71 
72  auto const& vertices = ctx.get(iEvent.get(tokenGPUVertex_));
73  auto const* vsoa = vertices.get();
74  assert(vsoa);
75 
76  } else {
77  auto const* tsoa = iEvent.get(tokenSoATrack_).get();
78  assert(tsoa);
79 
80  auto const* vsoa = iEvent.get(tokenSoAVertex_).get();
81  assert(vsoa);
82  }
83 }
edm::EDGetTokenT< cms::cuda::Product< ZVertexHeterogeneous > > tokenGPUVertex_
assert(be >=bs)
int iEvent
Definition: GenABIO.cc:224
edm::EDGetTokenT< ZVertexHeterogeneous > tokenSoAVertex_
edm::EDGetTokenT< PixelTrackHeterogeneous > tokenSoATrack_
auto const & tracks
cannot be loose
edm::EDGetTokenT< cms::cuda::Product< PixelTrackHeterogeneous > > tokenGPUTrack_

◆ fillDescriptions()

void PixelTrackDumpCUDA::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 52 of file PixelTrackDumpCUDA.cc.

References edm::ConfigurationDescriptions::add(), submitPVResolutionJobs::desc, and HLT_2022v14_cff::InputTag.

52  {
54 
55  desc.add<bool>("onGPU", true);
56  desc.add<edm::InputTag>("pixelTrackSrc", edm::InputTag("pixelTracksCUDA"));
57  desc.add<edm::InputTag>("pixelVertexSrc", edm::InputTag("pixelVerticesCUDA"));
58  descriptions.add("pixelTrackDumpCUDA", desc);
59 }
void add(std::string const &label, ParameterSetDescription const &psetDescription)

Member Data Documentation

◆ m_onGPU

const bool PixelTrackDumpCUDA::m_onGPU
private

Definition at line 32 of file PixelTrackDumpCUDA.cc.

Referenced by analyze(), and PixelTrackDumpCUDA().

◆ tokenGPUTrack_

edm::EDGetTokenT<cms::cuda::Product<PixelTrackHeterogeneous> > PixelTrackDumpCUDA::tokenGPUTrack_
private

Definition at line 33 of file PixelTrackDumpCUDA.cc.

Referenced by analyze(), and PixelTrackDumpCUDA().

◆ tokenGPUVertex_

edm::EDGetTokenT<cms::cuda::Product<ZVertexHeterogeneous> > PixelTrackDumpCUDA::tokenGPUVertex_
private

Definition at line 34 of file PixelTrackDumpCUDA.cc.

Referenced by analyze(), and PixelTrackDumpCUDA().

◆ tokenSoATrack_

edm::EDGetTokenT<PixelTrackHeterogeneous> PixelTrackDumpCUDA::tokenSoATrack_
private

Definition at line 35 of file PixelTrackDumpCUDA.cc.

Referenced by analyze(), and PixelTrackDumpCUDA().

◆ tokenSoAVertex_

edm::EDGetTokenT<ZVertexHeterogeneous> PixelTrackDumpCUDA::tokenSoAVertex_
private

Definition at line 36 of file PixelTrackDumpCUDA.cc.

Referenced by analyze(), and PixelTrackDumpCUDA().