Skip to content

Commit 0c04805

Browse files
author
AdrianoDee
committed
Addressing comments
1 parent 1e81347 commit 0c04805

28 files changed

+106
-129
lines changed

CUDADataFormats/SiPixelCluster/interface/gpuClusteringConstants.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@ namespace gpuClustering {
1313
// tested on MC events with 55-75 pileup events
1414
constexpr uint32_t maxHitsInIter() { return 160; } //TODO better tuning for PU 140-200
1515
#endif
16-
constexpr uint32_t maxHitsInModule() { return 2048; }
1716

18-
constexpr uint32_t maxNumDigis = 3 * 256 * 1024; // @PU=200 µ=530 sigma=50k this is >4sigma away
17+
constexpr uint16_t clusterThresholdLayerOne = 2000;
18+
constexpr uint16_t clusterThresholdOtherLayers = 4000;
19+
20+
constexpr uint32_t maxNumDigis = 3 * 256 * 1024; // @PU=200 µ=530 σ=50k this is >4σ away
1921
constexpr uint16_t maxNumModules = 4000;
2022

21-
constexpr int32_t maxNumClustersPerModules = maxHitsInModule();
2223
constexpr uint16_t invalidModuleId = std::numeric_limits<uint16_t>::max() - 1;
2324
constexpr int invalidClusterId = -9999;
2425
static_assert(invalidModuleId > maxNumModules); // invalidModuleId must be > maxNumModules

CUDADataFormats/TrackingRecHit/interface/TrackingRecHitSoADevice.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,5 @@ class TrackingRecHitSoADevice : public cms::cuda::PortableDeviceCollection<Track
7878
using TrackingRecHitSoADevicePhase1 = TrackingRecHitSoADevice<pixelTopology::Phase1>;
7979
using TrackingRecHitSoADevicePhase2 = TrackingRecHitSoADevice<pixelTopology::Phase2>;
8080
using TrackingRecHitSoADeviceHIonPhase1 = TrackingRecHitSoADevice<pixelTopology::HIonPhase1>;
81-
using TrackingRecHitSoADeviceHIonPhase1 = TrackingRecHitSoADevice<pixelTopology::HIonPhase1>;
8281

8382
#endif // CUDADataFormats_Track_TrackHeterogeneousT_H

CUDADataFormats/TrackingRecHit/interface/TrackingRecHitSoAHost.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,5 @@ class TrackingRecHitSoAHost : public cms::cuda::PortableHostCollection<TrackingR
6868
using TrackingRecHitSoAHostPhase1 = TrackingRecHitSoAHost<pixelTopology::Phase1>;
6969
using TrackingRecHitSoAHostPhase2 = TrackingRecHitSoAHost<pixelTopology::Phase2>;
7070
using TrackingRecHitSoAHostHIonPhase1 = TrackingRecHitSoAHost<pixelTopology::HIonPhase1>;
71-
using TrackingRecHitSoAHostHIonPhase1 = TrackingRecHitSoAHost<pixelTopology::HIonPhase1>;
7271

7372
#endif // CUDADataFormats_Track_TrackHeterogeneousT_H

Configuration/PyReleaseValidation/python/relval_gpu.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,8 @@
6767
# data 2023 Patatrack pixel-only triplets: RunJetMET2022D on GPU (optional)
6868
# Patatrack ECAL-only: RunJetMET2022D on GPU (optional)
6969
# Patatrack HCAL-only: RunJetMET2022D on GPU (optional)
70-
7170
workflows[141.008506] = ['Run3-2023_JetMET2023B_RecoPixelOnlyTripletsGPU',['RunJetMET2023B','HLTDR3_2023','RECODR3_reHLT_Patatrack_PixelOnlyTripletsGPU','HARVESTRUN3_pixelTrackingOnly']]
7271
workflows[141.008512] = ['Run3-2023_JetMET2023B_RecoECALOnlyGPU',['RunJetMET2023B','HLTDR3_2023','RECODR3_reHLT_ECALOnlyGPU','HARVESTRUN3_ECALOnly']]
7372
workflows[141.008522] = ['Run3-2023_JetMET2023B_RecoHCALOnlyGPU',['RunJetMET2023B','HLTDR3_2023','RECODR3_reHLT_HCALOnlyGPU','HARVESTRUN3_HCALOnly']]
74-
73+
#2023 HIon MC Patatrack pixel-only quadruplets on HydjetQ_MinBias_5362GeV_2023_ppReco on GPU (optional)
7574
workflows[160.502] = ['',['HydjetQ_MinBias_5362GeV_2023_ppReco','DIGIHI2023PPRECO','RAWPRIMESIMHI18','RECOHI2023PPRECOMB_PatatrackGPU','MINIHI2023PROD']]

Configuration/PyReleaseValidation/python/upgradeWorkflowComponents.py

Lines changed: 3 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1490,37 +1490,6 @@ def setup_(self, step, stepName, stepDict, k, properties):
14901490
offset = 0.597,
14911491
)
14921492

