-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ECAL portable data formats, collections and conditions for migrat…
…ion to alpaka.
- Loading branch information
Showing
37 changed files
with
495 additions
and
4 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
CondFormats/DataRecord/interface/EcalMultifitConditionsRcd.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#ifndef CondFormats_DataRecord_EcalMultifitConditionsRcd_h | ||
#define CondFormats_DataRecord_EcalMultifitConditionsRcd_h | ||
|
||
#include "FWCore/Framework/interface/DependentRecordImplementation.h" | ||
|
||
#include "CondFormats/DataRecord/interface/EcalGainRatiosRcd.h" | ||
#include "CondFormats/DataRecord/interface/EcalPedestalsRcd.h" | ||
#include "CondFormats/DataRecord/interface/EcalPulseCovariancesRcd.h" | ||
#include "CondFormats/DataRecord/interface/EcalPulseShapesRcd.h" | ||
#include "CondFormats/DataRecord/interface/EcalSampleMaskRcd.h" | ||
#include "CondFormats/DataRecord/interface/EcalSamplesCorrelationRcd.h" | ||
#include "CondFormats/DataRecord/interface/EcalTimeBiasCorrectionsRcd.h" | ||
#include "CondFormats/DataRecord/interface/EcalTimeCalibConstantsRcd.h" | ||
#include "CondFormats/DataRecord/interface/EcalTimeOffsetConstantRcd.h" | ||
|
||
class EcalMultifitConditionsRcd | ||
: public edm::eventsetup::DependentRecordImplementation<EcalMultifitConditionsRcd, | ||
edm::mpl::Vector<EcalGainRatiosRcd, | ||
EcalPedestalsRcd, | ||
EcalPulseCovariancesRcd, | ||
EcalPulseShapesRcd, | ||
EcalSampleMaskRcd, | ||
EcalSamplesCorrelationRcd, | ||
EcalTimeBiasCorrectionsRcd, | ||
EcalTimeCalibConstantsRcd, | ||
EcalTimeOffsetConstantRcd>> {}; | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#include "CondFormats/DataRecord/interface/EcalMultifitConditionsRcd.h" | ||
#include "FWCore/Framework/interface/eventsetuprecord_registration_macro.h" | ||
|
||
EVENTSETUP_RECORD_REG(EcalMultifitConditionsRcd); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
CondFormats/EcalObjects/interface/EcalElectronicsMappingPortable.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#ifndef CondFormats_EcalObjects_interface_EcalElectronicsMappingPortable_h | ||
#define CondFormats_EcalObjects_interface_EcalElectronicsMappingPortable_h | ||
|
||
#include "CondFormats/EcalObjects/interface/EcalElectronicsMappingSoA.h" | ||
#include "DataFormats/Portable/interface/PortableHostCollection.h" | ||
#include "HeterogeneousCore/AlpakaInterface/interface/config.h" | ||
#include "HeterogeneousCore/AlpakaInterface/interface/memory.h" | ||
|
||
using EcalElectronicsMappingPortableHost = PortableHostCollection<EcalElectronicsMappingSoA>; | ||
|
||
#endif |
12 changes: 12 additions & 0 deletions
12
CondFormats/EcalObjects/interface/EcalElectronicsMappingSoA.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#ifndef CondFormats_EcalObjects_EcalElectronicsMappingSoA_h | ||
#define CondFormats_EcalObjects_EcalElectronicsMappingSoA_h | ||
|
||
#include "DataFormats/SoATemplate/interface/SoACommon.h" | ||
#include "DataFormats/SoATemplate/interface/SoALayout.h" | ||
#include "DataFormats/SoATemplate/interface/SoAView.h" | ||
|
||
GENERATE_SOA_LAYOUT(EcalElectronicsMappingSoALayout, SOA_COLUMN(uint32_t, rawid)) | ||
|
||
using EcalElectronicsMappingSoA = EcalElectronicsMappingSoALayout<>; | ||
|
||
#endif |
11 changes: 11 additions & 0 deletions
11
CondFormats/EcalObjects/interface/EcalMultifitConditionsPortable.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#ifndef CondFormats_EcalObjects_interface_EcalMultifitConditionsPortable_h | ||
#define CondFormats_EcalObjects_interface_EcalMultifitConditionsPortable_h | ||
|
||
#include "CondFormats/EcalObjects/interface/EcalMultifitConditionsSoA.h" | ||
#include "DataFormats/Portable/interface/PortableHostCollection.h" | ||
#include "HeterogeneousCore/AlpakaInterface/interface/config.h" | ||
#include "HeterogeneousCore/AlpakaInterface/interface/memory.h" | ||
|
||
using EcalMultifitConditionsPortableHost = PortableHostCollection<EcalMultifitConditionsSoA>; | ||
|
||
#endif |
57 changes: 57 additions & 0 deletions
57
CondFormats/EcalObjects/interface/EcalMultifitConditionsSoA.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
#ifndef CondFormats_EcalObjects_EcalMultifitConditionsSoA_h | ||
#define CondFormats_EcalObjects_EcalMultifitConditionsSoA_h | ||
|
||
#include <Eigen/Dense> | ||
#include "DataFormats/SoATemplate/interface/SoACommon.h" | ||
#include "DataFormats/SoATemplate/interface/SoALayout.h" | ||
#include "DataFormats/SoATemplate/interface/SoAView.h" | ||
#include "DataFormats/EcalDigi/interface/EcalConstants.h" | ||
#include "CondFormats/EcalObjects/interface/EcalPulseShapes.h" | ||
|
||
using PulseShapeArray = std::array<float, EcalPulseShape::TEMPLATESAMPLES>; | ||
using SampleCorrelationArray = std::array<double, ecalPh1::sampleSize>; | ||
|
||
using CovarianceMatrix = Eigen::Matrix<float, EcalPulseShape::TEMPLATESAMPLES, EcalPulseShape::TEMPLATESAMPLES>; | ||
|
||
constexpr size_t N_TIMEBIASCORRECTIONS_BINS_EB = 71; | ||
constexpr size_t N_TIMEBIASCORRECTIONS_BINS_EE = 58; | ||
using TimeBiasCorrArrayEB = std::array<float, N_TIMEBIASCORRECTIONS_BINS_EB>; | ||
using TimeBiasCorrArrayEE = std::array<float, N_TIMEBIASCORRECTIONS_BINS_EE>; | ||
|
||
GENERATE_SOA_LAYOUT(EcalMultifitConditionsSoALayout, | ||
SOA_COLUMN(uint32_t, rawid), | ||
SOA_COLUMN(float, pedestals_mean_x12), | ||
SOA_COLUMN(float, pedestals_mean_x6), | ||
SOA_COLUMN(float, pedestals_mean_x1), | ||
SOA_COLUMN(float, pedestals_rms_x12), | ||
SOA_COLUMN(float, pedestals_rms_x6), | ||
SOA_COLUMN(float, pedestals_rms_x1), | ||
SOA_COLUMN(PulseShapeArray, pulseShapes), | ||
// NxN N=templatesamples for each xtal | ||
SOA_EIGEN_COLUMN(CovarianceMatrix, pulseCovariance), | ||
SOA_COLUMN(float, gain12Over6), | ||
SOA_COLUMN(float, gain6Over1), | ||
SOA_COLUMN(float, timeCalibConstants), | ||
// timeBiasCorrections (fixed since 2011) | ||
SOA_SCALAR(TimeBiasCorrArrayEB, timeBiasCorrections_amplitude_EB), | ||
SOA_SCALAR(TimeBiasCorrArrayEB, timeBiasCorrections_shift_EB), | ||
SOA_SCALAR(TimeBiasCorrArrayEE, timeBiasCorrections_amplitude_EE), | ||
SOA_SCALAR(TimeBiasCorrArrayEE, timeBiasCorrections_shift_EE), | ||
// Sample correlation scalar: array of 10 values for each gain in EB and EE | ||
SOA_SCALAR(SampleCorrelationArray, sampleCorrelation_EB_G12), | ||
SOA_SCALAR(SampleCorrelationArray, sampleCorrelation_EB_G6), | ||
SOA_SCALAR(SampleCorrelationArray, sampleCorrelation_EB_G1), | ||
SOA_SCALAR(SampleCorrelationArray, sampleCorrelation_EE_G12), | ||
SOA_SCALAR(SampleCorrelationArray, sampleCorrelation_EE_G6), | ||
SOA_SCALAR(SampleCorrelationArray, sampleCorrelation_EE_G1), | ||
// Samples Masks | ||
SOA_SCALAR(unsigned int, sampleMask_EB), | ||
SOA_SCALAR(unsigned int, sampleMask_EE), | ||
SOA_SCALAR(float, timeOffset_EB), | ||
SOA_SCALAR(float, timeOffset_EE), | ||
// offset for hashed ID access to EE items of columns | ||
SOA_SCALAR(uint32_t, offsetEE)) | ||
|
||
using EcalMultifitConditionsSoA = EcalMultifitConditionsSoALayout<>; | ||
|
||
#endif |
17 changes: 17 additions & 0 deletions
17
CondFormats/EcalObjects/interface/alpaka/EcalElectronicsMappingPortable.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#ifndef CondFormats_EcalObjects_interface_alpaka_EcalElectronicsMappingPortable_h | ||
#define CondFormats_EcalObjects_interface_alpaka_EcalElectronicsMappingPortable_h | ||
|
||
#include "CondFormats/EcalObjects/interface/EcalElectronicsMappingPortable.h" | ||
#include "CondFormats/EcalObjects/interface/EcalElectronicsMappingSoA.h" | ||
#include "DataFormats/Portable/interface/alpaka/PortableCollection.h" | ||
#include "HeterogeneousCore/AlpakaInterface/interface/config.h" | ||
#include "HeterogeneousCore/AlpakaInterface/interface/memory.h" | ||
|
||
namespace ALPAKA_ACCELERATOR_NAMESPACE { | ||
|
||
using EcalElectronicsMappingPortableHost = EcalElectronicsMappingPortableHost; | ||
using EcalElectronicsMappingPortableDevice = PortableCollection<EcalElectronicsMappingSoA>; | ||
|
||
} // namespace ALPAKA_ACCELERATOR_NAMESPACE | ||
|
||
#endif |
17 changes: 17 additions & 0 deletions
17
CondFormats/EcalObjects/interface/alpaka/EcalMultifitConditionsPortable.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#ifndef CondFormats_EcalObjects_interface_alpaka_EcalMultifitConditionsPortable_h | ||
#define CondFormats_EcalObjects_interface_alpaka_EcalMultifitConditionsPortable_h | ||
|
||
#include "CondFormats/EcalObjects/interface/EcalMultifitConditionsPortable.h" | ||
#include "CondFormats/EcalObjects/interface/EcalMultifitConditionsSoA.h" | ||
#include "DataFormats/Portable/interface/alpaka/PortableCollection.h" | ||
#include "HeterogeneousCore/AlpakaInterface/interface/config.h" | ||
#include "HeterogeneousCore/AlpakaInterface/interface/memory.h" | ||
|
||
namespace ALPAKA_ACCELERATOR_NAMESPACE { | ||
|
||
using ::EcalMultifitConditionsPortableHost; | ||
using EcalMultifitConditionsPortableDevice = PortableCollection<EcalMultifitConditionsSoA>; | ||
|
||
} // namespace ALPAKA_ACCELERATOR_NAMESPACE | ||
|
||
#endif |
4 changes: 4 additions & 0 deletions
4
CondFormats/EcalObjects/src/ES_EcalElectronicsMappingPortable.cc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#include "CondFormats/EcalObjects/interface/EcalElectronicsMappingPortable.h" | ||
#include "FWCore/Utilities/interface/typelookup.h" | ||
|
||
TYPELOOKUP_DATA_REG(EcalElectronicsMappingPortableHost); |
4 changes: 4 additions & 0 deletions
4
CondFormats/EcalObjects/src/ES_EcalMultifitConditionsPortable.cc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#include "CondFormats/EcalObjects/interface/EcalMultifitConditionsPortable.h" | ||
#include "FWCore/Utilities/interface/typelookup.h" | ||
|
||
TYPELOOKUP_DATA_REG(EcalMultifitConditionsPortableHost); |
4 changes: 4 additions & 0 deletions
4
CondFormats/EcalObjects/src/alpaka/ES_EcalElectronicsMappingPortable.cc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#include "HeterogeneousCore/AlpakaCore/interface/alpaka/typelookup.h" | ||
|
||
#include "CondFormats/EcalObjects/interface/alpaka/EcalElectronicsMappingPortable.h" | ||
TYPELOOKUP_ALPAKA_DATA_REG(EcalElectronicsMappingPortableDevice); |
4 changes: 4 additions & 0 deletions
4
CondFormats/EcalObjects/src/alpaka/ES_EcalMultifitConditionsPortable.cc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#include "HeterogeneousCore/AlpakaCore/interface/alpaka/typelookup.h" | ||
|
||
#include "CondFormats/EcalObjects/interface/alpaka/EcalMultifitConditionsPortable.h" | ||
TYPELOOKUP_ALPAKA_DATA_REG(EcalMultifitConditionsPortableDevice); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
<use name="DataFormats/Common"/> | ||
<use name="DataFormats/EcalDetId"/> | ||
<use name="DataFormats/DetId"/> | ||
<use name="DataFormats/EcalDetId"/> | ||
<use name="DataFormats/Portable"/> | ||
<use name="DataFormats/SoATemplate"/> | ||
<use name="FWCore/MessageLogger"/> | ||
<use name="FWCore/Utilities"/> | ||
<use name="HeterogeneousCore/AlpakaInterface"/> | ||
<flags ALPAKA_BACKENDS="cuda rocm"/> | ||
<export> | ||
<lib name="1"/> | ||
</export> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#ifndef DataFormats_EcalDigi_EcalDigiHostCollection_h | ||
#define DataFormats_EcalDigi_EcalDigiHostCollection_h | ||
|
||
#include "DataFormats/Portable/interface/PortableHostCollection.h" | ||
#include "DataFormats/EcalDigi/interface/EcalDigiSoA.h" | ||
|
||
namespace ecal { | ||
|
||
// EcalDigiSoA in host memory | ||
using DigiHostCollection = PortableHostCollection<EcalDigiSoA>; | ||
} // namespace ecal | ||
|
||
#endif |
13 changes: 13 additions & 0 deletions
13
DataFormats/EcalDigi/interface/EcalDigiPhase2HostCollection.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#ifndef DataFormats_EcalDigi_EcalDigiPhase2HostCollection_h | ||
#define DataFormats_EcalDigi_EcalDigiPhase2HostCollection_h | ||
|
||
#include "DataFormats/Portable/interface/PortableHostCollection.h" | ||
#include "DataFormats/EcalDigi/interface/EcalDigiPhase2SoA.h" | ||
|
||
namespace ecal { | ||
|
||
// EcalDigiPhase2SoA in host memory | ||
using DigiPhase2HostCollection = PortableHostCollection<EcalDigiPhase2SoA>; | ||
} // namespace ecal | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#ifndef DataFormats_EcalDigi_EcalDigiPhase2SoA_h | ||
#define DataFormats_EcalDigi_EcalDigiPhase2SoA_h | ||
|
||
#include "DataFormats/EcalDigi/interface/EcalConstants.h" | ||
#include "DataFormats/SoATemplate/interface/SoALayout.h" | ||
|
||
namespace ecal { | ||
|
||
// due to a ROOT limitation the std::array needs to be wrapped in a struct | ||
// https://github.com/root-project/root/issues/12007 | ||
using DataArrayPhase2Struct = StdArrayStruct<uint16_t, ecalPh2::sampleSize>; | ||
|
||
GENERATE_SOA_LAYOUT(EcalDigiPhase2SoALayout, | ||
SOA_COLUMN(uint32_t, id), | ||
SOA_COLUMN(DataArrayPhase2Struct, data), | ||
SOA_SCALAR(uint32_t, size)) | ||
|
||
using EcalDigiPhase2SoA = EcalDigiPhase2SoALayout<>; | ||
} // namespace ecal | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#ifndef DataFormats_EcalDigi_EcalDigiSoA_h | ||
#define DataFormats_EcalDigi_EcalDigiSoA_h | ||
|
||
#include "DataFormats/EcalDigi/interface/EcalConstants.h" | ||
#include "DataFormats/SoATemplate/interface/SoALayout.h" | ||
|
||
namespace ecal { | ||
|
||
// due to a ROOT limitation the std::array needs to be wrapped in a struct | ||
// https://github.com/root-project/root/issues/12007 | ||
using DataArrayStruct = StdArrayStruct<uint16_t, ecalPh1::sampleSize>; | ||
|
||
GENERATE_SOA_LAYOUT(EcalDigiSoALayout, | ||
SOA_COLUMN(uint32_t, id), | ||
SOA_COLUMN(DataArrayStruct, data), | ||
SOA_SCALAR(uint32_t, size)) | ||
|
||
using EcalDigiSoA = EcalDigiSoALayout<>; | ||
} // namespace ecal | ||
|
||
#endif |
22 changes: 22 additions & 0 deletions
22
DataFormats/EcalDigi/interface/alpaka/EcalDigiDeviceCollection.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#ifndef DataFormats_EcalDigi_interface_alpaka_EcalDigiDeviceCollection_h | ||
#define DataFormats_EcalDigi_interface_alpaka_EcalDigiDeviceCollection_h | ||
|
||
#include "DataFormats/Portable/interface/alpaka/PortableCollection.h" | ||
#include "DataFormats/EcalDigi/interface/EcalDigiSoA.h" | ||
#include "HeterogeneousCore/AlpakaInterface/interface/config.h" | ||
|
||
namespace ALPAKA_ACCELERATOR_NAMESPACE { | ||
|
||
namespace ecal { | ||
|
||
// make the names from the top-level ecal namespace visible for unqualified lookup | ||
// inside the ALPAKA_ACCELERATOR_NAMESPACE::portabletest namespace | ||
using namespace ::ecal; | ||
|
||
// EcalDigiSoA in device global memory | ||
using DigiDeviceCollection = PortableCollection<EcalDigiSoA>; | ||
} // namespace ecal | ||
|
||
} // namespace ALPAKA_ACCELERATOR_NAMESPACE | ||
|
||
#endif |
22 changes: 22 additions & 0 deletions
22
DataFormats/EcalDigi/interface/alpaka/EcalDigiPhase2DeviceCollection.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#ifndef DataFormats_EcalDigi_interface_alpaka_EcalDigiPhase2DeviceCollection_h | ||
#define DataFormats_EcalDigi_interface_alpaka_EcalDigiPhase2DeviceCollection_h | ||
|
||
#include "DataFormats/Portable/interface/alpaka/PortableCollection.h" | ||
#include "DataFormats/EcalDigi/interface/EcalDigiPhase2SoA.h" | ||
#include "HeterogeneousCore/AlpakaInterface/interface/config.h" | ||
|
||
namespace ALPAKA_ACCELERATOR_NAMESPACE { | ||
|
||
namespace ecal { | ||
|
||
// make the names from the top-level ecal namespace visible for unqualified lookup | ||
// inside the ALPAKA_ACCELERATOR_NAMESPACE::portabletest namespace | ||
using namespace ::ecal; | ||
|
||
// EcalDigiPhase2SoA in device global memory | ||
using DigiPhase2DeviceCollection = PortableCollection<EcalDigiPhase2SoA>; | ||
} // namespace ecal | ||
|
||
} // namespace ALPAKA_ACCELERATOR_NAMESPACE | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#include "DataFormats/Common/interface/DeviceProduct.h" | ||
#include "DataFormats/Common/interface/Wrapper.h" | ||
#include "DataFormats/EcalDigi/interface/EcalDigiSoA.h" | ||
#include "DataFormats/EcalDigi/interface/alpaka/EcalDigiDeviceCollection.h" | ||
#include "DataFormats/EcalDigi/interface/EcalDigiPhase2SoA.h" | ||
#include "DataFormats/EcalDigi/interface/alpaka/EcalDigiPhase2DeviceCollection.h" |
Oops, something went wrong.