CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 # HFNOSE CLUSTER FILTERING/MASKING
47 
48 filteredLayerClustersHFNoseEM = filteredLayerClustersEM.clone(
49  LayerClusters = 'hgcalLayerClustersHFNose',
50  LayerClustersInputMask = 'ticlTrackstersHFNoseTrkEM',
51  min_cluster_size = 3, # inclusive
52  algo_number = 9,
53  iteration_label = "EMn"
54 )
55 
56 # HFNOSE CA - PATTERN RECOGNITION
57 
58 ticlTrackstersHFNoseEM = ticlTrackstersEM.clone(
59  detector = "HFNose",
60  layer_clusters = "hgcalLayerClustersHFNose",
61  layer_clusters_hfnose_tiles = "ticlLayerTileHFNose",
62  original_mask = "ticlTrackstersHFNoseTrkEM",
63  filtered_mask = "filteredLayerClustersHFNoseEM:EMn",
64  seeding_regions = "ticlSeedingGlobalHFNose",
65  time_layerclusters = "hgcalLayerClustersHFNose:timeLayerCluster",
66  itername = "EMn",
67  pluginPatternRecognitionByCA = dict(
68  filter_on_categories = [0, 1],
69  min_layers_per_trackster = 5,
70  pid_threshold = 0.,
71  min_cos_pointing = 0.9845, # ~10 degrees
72  shower_start_max_layer = 4 ### inclusive
73  )
74 )
75 
76 ticlHFNoseEMStepTask = cms.Task(ticlSeedingGlobalHFNose
77  ,filteredLayerClustersHFNoseEM
78  ,ticlTrackstersHFNoseEM
79 )