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 from Configuration.ProcessModifiers.ticl_v5_cff import ticl_v5
41 ticl_v5.toModify(ticlTrackstersEM.pluginPatternRecognitionByCA, computeLocalTime = cms.bool(True))
42 
43 ticlEMStepTask = cms.Task(ticlSeedingGlobal
44  ,filteredLayerClustersEM
45  ,ticlTrackstersEM)
46 
47 # HFNOSE CLUSTER FILTERING/MASKING
48 
49 filteredLayerClustersHFNoseEM = filteredLayerClustersEM.clone(
50  LayerClusters = 'hgcalLayerClustersHFNose',
51  LayerClustersInputMask = 'ticlTrackstersHFNoseTrkEM',
52  min_cluster_size = 3, # inclusive
53  algo_number = [9], # reco::CaloCluster::hfnose
54  iteration_label = "EMn"
55 )
56 
57 # HFNOSE CA - PATTERN RECOGNITION
58 
59 ticlTrackstersHFNoseEM = ticlTrackstersEM.clone(
60  detector = "HFNose",
61  layer_clusters = "hgcalLayerClustersHFNose",
62  layer_clusters_hfnose_tiles = "ticlLayerTileHFNose",
63  original_mask = "ticlTrackstersHFNoseTrkEM",
64  filtered_mask = "filteredLayerClustersHFNoseEM:EMn",
65  seeding_regions = "ticlSeedingGlobalHFNose",
66  time_layerclusters = "hgcalLayerClustersHFNose:timeLayerCluster",
67  itername = "EMn",
68  pluginPatternRecognitionByCA = dict(
69  filter_on_categories = [0, 1],
70  min_layers_per_trackster = 5,
71  pid_threshold = 0.,
72  min_cos_pointing = 0.9845, # ~10 degrees
73  shower_start_max_layer = 4
74  )
75 )
76 ticl_v5.toModify(ticlTrackstersHFNoseEM.pluginPatternRecognitionByCA, computeLocalTime = cms.bool(True))
77 
78 ticlHFNoseEMStepTask = cms.Task(ticlSeedingGlobalHFNose
79  ,filteredLayerClustersHFNoseEM
80  ,ticlTrackstersHFNoseEM
81 )