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
 
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 &&)=default
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
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
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
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
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< B > consumes (edm::InputTag tag) noexcept
 
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<Transition Tr = Transition::Event>
constexpr auto esConsumes () noexcept
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag) noexcept
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 

Detailed Description

Definition at line 24 of file PixelTrackDumpCUDA.cc.

Constructor & Destructor Documentation

◆ PixelTrackDumpCUDA()

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

Definition at line 40 of file PixelTrackDumpCUDA.cc.

41  : m_onGPU(iConfig.getParameter<bool>("onGPU")) {
42  if (m_onGPU) {
44  consumes<cms::cuda::Product<PixelTrackHeterogeneous>>(iConfig.getParameter<edm::InputTag>("pixelTrackSrc"));
46  consumes<cms::cuda::Product<ZVertexHeterogeneous>>(iConfig.getParameter<edm::InputTag>("pixelVertexSrc"));
47  } else {
48  tokenSoATrack_ = consumes<PixelTrackHeterogeneous>(iConfig.getParameter<edm::InputTag>("pixelTrackSrc"));
49  tokenSoAVertex_ = consumes<ZVertexHeterogeneous>(iConfig.getParameter<edm::InputTag>("pixelVertexSrc"));
50  }
51 }

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

◆ ~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 62 of file PixelTrackDumpCUDA.cc.

64  {
65  if (m_onGPU) {
66  auto const& hTracks = iEvent.get(tokenGPUTrack_);
68 
69  auto const& tracks = ctx.get(hTracks);
70  auto const* tsoa = tracks.get();
71  assert(tsoa);
72 
73  auto const& vertices = ctx.get(iEvent.get(tokenGPUVertex_));
74  auto const* vsoa = vertices.get();
75  assert(vsoa);
76 
77  } else {
78  auto const* tsoa = iEvent.get(tokenSoATrack_).get();
79  assert(tsoa);
80 
81  auto const* vsoa = iEvent.get(tokenSoAVertex_).get();
82  assert(vsoa);
83  }
84 }

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

◆ fillDescriptions()

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

Definition at line 53 of file PixelTrackDumpCUDA.cc.

53  {
55 
56  desc.add<bool>("onGPU", true);
57  desc.add<edm::InputTag>("pixelTrackSrc", edm::InputTag("caHitNtupletCUDA"));
58  desc.add<edm::InputTag>("pixelVertexSrc", edm::InputTag("pixelVertexCUDA"));
59  descriptions.add("pixelTrackDumpCUDA", desc);
60 }

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

Member Data Documentation

◆ m_onGPU

const bool PixelTrackDumpCUDA::m_onGPU
private

Definition at line 33 of file PixelTrackDumpCUDA.cc.

Referenced by analyze(), and PixelTrackDumpCUDA().

◆ tokenGPUTrack_

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

Definition at line 34 of file PixelTrackDumpCUDA.cc.

Referenced by analyze(), and PixelTrackDumpCUDA().

◆ tokenGPUVertex_

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

Definition at line 35 of file PixelTrackDumpCUDA.cc.

Referenced by analyze(), and PixelTrackDumpCUDA().

◆ tokenSoATrack_

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

Definition at line 36 of file PixelTrackDumpCUDA.cc.

Referenced by analyze(), and PixelTrackDumpCUDA().

◆ tokenSoAVertex_

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

Definition at line 37 of file PixelTrackDumpCUDA.cc.

Referenced by analyze(), and PixelTrackDumpCUDA().

PixelTrackDumpCUDA::tokenSoAVertex_
edm::EDGetTokenT< ZVertexHeterogeneous > tokenSoAVertex_
Definition: PixelTrackDumpCUDA.cc:37
cms::cuda::ScopedContextProduce
Definition: ScopedContext.h:149
HLT_FULL_cff.InputTag
InputTag
Definition: HLT_FULL_cff.py:89281
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
cms::cuda::assert
assert(be >=bs)
edm::ConfigurationDescriptions::add
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:57
PixelTrackDumpCUDA::tokenSoATrack_
edm::EDGetTokenT< PixelTrackHeterogeneous > tokenSoATrack_
Definition: PixelTrackDumpCUDA.cc:36
tracks
const uint32_t *__restrict__ const HitContainer *__restrict__ TkSoA *__restrict__ tracks
Definition: CAHitNtupletGeneratorKernelsImpl.h:159
iEvent
int iEvent
Definition: GenABIO.cc:224
PixelTrackDumpCUDA::m_onGPU
const bool m_onGPU
Definition: PixelTrackDumpCUDA.cc:33
PixelTrackDumpCUDA::tokenGPUVertex_
edm::EDGetTokenT< cms::cuda::Product< ZVertexHeterogeneous > > tokenGPUVertex_
Definition: PixelTrackDumpCUDA.cc:35
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
edm::InputTag
Definition: InputTag.h:15
pwdgSkimBPark_cfi.vertices
vertices
Definition: pwdgSkimBPark_cfi.py:7
PixelTrackDumpCUDA::tokenGPUTrack_
edm::EDGetTokenT< cms::cuda::Product< PixelTrackHeterogeneous > > tokenGPUTrack_
Definition: PixelTrackDumpCUDA.cc:34