CMS 3D CMS Logo

HADStep_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.ticlLayerTileProducer_cfi import ticlLayerTileProducer as _ticlLayerTileProducer
5 from RecoHGCal.TICL.trackstersProducer_cfi import trackstersProducer as _trackstersProducer
6 from RecoHGCal.TICL.filteredLayerClustersProducer_cfi import filteredLayerClustersProducer as _filteredLayerClustersProducer
7 
8 # CLUSTER FILTERING/MASKING
9 
10 filteredLayerClustersHAD = _filteredLayerClustersProducer.clone(
11  clusterFilter = "ClusterFilterByAlgoAndSize",
12  min_cluster_size = 3, # inclusive
13  algo_number = 8,
14  iteration_label = "HAD",
15  LayerClustersInputMask = "ticlTrackstersTrk"
16 )
17 
18 # CA - PATTERN RECOGNITION
19 
20 ticlTrackstersHAD = _trackstersProducer.clone(
21  filtered_mask = "filteredLayerClustersHAD:HAD",
22  original_mask = 'ticlTrackstersTrk',
23  seeding_regions = "ticlSeedingGlobal",
24  # For the moment we mask everything w/o requirements since we are last
25 # filter_on_categories = [5], # filter neutral hadrons
26 # pid_threshold = 0.7,
27  pluginPatternRecognitionByCA = dict(
28  skip_layers = 1,
29  min_layers_per_trackster = 12,
30  min_cos_theta = 0.866, # ~30 degrees
31  min_cos_pointing = 0.819, # ~35 degrees
32  max_delta_time = -1
33  ),
34  itername = "HAD"
35 )
36 
37 ticlHADStepTask = cms.Task(ticlSeedingGlobal
38  ,filteredLayerClustersHAD
39  ,ticlTrackstersHAD)
40 
41 # HFNOSE CLUSTER FILTERING/MASKING
42 
43 filteredLayerClustersHFNoseHAD = filteredLayerClustersHAD.clone(
44  min_cluster_size = 2, # inclusive
45  algo_number = 9,
46  iteration_label = "HADn",
47  LayerClusters = 'hgcalLayerClustersHFNose',
48  LayerClustersInputMask = "ticlTrackstersHFNoseTrk"
49 )
50 
51 # HFNOSE CA - PATTERN RECOGNITION
52 
53 ticlTrackstersHFNoseHAD = ticlTrackstersHAD.clone(
54  detector = "HFNose",
55  layer_clusters = "hgcalLayerClustersHFNose",
56  layer_clusters_hfnose_tiles = "ticlLayerTileHFNose",
57  original_mask = "ticlTrackstersHFNoseTrk",
58  filtered_mask = "filteredLayerClustersHFNoseHAD:HADn",
59  seeding_regions = "ticlSeedingGlobalHFNose",
60  time_layerclusters = "hgcalLayerClustersHFNose:timeLayerCluster",
61  pluginPatternRecognitionByCA = dict(
62  pid_threshold = 0.,
63  skip_layers = 1,
64  min_layers_per_trackster = 5,
65  min_cos_theta = 0.866, # ~30 degrees
66  min_cos_pointing = 0.866, # ~30 degrees
67  max_delta_time = -1
68  ),
69  itername = "HADn"
70  )
71 
72 ticlHFNoseHADStepTask = cms.Task(ticlSeedingGlobalHFNose
73  ,filteredLayerClustersHFNoseHAD
74  ,ticlTrackstersHFNoseHAD)