CMS 3D CMS Logo

EMStep_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 filteredLayerClustersEM = _filteredLayerClustersProducer.clone(
10  clusterFilter = "ClusterFilterByAlgoAndSizeAndLayerRange",
11  min_cluster_size = 3, # inclusive
12  max_layerId = 30, # inclusive
13  algo_number = 8,
14  LayerClustersInputMask = 'ticlTrackstersTrkEM',
15  iteration_label = "EM"
16 )
17 
18 # CA - PATTERN RECOGNITION
19 
20 ticlTrackstersEM = _trackstersProducer.clone(
21  filtered_mask = "filteredLayerClustersEM:EM",
22  original_mask = 'ticlTrackstersTrkEM',
23  seeding_regions = "ticlSeedingGlobal",
24  pluginPatternRecognitionByCA = dict(
25  filter_on_categories = [0, 1],
26  pid_threshold = 0.5,
27  energy_em_over_total_threshold = 0.9,
28  max_longitudinal_sigmaPCA = 10,
29  shower_start_max_layer = 5, #inclusive
30  max_out_in_hops = 1,
31  skip_layers = 2,
32  max_missing_layers_in_trackster = 1,
33  min_layers_per_trackster = 10,
34  min_cos_theta = 0.97, # ~14 degrees
35  min_cos_pointing = 0.9, # ~25 degrees
36  max_delta_time = 3.,
37  algo_verbosity = 0
38  ),
39  itername = "EM"
40 )
41 
42 ticlEMStepTask = cms.Task(ticlSeedingGlobal
43  ,filteredLayerClustersEM
44  ,ticlTrackstersEM)
45 
46 filteredLayerClustersHFNoseEM = filteredLayerClustersEM.clone(
47  LayerClusters = 'hgcalLayerClustersHFNose',
48  LayerClustersInputMask = 'ticlTrackstersHFNoseTrkEM',
49  iteration_label = "EMn",
50  min_cluster_size = 2, # inclusive
51  algo_number = 9
52 )
53 
54 ticlTrackstersHFNoseEM = ticlTrackstersEM.clone(
55  detector = "HFNose",
56  layer_clusters = "hgcalLayerClustersHFNose",
57  layer_clusters_hfnose_tiles = "ticlLayerTileHFNose",
58  original_mask = "ticlTrackstersHFNoseTrkEM",
59  filtered_mask = "filteredLayerClustersHFNoseEM:EMn",
60  seeding_regions = "ticlSeedingGlobalHFNose",
61  time_layerclusters = "hgcalLayerClustersHFNose:timeLayerCluster",
62  itername = "EMn",
63  pluginPatternRecognitionByCA = dict(
64  filter_on_categories = [0, 1],
65  min_layers_per_trackster = 5,
66  pid_threshold = 0.,
67  shower_start_max_layer = 5
68  )
69 )
70 
71 ticlHFNoseEMStepTask = cms.Task(ticlSeedingGlobalHFNose
72  ,filteredLayerClustersHFNoseEM
73  ,ticlTrackstersHFNoseEM
74 )