CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
customizeForClusterSplitting Namespace Reference

Functions

def customizeForClusterSplitting
 

Function Documentation

def customizeForClusterSplitting.customizeForClusterSplitting (   process)

Definition at line 3 of file customizeForClusterSplitting.py.

3 
5  process.load('RecoLocalTracker.SubCollectionProducers.jetCoreClusterSplitter_cfi')
6  clustersTmp = 'siPixelClustersPreSplitting'
7  # 0. Produce tmp clusters in the first place.
8  process.siPixelClustersPreSplitting = process.siPixelClusters.clone()
9  process.siPixelRecHitsPreSplitting = process.siPixelRecHits.clone()
10  process.siPixelRecHitsPreSplitting.src = clustersTmp
11  process.pixeltrackerlocalreco.replace(process.siPixelClusters, process.siPixelClustersPreSplitting)
12  process.pixeltrackerlocalreco.replace(process.siPixelRecHits, process.siPixelRecHitsPreSplitting)
13  process.clusterSummaryProducer.pixelClusters = clustersTmp
14 
15  # 0.5 Feed them to MTE and PixelClusterShapeCache
16 
17  process.MeasurementTrackerEventPreSplitting = process.MeasurementTrackerEvent.clone()
18  process.MeasurementTrackerEventPreSplitting.pixelClusterProducer = clustersTmp
19  process.siPixelClusterShapeCachePreSplitting = process.siPixelClusterShapeCache.clone()
20  process.siPixelClusterShapeCachePreSplitting.src = clustersTmp
21  process.globalreco.replace(process.MeasurementTrackerEvent, process.MeasurementTrackerEventPreSplitting)
22  process.globalreco.replace(process.siPixelClusterShapeCache, process.siPixelClusterShapeCachePreSplitting)
23 
24  # 1. clone what needs to be cloned to have PV before Cluster
25  # Splitting, put together the sequence and prepend it to the main
26  # iterative sequence
27  process.initialStepSeedLayersPreSplitting = process.initialStepSeedLayers.clone()
28  process.initialStepSeedLayersPreSplitting.FPix.HitProducer = 'siPixelRecHitsPreSplitting'
29  process.initialStepSeedLayersPreSplitting.BPix.HitProducer = 'siPixelRecHitsPreSplitting'
30 
31  process.initialStepSeedsPreSplitting = process.initialStepSeeds.clone()
32  process.initialStepSeedsPreSplitting.OrderedHitsFactoryPSet.SeedingLayers = 'initialStepSeedLayersPreSplitting'
33  process.initialStepSeedsPreSplitting.OrderedHitsFactoryPSet.GeneratorPSet.SeedComparitorPSet.clusterShapeCacheSrc = 'siPixelClusterShapeCachePreSplitting'
34  process.initialStepSeedsPreSplitting.ClusterCheckPSet.PixelClusterCollectionLabel = clustersTmp
35 
36  process.initialStepTrackCandidatesPreSplitting = process.initialStepTrackCandidates.clone()
37  process.initialStepTrackCandidatesPreSplitting.src = 'initialStepSeedsPreSplitting'
38  process.initialStepTrackCandidatesPreSplitting.MeasurementTrackerEvent = 'MeasurementTrackerEventPreSplitting'
39 
40  process.initialStepTracksPreSplitting = process.initialStepTracks.clone()
41  process.initialStepTracksPreSplitting.src = 'initialStepTrackCandidatesPreSplitting'
42  process.initialStepTracksPreSplitting.MeasurementTrackerEvent = 'MeasurementTrackerEventPreSplitting'
43 
44  process.firstStepPrimaryVerticesPreSplitting = process.firstStepPrimaryVertices.clone()
45  process.firstStepPrimaryVerticesPreSplitting.TrackLabel = 'initialStepTracksPreSplitting'
46 
47  process.initialStepTrackRefsForJetsPreSplitting = process.initialStepTrackRefsForJets.clone()
48  process.initialStepTrackRefsForJetsPreSplitting.src = 'initialStepTracksPreSplitting'
49  process.caloTowerForTrkPreSplitting = process.caloTowerForTrk.clone()
50  process.ak4CaloJetsForTrkPreSplitting = process.ak4CaloJetsForTrk.clone()
51  process.ak4CaloJetsForTrkPreSplitting.src = 'caloTowerForTrkPreSplitting'
52  process.ak4CaloJetsForTrkPreSplitting.srcPVs = 'firstStepPrimaryVerticesPreSplitting'
53  process.jetsForCoreTrackingPreSplitting = process.jetsForCoreTracking.clone()
54  process.jetsForCoreTrackingPreSplitting.src = 'ak4CaloJetsForTrkPreSplitting'
55 
56  process.siPixelClusters = process.jetCoreClusterSplitter.clone(
57  pixelClusters = cms.InputTag(clustersTmp),
58  vertices = cms.InputTag('firstStepPrimaryVerticesPreSplitting'),
59  cores = cms.InputTag("jetsForCoreTrackingPreSplitting"),
60  )
61 
62 
63  process.InitialStepPreSplitting = cms.Sequence(process.initialStepSeedLayersPreSplitting +
64  process.initialStepSeedsPreSplitting +
65  process.initialStepTrackCandidatesPreSplitting +
66  process.initialStepTracksPreSplitting +
67  process.firstStepPrimaryVerticesPreSplitting +
68  process.initialStepTrackRefsForJetsPreSplitting +
69  process.caloTowerForTrkPreSplitting +
70  process.ak4CaloJetsForTrkPreSplitting +
71  process.jetsForCoreTrackingPreSplitting +
72  process.siPixelClusters +
73  process.siPixelRecHits +
74  process.MeasurementTrackerEvent +
75  process.siPixelClusterShapeCache)
76 
77  process.iterTracking.insert(0,process.InitialStepPreSplitting)
78 
79  return process