Skip to content

Commit

Permalink
add kSiPixelClusterThresholdsDefaultPhase1 and use values by default
Browse files Browse the repository at this point in the history
  • Loading branch information
czangela committed Apr 6, 2021
1 parent 88f26e7 commit 822c264
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@ struct SiPixelClusterThresholds {
const int32_t otherLayers;
};

constexpr SiPixelClusterThresholds kSiPixelClusterThresholdsDefaultPhase1{.layer1 = 2000, .otherLayers = 4000};

#endif // RecoLocalTracker_SiPixelClusterizer_plugins_SiPixelClusterThresholds_h
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ SiPixelDigisClustersFromSoA::SiPixelDigisClustersFromSoA(const edm::ParameterSet
void SiPixelDigisClustersFromSoA::fillDescriptions(edm::ConfigurationDescriptions& descriptions) {
edm::ParameterSetDescription desc;
desc.add<edm::InputTag>("src", edm::InputTag("siPixelDigisSoA"));
desc.add<int>("clusterThreshold_layer1", 2000);
desc.add<int>("clusterThreshold_otherLayers", 4000);
desc.add<int>("clusterThreshold_layer1", kSiPixelClusterThresholdsDefaultPhase1.layer1);
desc.add<int>("clusterThreshold_otherLayers", kSiPixelClusterThresholdsDefaultPhase1.otherLayers);
descriptions.addWithDefaultLabel(desc);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ void SiPixelRawToClusterCUDA::fillDescriptions(edm::ConfigurationDescriptions& d
desc.add<bool>("isRun2", true);
desc.add<bool>("IncludeErrors", true);
desc.add<bool>("UseQualityInfo", false);
desc.add<int32_t>("clusterThreshold_layer1", 2000);
desc.add<int32_t>("clusterThreshold_otherLayers", 4000);
desc.add<int32_t>("clusterThreshold_layer1", kSiPixelClusterThresholdsDefaultPhase1.layer1);
desc.add<int32_t>("clusterThreshold_otherLayers", kSiPixelClusterThresholdsDefaultPhase1.otherLayers);
desc.add<edm::InputTag>("InputLabel", edm::InputTag("rawDataCollector"));
{
edm::ParameterSetDescription psd0;
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 SiPixelClusterThresholds clusterThresholds{2000,4000};
constexpr SiPixelClusterThresholds clusterThresholds(kSiPixelClusterThresholdsDefaultPhase1);

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

0 comments on commit 822c264

Please sign in to comment.