CMS 3D CMS Logo

MIPStep_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from RecoHGCal.TICL.TICLSeedingRegions_cff import ticlSeedingGlobal, ticlSeedingGlobalHFNose
4 from RecoHGCal.TICL.trackstersProducer_cfi import trackstersProducer as _trackstersProducer
5 from RecoHGCal.TICL.filteredLayerClustersProducer_cfi import filteredLayerClustersProducer as _filteredLayerClustersProducer
6 
7 # CLUSTER FILTERING/MASKING
8 
9 filteredLayerClustersMIP = _filteredLayerClustersProducer.clone(
10  clusterFilter = "ClusterFilterBySize",
11  max_cluster_size = 2, # inclusive
12  iteration_label = "MIP"
13 )
14 
15 
16 # CA - PATTERN RECOGNITION
17 
18 ticlTrackstersMIP = _trackstersProducer.clone(
19  filtered_mask = "filteredLayerClustersMIP:MIP",
20  seeding_regions = "ticlSeedingGlobal",
21  pluginPatternRecognitionByCA = dict(
22  skip_layers = 3,
23  min_layers_per_trackster = 10,
24  min_cos_theta = 0.99, # ~10 degrees
25  min_cos_pointing = 0.5,
26  out_in_dfs = False,
27  max_delta_time = -1
28  ),
29  itername = "MIP"
30 )
31 
32 from Configuration.ProcessModifiers.ticl_v5_cff import ticl_v5
33 ticl_v5.toModify(ticlTrackstersMIP.pluginPatternRecognitionByCA, computeLocalTime = cms.bool(True))
34 
35 ticlMIPStepTask = cms.Task(ticlSeedingGlobal
36  ,filteredLayerClustersMIP
37  ,ticlTrackstersMIP)
38 
39 filteredLayerClustersHFNoseMIP = filteredLayerClustersMIP.clone(
40  LayerClusters = 'hgcalLayerClustersHFNose',
41  LayerClustersInputMask = "hgcalLayerClustersHFNose:InitialLayerClustersMask",
42  iteration_label = "MIPn",
43  algo_number = [9] # reco::CaloCluster::hfnose
44 )
45 
46 ticlTrackstersHFNoseMIP = ticlTrackstersMIP.clone(
47  detector = "HFNose",
48  layer_clusters = "hgcalLayerClustersHFNose",
49  layer_clusters_hfnose_tiles = "ticlLayerTileHFNose",
50  original_mask = "hgcalLayerClustersHFNose:InitialLayerClustersMask",
51  filtered_mask = "filteredLayerClustersHFNoseMIP:MIPn",
52  seeding_regions = "ticlSeedingGlobalHFNose",
53  time_layerclusters = "hgcalLayerClustersHFNose:timeLayerCluster",
54  pluginPatternRecognitionByCA = dict(min_layers_per_trackster = 6)
55 )
56 
57 ticl_v5.toModify(ticlTrackstersHFNoseMIP.pluginPatternRecognitionByCA, computeLocalTime = cms.bool(True))
58 
59 ticlHFNoseMIPStepTask = cms.Task(ticlSeedingGlobalHFNose
60  ,filteredLayerClustersHFNoseMIP
61  ,ticlTrackstersHFNoseMIP
62 )