1 import FWCore.ParameterSet.Config
as cms
4 if hasattr(process, pname):
5 process.schedule.remove(getattr(process, pname))
6 delattr(process, pname)
10 process.trackerClusterCheck.PixelClusterCollectionLabel =
'siPixelClustersPreSplitting' 11 process.initialStepSeedLayers.FPix.HitProducer =
'siPixelRecHitsPreSplitting' 12 process.initialStepSeedLayers.BPix.HitProducer =
'siPixelRecHitsPreSplitting' 13 process.initialStepHitQuadruplets.SeedComparitorPSet.clusterShapeCacheSrc =
"siPixelClusterShapeCachePreSplitting" 14 process.initialStepSeeds.SeedComparitorPSet.ClusterShapeCacheSrc =
"siPixelClusterShapeCachePreSplitting" 15 if hasattr(process.initialStepTrackCandidates,
"measurementTrackerEvent"):
17 process.initialStepTrackCandidates.measurementTrackerEvent =
'MeasurementTrackerEventPreSplitting' 18 process.initialStepTrackCandidatesMkFitInput.pixelRecHits =
"siPixelRecHitsPreSplitting" 20 process.initialStepTrackCandidates.MeasurementTrackerEvent =
'MeasurementTrackerEventPreSplitting' 21 process.initialStepTracks.MeasurementTrackerEvent =
'MeasurementTrackerEventPreSplitting' 22 process.iterTrackingTask = cms.Task(process.trackerClusterCheck,
23 process.InitialStepTask)
27 process.cutsRecoTracksInitialStep,
28 process.cutsRecoTracksPt09InitialStep,
29 process.cutsRecoTracksFromPVInitialStep,
30 process.cutsRecoTracksFromPVPt09InitialStep,
32 selector.algorithm = []
34 selector.src =
"initialStepTracks" 35 selector.vertexTag =
"firstStepPrimaryVertices" 37 process.trackingParticleRecoTrackAsssociationPreSplitting = process.trackingParticleRecoTrackAsssociation.clone(
38 label_tr =
"initialStepTracks",
39 associator =
"quickTrackAssociatorByHitsPreSplitting",
41 process.VertexAssociatorByPositionAndTracksPreSplitting = process.VertexAssociatorByPositionAndTracks.clone(
42 trackAssociation =
"trackingParticleRecoTrackAsssociationPreSplitting" 46 def setInput(mtvs, labels):
48 mod = getattr(process, mtv)
50 mod.label_vertex =
"firstStepPrimaryVertices" 51 if mod.UseAssociators.value():
52 mod.associators = [
"quickTrackAssociatorByHitsPreSplitting"]
54 mod.associators = [
"trackingParticleRecoTrackAsssociationPreSplitting"]
55 mod.vertexAssociator =
"VertexAssociatorByPositionAndTracksPreSplitting" 56 mod.trackCollectionForDrCalculation =
"initialStepTracks" 57 mod.dodEdxPlots =
False 58 mod.doResolutionPlotsForLabels = []
60 setInput([
"trackValidatorTrackingOnly",
"trackValidatorAllTPEfficStandalone",
61 "trackValidatorTPPtLess09Standalone",
"trackValidatorBHadronTrackingOnly"],
62 [
"cutsRecoTracksInitialStep",
"cutsRecoTracksPt09InitialStep"])
63 setInput([
"trackValidatorFromPVStandalone",
"trackValidatorFromPVAllTPStandalone"],
64 [
"cutsRecoTracksFromPVInitialStep",
"cutsRecoTracksFromPVPt09InitialStep"])
65 setInput([
"trackValidatorSeedingTrackingOnly"], [
"seedTracksinitialStepSeeds"])
66 setInput([
"trackValidatorBuilding"], [
"initialStepTracks"])
67 process.trackValidatorBuilding.mvaLabels = cms.untracked.PSet(initialStepTracks = cms.untracked.vstring(
'initialStep'))
69 process.tracksPreValidationTrackingOnly = cms.Task(
70 process.cutsRecoTracksInitialStep,
71 process.cutsRecoTracksPt09InitialStep,
72 process.cutsRecoTracksFromPVInitialStep,
73 process.cutsRecoTracksFromPVPt09InitialStep,
74 process.tracksValidationTruth,
75 process.trackingParticlesSignal,
76 process.trackingParticlesBHadron,
77 process.trackingParticleRecoTrackAsssociationPreSplitting,
78 process.VertexAssociatorByPositionAndTracksPreSplitting,
80 process.trackValidatorsTrackingOnly.remove(process.trackValidatorConversionTrackingOnly)
81 process.trackValidatorsTrackingOnly.remove(process.trackValidatorSeedingPreSplittingTrackingOnly)
82 process.trackValidatorsTrackingOnly.remove(process.trackValidatorBuildingPreSplitting)
85 process.globalPrevalidationTrackingOnly.remove(process.vertexValidationTrackingOnly)
100 process.options.wantSummary = cms.untracked.bool(
True)
108 process.RawToDigiTask = cms.Task(
109 process.siPixelDigis,
112 process.reconstruction_trackingOnly = cms.Sequence(
113 process.trackerlocalreco +
114 process.offlineBeamSpot +
115 process.siPixelClusterShapeCachePreSplitting +
116 process.MeasurementTrackerEventPreSplitting,
117 process.iterTrackingTask
119 process.trackerlocalrecoTask.remove(process.clusterSummaryProducer)
120 process.iterTrackingTask.remove(process.ak4CaloJetsForTrk)
121 process.iterTrackingTask.remove(process.caloTowerForTrk)
122 process.iterTrackingTask.remove(process.firstStepPrimaryVertices)
123 process.iterTrackingTask.remove(process.firstStepPrimaryVerticesUnsorted)
124 process.iterTrackingTask.remove(process.initialStepTrackRefsForJets)
125 process.iterTrackingTask.remove(process.initialStepClassifier1)
126 process.iterTrackingTask.remove(process.initialStep)
129 process.out = cms.OutputModule(
"AsciiOutputModule",
130 outputCommands = cms.untracked.vstring(
131 "keep *_initialStepTracks_*_*",
133 verbosity = cms.untracked.uint32(0)
135 process.outPath = cms.EndPath(process.out)
136 process.schedule = cms.Schedule(process.raw2digi_step, process.reconstruction_step, process.outPath)
139 process.MessageLogger.cerr.FwkReport.reportEvery = 100
140 process.MessageLogger.cerr.default.limit = 1
141 process.MessageLogger.suppressWarning.extend([
142 "initialStepTrackCandidatesMkFitInput",
143 "initialStepTrackCandidatesMkFit",
144 "initialStepTrackCandidates",
def customizeInitialStepOnlyNoMTV(process)
def customizeInitialStepOnly(process)
def removePath(process, pname)