Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

customiser for alpaka patatrack pixel seeding for phase2 #45508

Merged
merged 1 commit into from
Sep 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import FWCore.ParameterSet.Config as cms

def _addProcessPixelCPEFastParamsPhase2(process):
process.hltESPPixelCPEFastParamsPhase2 = cms.ESProducer('PixelCPEFastParamsESProducerAlpakaPhase2@alpaka',
ComponentName = cms.string("PixelCPEFastParamsPhase2"),
appendToDataLabel = cms.string(''),
alpaka = cms.untracked.PSet(backend = cms.untracked.string('')
)
)

from Configuration.ProcessModifiers.alpaka_cff import alpaka
modifyConfigurationForAlpakaPixelCPEFastParamsPhase2_ = alpaka.makeProcessModifier(_addProcessPixelCPEFastParamsPhase2)
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import FWCore.ParameterSet.Config as cms

def _addProcessSiPixelCablingAlpaka(process):
process.hltESPSiPixelCablingSoA = cms.ESProducer('SiPixelCablingSoAESProducer@alpaka',
CablingMapLabel = cms.string(''),
UseQualityInfo = cms.bool(False),
appendToDataLabel = cms.string(''),
alpaka = cms.untracked.PSet(backend = cms.untracked.string(''))
)

from Configuration.ProcessModifiers.alpaka_cff import alpaka
modifyConfigurationForAlpakaSiPixelCabling_ = alpaka.makeProcessModifier(_addProcessSiPixelCablingAlpaka)
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import FWCore.ParameterSet.Config as cms

def _addProcessSiPixelGainCalibrationAlpaka(process):
process.hltESPSiPixelGainCalibrationForHLTSoA = cms.ESProducer('SiPixelGainCalibrationForHLTSoAESProducer@alpaka',
appendToDataLabel = cms.string(''),
alpaka = cms.untracked.PSet(backend = cms.untracked.string(''))
)

from Configuration.ProcessModifiers.alpaka_cff import alpaka
modifyConfigurationForAlpakaSiPixelGainCalibration_ = alpaka.makeProcessModifier(_addProcessSiPixelGainCalibrationAlpaka)
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import FWCore.ParameterSet.Config as cms

hltPhase2OnlineBeamSpotDevice = cms.EDProducer('BeamSpotDeviceProducer@alpaka',
src = cms.InputTag('hltOnlineBeamSpot'),
alpaka = cms.untracked.PSet(backend = cms.untracked.string(''))
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import FWCore.ParameterSet.Config as cms

hltPhase2PixelTracksSoA = cms.EDProducer('CAHitNtupletAlpakaPhase2@alpaka',
pixelRecHitSrc = cms.InputTag('hltPhase2SiPixelRecHitsSoA'),
CPE = cms.string('PixelCPEFastParamsPhase2'),
ptmin = cms.double(0.9),
CAThetaCutBarrel = cms.double(0.002),
CAThetaCutForward = cms.double(0.003),
hardCurvCut = cms.double(0.0328407225),
dcaCutInnerTriplet = cms.double(0.15),
dcaCutOuterTriplet = cms.double(0.25),
earlyFishbone = cms.bool(True),
lateFishbone = cms.bool(False),
fillStatistics = cms.bool(False),
minHitsPerNtuplet = cms.uint32(4),
phiCuts = cms.vint32(
522, 522, 522, 626, 730, 730, 626, 730, 730, 522, 522,
522, 522, 522, 522, 522, 522, 522, 522, 522, 522, 522,
522, 522, 522, 522, 522, 522, 522, 730, 730, 730, 730,
730, 730, 730, 730, 730, 730, 730, 730, 730, 730, 730,
730, 730, 730, 522, 522, 522, 522, 522, 522, 522, 522
),
maxNumberOfDoublets = cms.uint32(5*512*1024),
minHitsForSharingCut = cms.uint32(10),
fitNas4 = cms.bool(False),
doClusterCut = cms.bool(True),
doZ0Cut = cms.bool(True),
doPtCut = cms.bool(True),
useRiemannFit = cms.bool(False),
doSharedHitCut = cms.bool(True),
dupPassThrough = cms.bool(False),
useSimpleTripletCleaner = cms.bool(True),
idealConditions = cms.bool(False),
includeJumpingForwardDoublets = cms.bool(True),
trackQualityCuts = cms.PSet(
maxChi2 = cms.double(5.0),
minPt = cms.double(0.9),
maxTip = cms.double(0.3),
maxZip = cms.double(12.),
),
# autoselect the alpaka backend
alpaka = cms.untracked.PSet(backend = cms.untracked.string(''))
)
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,13 @@
mightGet = cms.optional.untracked.vstring,
passLabel = cms.string('hltPhase2PixelTracks')
)