1493-
1494-
class PatatrackWorkflowHI(PatatrackWorkflow):
1495-
1496-
def condition(self, fragment, stepList, key, hasHarvest):
1497-
# select only a subset of the workflows
1498-
selected = [
1499-
('Hydjet_Quenched' in fragment and "PixelOnly" in self.suffix )
1500-
]
1501-
result = any(selected) and hasHarvest
1502-
1503-
return result
1504-
1505-
def setup_(self, step, stepName, stepDict, k, properties):
1506-
# skip ALCA and Nano steps (but not RecoNano or HARVESTNano for Run3)
1507-
if 'ALCA' in step or 'Nano'==step:
1508-
stepDict[stepName][k] = None
1509-
elif 'Digi' in step:
1510-
if self.__digi is None:
1511-
stepDict[stepName][k] = None
1512-
else:
1513-
stepDict[stepName][k] = merge([self.__digi, stepDict[step][k]])
1514-
elif 'Reco' in step:
1515-
if self.__reco is None:
1516-
stepDict[stepName][k] = None
1517-
else:
1518-
stepDict[stepName][k] = merge([self.__reco, stepDict[step][k]])
1519-
elif 'HARVEST' in step:
1520-
if self.__harvest is None:
1521-
stepDict[stepName][k] = None
1522-
else:
1523-
stepDict[stepName][k] = merge([self.__harvest, stepDict[step][k]])
15241493
# end of Patatrack workflows
15251494

15261495
class UpgradeWorkflow_ProdLike(UpgradeWorkflow):
@@ -2439,10 +2408,10 @@ def condition(self, fragment, stepList, key, hasHarvest):
24392408

24402409
class UpgradeWorkflow_DDDDB(UpgradeWorkflow):
24412410
def setup_(self, step, stepName, stepDict, k, properties):
2442-
theEra = stepDict[step][k]['--era']
2443-
if 'Run3' in stepDict[step][k]['--era'] and '2023' not in stepDict[step][k]['--era'] and 'Fast' not in theEra and "Pb" not in theEra:
2411+
the_era = stepDict[step][k]['--era']
2412+
if 'Run3' in the_era and '2023' not in the_era and 'Fast' not in the_era and "Pb" not in the_era:
24442413
# retain any other eras
2445-
tmp_eras = stepDict[step][k]['--era'].split(',')
2414+
tmp_eras = the_era.split(',')
24462415
tmp_eras[tmp_eras.index("Run3")] = 'Run3_DDD'
24472416
tmp_eras = ','.join(tmp_eras)
24482417
stepDict[stepName][k] = merge([{'--conditions': 'auto:phase1_2022_realistic_ddd', '--geometry': 'DB:Extended', '--era': tmp_eras}, stepDict[step][k]])

