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