from Configuration.ProcessModifiers.alpaka_cff import alpaka
_hltPhase2PixelTracks = cms.EDProducer("PixelTrackProducerFromSoAAlpakaPhase2",
beamSpot = cms.InputTag("hltOnlineBeamSpot"),
minNumberOfHits = cms.int32(0),
minQuality = cms.string('tight'),
pixelRecHitLegacySrc = cms.InputTag("hltSiPixelRecHits"),
trackSrc = cms.InputTag("hltPhase2PixelTracksSoA")
)
alpaka.toReplaceWith(hltPhase2PixelTracks, _hltPhase2PixelTracks)
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import FWCore.ParameterSet.Config as cms

hltPhase2SiPixelClustersSoA = cms.EDProducer("SiPixelPhase2DigiToCluster@alpaka",
# autoselect the alpaka backend
alpaka = cms.untracked.PSet(backend = cms.untracked.string(''))
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import FWCore.ParameterSet.Config as cms

hltPhase2SiPixelRecHitsSoA = cms.EDProducer('SiPixelRecHitAlpakaPhase2@alpaka',
beamSpot = cms.InputTag('hltPhase2OnlineBeamSpotDevice'),
src = cms.InputTag('hltPhase2SiPixelClustersSoA'),
CPE = cms.string('PixelCPEFastParamsPhase2'),
mightGet = cms.optional.untracked.vstring,
# autoselect the alpaka backend
alpaka = cms.untracked.PSet(backend = cms.untracked.string(''))
)
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,13 @@
payloadType = cms.string('None'),
src = cms.InputTag("simSiPixelDigis","Pixel")
)

from Configuration.ProcessModifiers.alpaka_cff import alpaka
_hltSiPixelClusters = cms.EDProducer('SiPixelDigisClustersFromSoAAlpakaPhase2',
src = cms.InputTag('hltPhase2SiPixelClustersSoA'),
clusterThreshold_layer1 = cms.int32(4000),
clusterThreshold_otherLayers = cms.int32(4000),
produceDigis = cms.bool(False),
storeDigis = cms.bool(False)
)
alpaka.toReplaceWith(hltSiPixelClusters, _hltSiPixelClusters)
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,9 @@
VerboseLevel = cms.untracked.int32(0),
src = cms.InputTag("hltSiPixelClusters")
)

from Configuration.ProcessModifiers.alpaka_cff import alpaka
alpaka.toReplaceWith(hltSiPixelRecHits, cms.EDProducer('SiPixelRecHitFromSoAAlpakaPhase2',
pixelRecHitSrc = cms.InputTag('hltPhase2SiPixelRecHitsSoA'),
src = cms.InputTag('hltSiPixelClusters'),
))
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,11 @@
from ..modules.hltOnlineBeamSpot_cfi import *

HLTBeamSpotSequence = cms.Sequence(hltOnlineBeamSpot)

from Configuration.ProcessModifiers.alpaka_cff import alpaka
from ..modules.hltPhase2OnlineBeamSpotDevice_cfi import hltPhase2OnlineBeamSpotDevice
_HLTBeamSpotSequence = cms.Sequence(
hltOnlineBeamSpot
+hltPhase2OnlineBeamSpotDevice
)
alpaka.toReplaceWith(HLTBeamSpotSequence, _HLTBeamSpotSequence)
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,17 @@
from ..modules.hltSiPixelRecHits_cfi import *

HLTDoLocalPixelSequence = cms.Sequence(hltSiPixelClusters+hltSiPixelRecHits)