DQM/SiPixelHeterogeneous/plugins/SiPixelCompareRecHitsSoA.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,6 @@ void SiPixelCompareRecHitsSoA<T>::fillDescriptions(edm::ConfigurationDescription
248248
using SiPixelPhase1CompareRecHitsSoA = SiPixelCompareRecHitsSoA<pixelTopology::Phase1>;
249249
using SiPixelPhase2CompareRecHitsSoA = SiPixelCompareRecHitsSoA<pixelTopology::Phase2>;
250250
using SiPixelHIonPhase1CompareRecHitsSoA = SiPixelCompareRecHitsSoA<pixelTopology::HIonPhase1>;
251-
using SiPixelHIonPhase1CompareRecHitsSoA = SiPixelCompareRecHitsSoA<pixelTopology::HIonPhase1>;
252251

253252
DEFINE_FWK_MODULE(SiPixelPhase1CompareRecHitsSoA);
254253
DEFINE_FWK_MODULE(SiPixelPhase2CompareRecHitsSoA);

DQM/SiPixelHeterogeneous/plugins/SiPixelCompareTrackSoA.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,4 +314,3 @@ using SiPixelHIonPhase1CompareTrackSoA = SiPixelCompareTrackSoA<pixelTopology::H
314314
DEFINE_FWK_MODULE(SiPixelPhase1CompareTrackSoA);
315315
DEFINE_FWK_MODULE(SiPixelPhase2CompareTrackSoA);
316316
DEFINE_FWK_MODULE(SiPixelHIonPhase1CompareTrackSoA);
317-

DQM/SiPixelHeterogeneous/plugins/SiPixelMonitorRecHitsSoA.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,4 +209,3 @@ using SiPixelHIonPhase1MonitorRecHitsSoA = SiPixelMonitorRecHitsSoA<pixelTopolog
209209
DEFINE_FWK_MODULE(SiPixelPhase1MonitorRecHitsSoA);
210210
DEFINE_FWK_MODULE(SiPixelPhase2MonitorRecHitsSoA);
211211
DEFINE_FWK_MODULE(SiPixelHIonPhase1MonitorRecHitsSoA);
212-

DQM/SiPixelHeterogeneous/python/SiPixelHeterogenousDQM_FirstStep_cff.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
2121

2222
_monitorpixelSoARecHitsSourceHIon = cms.Sequence(siPixelHIonPhase1MonitorRecHitsSoA * siPixelHIonPhase1MonitorTrackSoA * siPixelMonitorVertexSoA)
23-
pp_on_AA.toReplaceWith(monitorpixelSoASource, _monitorpixelSoARecHitsSourceHIon)
23+
(pp_on_AA & ~phase2_tracker).toReplaceWith(monitorpixelSoASource, _monitorpixelSoARecHitsSourceHIon)
2424

2525
#Define the sequence for GPU vs CPU validation
2626
#This should run:- individual monitor for the 2 collections + comparison module

Geometry/CommonTopologies/interface/SimplePixelTopology.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,8 @@ namespace phase2PixelTopology {
287287
} // namespace phase2PixelTopology
288288

289289
namespace phase1HIonPixelTopology {
290+
// Storing here the needed constants different w.r.t. pp Phase1 topology.
291+
// All the other defined by inheritance in the HIon topology struct.
290292
using pixelTopology::phi0p09;
291293

292294
constexpr uint32_t maxNumClustersPerModules = 2048;
@@ -540,6 +542,9 @@ namespace pixelTopology {
540542
};
541543

542544
struct HIonPhase1 : public Phase1 {
545+
// Storing here the needed constants different w.r.t. pp Phase1 topology.
546+
// All the other defined by inheritance in the HIon topology struct.
547+
543548
using tindex_type = uint32_t; // for tuples
544549

545550
static constexpr uint32_t maxCellNeighbors = 90;

0 commit comments

Comments
 (0)