Skip to content

Commit

Permalink
Use brace initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
czangela committed Mar 24, 2021
1 parent f8e485c commit 19eab76
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
#define RecoLocalTracker_SiPixelClusterizer_interface_GPUClusterThresholds_h

struct GPUClusterThresholds {
constexpr GPUClusterThresholds(int32_t clusterThreshold_L1, int32_t clusterThreshold)
: layer1(clusterThreshold_L1), otherLayers(clusterThreshold){};
const int32_t layer1; // Cluster threshold in electrons for Layer 1
const int32_t otherLayers; // Cluster threshold in electrons
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ SiPixelRawToClusterCUDA::SiPixelRawToClusterCUDA(const edm::ParameterSet& iConfi
isRun2_(iConfig.getParameter<bool>("isRun2")),
includeErrors_(iConfig.getParameter<bool>("IncludeErrors")),
useQuality_(iConfig.getParameter<bool>("UseQualityInfo")),
clusterThresholds_(iConfig.getParameter<int32_t>("theGPUClusterThreshold_L1"),
iConfig.getParameter<int32_t>("theGPUClusterThreshold")) {
clusterThresholds_{iConfig.getParameter<int32_t>("theGPUClusterThreshold_L1"),
iConfig.getParameter<int32_t>("theGPUClusterThreshold")} {
if (includeErrors_) {
digiErrorPutToken_ = produces<cms::cuda::Product<SiPixelDigiErrorsCUDA>>();
}
Expand Down
2 changes: 1 addition & 1 deletion RecoLocalTracker/SiPixelClusterizer/test/gpuClustering_t.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ int main(void) {
using namespace gpuClustering;

constexpr int numElements = 256 * maxNumModules;
constexpr GPUClusterThresholds clusterThresholds(2000, 4000);
constexpr GPUClusterThresholds clusterThresholds{2000, 4000};

// these in reality are already on GPU
auto h_id = std::make_unique<uint16_t[]>(numElements);
Expand Down

0 comments on commit 19eab76

Please sign in to comment.