from ..modules.hltPhase2SiPixelClustersSoA_cfi import hltPhase2SiPixelClustersSoA
from ..modules.hltPhase2SiPixelRecHitsSoA_cfi import hltPhase2SiPixelRecHitsSoA
from ..modules.hltSiPixelClusterShapeCache_cfi import hltSiPixelClusterShapeCache
_HLTDoLocalPixelSequence = cms.Sequence(
hltPhase2SiPixelClustersSoA
+hltSiPixelClusters
+hltSiPixelClusterShapeCache # should we disable this? Still needed by tracker muons
+hltPhase2SiPixelRecHitsSoA
+hltSiPixelRecHits
)

from Configuration.ProcessModifiers.alpaka_cff import alpaka
alpaka.toReplaceWith(HLTDoLocalPixelSequence, _HLTDoLocalPixelSequence)
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,10 @@
from ..modules.hltSiPixelRecHits_cfi import *

HLTItLocalRecoSequence = cms.Sequence(hltSiPhase2Clusters+hltSiPixelClusters+hltSiPixelClusterShapeCache+hltSiPixelRecHits)

from ..sequences.HLTDoLocalPixelSequence_cfi import *
from ..sequences.HLTDoLocalStripSequence_cfi import *
_HLTItLocalRecoSequence = cms.Sequence(HLTDoLocalPixelSequence+HLTDoLocalStripSequence)

from Configuration.ProcessModifiers.alpaka_cff import alpaka
alpaka.toReplaceWith(HLTItLocalRecoSequence, _HLTItLocalRecoSequence)
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,15 @@
from ..modules.hltPhase2PixelTracksSeedLayers_cfi import *

HLTPhase2PixelTracksSequence = cms.Sequence(hltPhase2PixelTracksSeedLayers+hltPhase2PixelTracksAndHighPtStepTrackingRegions+hltPhase2PixelTracksHitDoublets+hltPhase2PixelTracksHitSeeds+hltPhase2PixelFitterByHelixProjections+hltPhase2PixelTrackFilterByKinematics+hltPhase2PixelTracks)
from ..sequences.HLTBeamSpotSequence_cfi import HLTBeamSpotSequence
from ..modules.hltPhase2PixelTracksSoA_cfi import hltPhase2PixelTracksSoA
_HLTPhase2PixelTracksSequence = cms.Sequence(
HLTBeamSpotSequence
+hltPhase2PixelTracksAndHighPtStepTrackingRegions # needed by highPtTripletStep iteration
+hltPhase2PixelFitterByHelixProjections # needed by tracker muons
+hltPhase2PixelTrackFilterByKinematics # needed by tracker muons
+hltPhase2PixelTracksSoA
+hltPhase2PixelTracks
)
from Configuration.ProcessModifiers.alpaka_cff import alpaka
alpaka.toReplaceWith(HLTPhase2PixelTracksSequence, _HLTPhase2PixelTracksSequence)
5 changes: 5 additions & 0 deletions HLTrigger/Configuration/python/HLT_75e33_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
fragment = cms.ProcessFragment("HLT")

### Non HLT-specific event-setups
fragment.load("Configuration/StandardSequences/Accelerators_cff")
fragment.load("CalibMuon/CSCCalibration/CSCChannelMapper_cfi")
fragment.load("CalibMuon/CSCCalibration/CSCIndexer_cfi")
fragment.load("RecoHGCal/TICL/tracksterSelectionTf_cfi")
Expand Down Expand Up @@ -91,6 +92,10 @@

fragment.load("HLTrigger/Configuration/HLT_75e33/eventsetup/trackdnn_source_cfi")

fragment.load("HLTrigger/Configuration/HLT_75e33/eventsetup/hltESPPixelCPEFastParams_cfi")
fragment.load("HLTrigger/Configuration/HLT_75e33/eventsetup/hltESPSiPixelCablingSoA_cfi")
fragment.load("HLTrigger/Configuration/HLT_75e33/eventsetup/hltESPSiPixelGainCalibrationForHLTSoA_cfi")

fragment.load("HLTrigger/Configuration/HLT_75e33/paths/HLT_AK4PFPuppiJet520_cfi")
fragment.load("HLTrigger/Configuration/HLT_75e33/paths/HLT_Diphoton30_23_IsoCaloId_L1Seeded_cfi")
fragment.load("HLTrigger/Configuration/HLT_75e33/paths/HLT_Diphoton30_23_IsoCaloId_Unseeded_cfi")
Expand Down