CMS 3D CMS Logo

TrkEMStep_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from RecoHGCal.TICL.TICLSeedingRegions_cff import ticlSeedingTrk, ticlSeedingTrkHFNose
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 filteredLayerClustersTrkEM = _filteredLayerClustersProducer.clone(
10  clusterFilter = "ClusterFilterByAlgoAndSizeAndLayerRange",
11  min_cluster_size = 3, # inclusive
12  max_layerId = 30, # inclusive
13  iteration_label = "TrkEM"
14 )
15 
16 # CA - PATTERN RECOGNITION
17 
18 ticlTrackstersTrkEM = _trackstersProducer.clone(
19  filtered_mask = "filteredLayerClustersTrkEM:TrkEM",
20  seeding_regions = "ticlSeedingTrk",
21  pluginPatternRecognitionByCA = dict(
22  algo_verbosity = 0,
23  filter_on_categories = [0, 1],
24  pid_threshold = 0.5,
25  energy_em_over_total_threshold = 0.9,
26  max_longitudinal_sigmaPCA = 10,
27  shower_start_max_layer = 5, #inclusive
28  max_out_in_hops = 1,
29  max_missing_layers_in_trackster = 2,
30  skip_layers = 2,
31  min_layers_per_trackster = 10,
32  min_cos_theta = 0.97, # ~14 degrees
33  min_cos_pointing = 0.94, # ~20 degrees
34  root_doublet_max_distance_from_seed_squared = 2.5e-3, # dR=0.05
35  max_delta_time = 3.
36  ),
37  itername = "TrkEM",
38 )
39 
40 from Configuration.ProcessModifiers.ticl_v5_cff import ticl_v5
41 ticl_v5.toModify(ticlTrackstersTrkEM.pluginPatternRecognitionByCA, computeLocalTime = cms.bool(True))
42 
43 ticlTrkEMStepTask = cms.Task(ticlSeedingTrk
44  ,filteredLayerClustersTrkEM
45  ,ticlTrackstersTrkEM)
46 
47 # HFNOSE CLUSTER FILTERING/MASKING
48 
49 filteredLayerClustersHFNoseTrkEM = filteredLayerClustersTrkEM.clone(
50  LayerClusters = 'hgcalLayerClustersHFNose',
51  LayerClustersInputMask = "hgcalLayerClustersHFNose:InitialLayerClustersMask",
52  min_cluster_size = 3, # inclusive
53  algo_number = [9], # reco::CaloCluster::hfnose
54  iteration_label = "TrkEMn"
55 )
56 
57 # HFNOSE CA - PATTERN RECOGNITION
58 
59 ticlTrackstersHFNoseTrkEM = ticlTrackstersTrkEM.clone(
60  detector = "HFNose",
61  layer_clusters = "hgcalLayerClustersHFNose",
62  layer_clusters_hfnose_tiles = "ticlLayerTileHFNose",
63  original_mask = "hgcalLayerClustersHFNose:InitialLayerClustersMask",
64  filtered_mask = "filteredLayerClustersHFNoseTrkEM:TrkEMn",
65  seeding_regions = "ticlSeedingTrkHFNose",
66  time_layerclusters = "hgcalLayerClustersHFNose:timeLayerCluster",
67  itername = "TrkEMn",
68  pluginPatternRecognitionByCA = dict(
69  filter_on_categories = [0, 1],
70  min_layers_per_trackster = 5,
71  pid_threshold = 0.,
72  shower_start_max_layer = 5 #inclusive
73  )
74 )
75 
76 ticl_v5.toModify(ticlTrackstersHFNoseTrkEM.pluginPatternRecognitionByCA, computeLocalTime = cms.bool(True))
77 
78 ticlHFNoseTrkEMStepTask = cms.Task(ticlSeedingTrkHFNose
79  ,filteredLayerClustersHFNoseTrkEM
80  ,ticlTrackstersHFNoseTrkEM)
81