CMS 3D CMS Logo

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

Public Types

using TkSoAHost = TracksHost< TrackerTraits >
 
using VertexSoAHost = ZVertexHost
 
- Public Types inherited from edm::global::EDAnalyzerBase
typedef EDAnalyzerBase ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 

Public Member Functions

 PixelTrackDumpAlpakaT (const edm::ParameterSet &iConfig)
 
 ~PixelTrackDumpAlpakaT () 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

edm::EDGetTokenT< TkSoAHosttokenSoATrack_
 
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 PixelTrackDumpAlpakaT< TrackerTraits >

Definition at line 17 of file PixelTrackDumpAlpaka.cc.

Member Typedef Documentation

◆ TkSoAHost

template<typename TrackerTraits >
using PixelTrackDumpAlpakaT< TrackerTraits >::TkSoAHost = TracksHost<TrackerTraits>

Definition at line 19 of file PixelTrackDumpAlpaka.cc.

◆ VertexSoAHost

template<typename TrackerTraits >
using PixelTrackDumpAlpakaT< TrackerTraits >::VertexSoAHost = ZVertexHost

Definition at line 20 of file PixelTrackDumpAlpaka.cc.

Constructor & Destructor Documentation

◆ PixelTrackDumpAlpakaT()

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

Definition at line 34 of file PixelTrackDumpAlpaka.cc.

References edm::ParameterSet::getParameter().

34  {
35  tokenSoATrack_ = consumes(iConfig.getParameter<edm::InputTag>("pixelTrackSrc"));
36  tokenSoAVertex_ = consumes(iConfig.getParameter<edm::InputTag>("pixelVertexSrc"));
37 }
T getParameter(std::string const &) const
Definition: ParameterSet.h:307
edm::EDGetTokenT< TkSoAHost > tokenSoATrack_
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
edm::EDGetTokenT< VertexSoAHost > tokenSoAVertex_

◆ ~PixelTrackDumpAlpakaT()

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

Member Function Documentation

◆ analyze()

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

Implements edm::global::EDAnalyzerBase.

Definition at line 48 of file PixelTrackDumpAlpaka.cc.

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

50  {
51  auto const& tracks = iEvent.get(tokenSoATrack_);
52  assert(tracks.view().quality());
53  assert(tracks.view().chi2());
54  assert(tracks.view().nLayers());
55  assert(tracks.view().eta());
56  assert(tracks.view().pt());
57  assert(tracks.view().state());
58  assert(tracks.view().covariance());
59  assert(tracks.view().nTracks());
60 
61  auto const& vertices = iEvent.get(tokenSoAVertex_);
62  assert(vertices.view().idv());
63  assert(vertices.view().zv());
64  assert(vertices.view().wv());
65  assert(vertices.view().chi2());
66  assert(vertices.view().ptv2());
67  assert(vertices.view().ndof());
68  assert(vertices.view().sortInd());
69  assert(vertices.view().nvFinal());
70 }
edm::EDGetTokenT< TkSoAHost > tokenSoATrack_
assert(be >=bs)
int iEvent
Definition: GenABIO.cc:224
edm::EDGetTokenT< VertexSoAHost > tokenSoAVertex_

◆ fillDescriptions()

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

Definition at line 40 of file PixelTrackDumpAlpaka.cc.

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

40  {
42  desc.add<edm::InputTag>("pixelTrackSrc", edm::InputTag("pixelTracksAlpaka"));
43  desc.add<edm::InputTag>("pixelVertexSrc", edm::InputTag("pixelVerticesAlpaka"));
44  descriptions.addWithDefaultLabel(desc);
45 }
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)

Member Data Documentation

◆ tokenSoATrack_

template<typename TrackerTraits >
edm::EDGetTokenT<TkSoAHost> PixelTrackDumpAlpakaT< TrackerTraits >::tokenSoATrack_
private

Definition at line 29 of file PixelTrackDumpAlpaka.cc.

◆ tokenSoAVertex_

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

Definition at line 30 of file PixelTrackDumpAlpaka.cc.