Skip to content

Alpaka Multi-depth particle flow clusterizer #48248

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 17 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#ifndef RecoParticleFlow_PFRecHitProducer_interface_PFMultiDepthClusteringEdgeVarsSoA_h
#define RecoParticleFlow_PFRecHitProducer_interface_PFMultiDepthClusteringEdgeVarsSoA_h

#include "DataFormats/SoATemplate/interface/SoACommon.h"
#include "DataFormats/SoATemplate/interface/SoALayout.h"
#include "DataFormats/SoATemplate/interface/SoAView.h"

namespace reco {

GENERATE_SOA_LAYOUT(PFMultiDepthClusteringEdgeVarsSoALayout,
SOA_COLUMN(int, mdpf_adjacencyIndex), // needs nClusters+1 allocation
SOA_COLUMN(int, mdpf_adjacencyList) // needs 2*nClusters allocation
)

using PFMultiDepthClusteringEdgeVarsSoA = PFMultiDepthClusteringEdgeVarsSoALayout<>;
} // namespace reco

#endif
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#ifndef RecoParticleFlow_PFClusterProducer_interface_PFMultiDepthClusteringVarsSoA_h
#define RecoParticleFlow_PFClusterProducer_interface_PFMultiDepthClusteringVarsSoA_h

#include "DataFormats/SoATemplate/interface/SoACommon.h"
#include "DataFormats/SoATemplate/interface/SoALayout.h"
#include "DataFormats/SoATemplate/interface/SoAView.h"

namespace reco {

GENERATE_SOA_LAYOUT(PFMultiDepthClusteringVarsSoALayout,
SOA_COLUMN(float, depth),
SOA_COLUMN(double, etaRMS2),
SOA_COLUMN(double, phiRMS2),
SOA_COLUMN(float, energy),
SOA_COLUMN(float, eta),
SOA_COLUMN(float, phi),
SOA_COLUMN(int, mdpf_topoId),
SOA_SCALAR(int, size)
)

using PFMultiDepthClusteringVarsSoA = PFMultiDepthClusteringVarsSoALayout<>;
} // namespace reco

#endif
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#ifndef RecoParticleFlow_PFRecHitProducer_interface_alpaka_PFMultiDepthClusteringEdgeVarsDeviceCollection_h
#define RecoParticleFlow_PFRecHitProducer_interface_alpaka_PFMultiDepthClusteringEdgeVarsDeviceCollection_h

#include "DataFormats/Portable/interface/alpaka/PortableCollection.h"
#include "HeterogeneousCore/AlpakaInterface/interface/config.h"

#include "RecoParticleFlow/PFClusterProducer/interface/PFMultiDepthClusteringEdgeVarsSoA.h"

namespace ALPAKA_ACCELERATOR_NAMESPACE::reco {

using PFMultiDepthClusteringEdgeVarsDeviceCollection = PortableCollection<::reco::PFMultiDepthClusteringEdgeVarsSoA>;
// needs 2*nClusters allocation

} // namespace ALPAKA_ACCELERATOR_NAMESPACE::reco

#endif
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#ifndef RecoParticleFlow_PFRecHitProducer_interface_alpaka_PFMultiDepthClusteringVarsDeviceCollection_h
#define RecoParticleFlow_PFRecHitProducer_interface_alpaka_PFMultiDepthClusteringVarsDeviceCollection_h

#include "DataFormats/Portable/interface/alpaka/PortableCollection.h"
#include "HeterogeneousCore/AlpakaInterface/interface/config.h"

#include "RecoParticleFlow/PFClusterProducer/interface/PFMultiDepthClusteringVarsSoA.h"

namespace ALPAKA_ACCELERATOR_NAMESPACE::reco {

using PFMultiDepthClusteringVarsDeviceCollection = PortableCollection<::reco::PFMultiDepthClusteringVarsSoA>;
} // namespace ALPAKA_ACCELERATOR_NAMESPACE::reco

#endif
Loading