-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace PortableCollection with PortableObject.
- Loading branch information
Showing
8 changed files
with
40 additions
and
44 deletions.
There are no files selected for viewing
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,16 @@ | ||
#ifndef CondFormats_EcalObjects_EcalRecHitParameters_h | ||
#define CondFormats_EcalObjects_EcalRecHitParameters_h | ||
|
||
#include <bitset> | ||
#include <array> | ||
|
||
constexpr size_t kNEcalChannelStatusCodes = 16; // The HW supports 16 channel status codes | ||
using RecoFlagBitsArray = | ||
std::array<uint32_t, kNEcalChannelStatusCodes>; // associate recoFlagBits to all channel status codes | ||
|
||
struct EcalRecHitParameters { | ||
RecoFlagBitsArray recoFlagBits; | ||
std::bitset<kNEcalChannelStatusCodes> channelStatusCodesToBeExcluded; | ||
}; | ||
|
||
#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 |
---|---|---|
@@ -1,11 +1,9 @@ | ||
#ifndef CondFormats_EcalObjects_interface_EcalRecHitParametersHost_h | ||
#define CondFormats_EcalObjects_interface_EcalRecHitParametersHost_h | ||
|
||
#include "CondFormats/EcalObjects/interface/EcalRecHitParametersSoA.h" | ||
#include "DataFormats/Portable/interface/PortableHostCollection.h" | ||
#include "HeterogeneousCore/AlpakaInterface/interface/config.h" | ||
#include "HeterogeneousCore/AlpakaInterface/interface/memory.h" | ||
#include "CondFormats/EcalObjects/interface/EcalRecHitParameters.h" | ||
#include "DataFormats/Portable/interface/PortableHostObject.h" | ||
|
||
using EcalRecHitParametersHost = PortableHostCollection<EcalRecHitParametersSoA>; | ||
using EcalRecHitParametersHost = PortableHostObject<EcalRecHitParameters>; | ||
|
||
#endif |
21 changes: 0 additions & 21 deletions
21
CondFormats/EcalObjects/interface/EcalRecHitParametersSoA.h
This file was deleted.
Oops, something went wrong.
9 changes: 5 additions & 4 deletions
9
CondFormats/EcalObjects/interface/alpaka/EcalRecHitParametersDevice.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 |
---|---|---|
@@ -1,17 +1,18 @@ | ||
#ifndef CondFormats_EcalObjects_interface_alpaka_EcalRecHitParametersDevice_h | ||
#define CondFormats_EcalObjects_interface_alpaka_EcalRecHitParametersDevice_h | ||
|
||
#include "CondFormats/EcalObjects/interface/EcalRecHitParameters.h" | ||
#include "CondFormats/EcalObjects/interface/EcalRecHitParametersHost.h" | ||
#include "CondFormats/EcalObjects/interface/EcalRecHitParametersSoA.h" | ||
#include "DataFormats/Portable/interface/alpaka/PortableCollection.h" | ||
#include "DataFormats/Portable/interface/alpaka/PortableObject.h" | ||
#include "HeterogeneousCore/AlpakaInterface/interface/config.h" | ||
#include "HeterogeneousCore/AlpakaInterface/interface/memory.h" | ||
|
||
namespace ALPAKA_ACCELERATOR_NAMESPACE { | ||
|
||
using ::EcalRecHitParametersHost; | ||
using EcalRecHitParametersDevice = PortableCollection<EcalRecHitParametersSoA>; | ||
using EcalRecHitParametersDevice = PortableObject<EcalRecHitParameters>; | ||
|
||
} // namespace ALPAKA_ACCELERATOR_NAMESPACE | ||
|
||
ASSERT_DEVICE_MATCHES_HOST_COLLECTION(EcalRecHitParametersDevice, EcalRecHitParametersHost); | ||
|
||
#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
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
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