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 filteredLayerClustersHFNoseHAD = _filteredLayerClustersProducer.clone(
42  min_cluster_size = 2, # inclusive
43  algo_number = 9,
44  iteration_label = "HADn",
45  LayerClusters = 'hgcalLayerClustersHFNose',
46  LayerClustersInputMask = "hgcalLayerClustersHFNose:InitialLayerClustersMask"
47 )
48 
49 ticlTrackstersHFNoseHAD = _trackstersProducer.clone(
50  detector = "HFNose",
51  layer_clusters = "hgcalLayerClustersHFNose",
52  layer_clusters_hfnose_tiles = "ticlLayerTileHFNose",
53  original_mask = "hgcalLayerClustersHFNose:InitialLayerClustersMask",
54  filtered_mask = "filteredLayerClustersHFNoseHAD:HADn",
55  seeding_regions = "ticlSeedingGlobalHFNose",
56  time_layerclusters = "hgcalLayerClustersHFNose:timeLayerCluster",
57  # For the moment we mask everything w/o requirements since we are last
58  pluginPatternRecognitionByCA = dict(
59  pid_threshold = 0.,
60  skip_layers = 1,
61  min_layers_per_trackster = 5,
62  min_cos_theta = 0.866, # ~30 degrees
63  min_cos_pointing = 0.819, # ~35 degrees
64  max_delta_time = -1,
65  ),
66  itername = "HADRONIC"
67  )
68 
69 ticlHFNoseHADStepTask = cms.Task(ticlSeedingGlobalHFNose
70  ,filteredLayerClustersHFNoseHAD
71  ,ticlTrackstersHFNoseHAD)