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  algo_number = 8,
14  iteration_label = "TrkEM"
15 )
16 
17 # CA - PATTERN RECOGNITION
18 
19 ticlTrackstersTrkEM = _trackstersProducer.clone(
20  filtered_mask = "filteredLayerClustersTrkEM:TrkEM",
21  seeding_regions = "ticlSeedingTrk",
22  pluginPatternRecognitionByCA = dict(
23  algo_verbosity = 0,
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  max_missing_layers_in_trackster = 2,
31  skip_layers = 2,
32  min_layers_per_trackster = 10,
33  min_cos_theta = 0.97, # ~14 degrees
34  min_cos_pointing = 0.94, # ~20 degrees
35  root_doublet_max_distance_from_seed_squared = 2.5e-3, # dR=0.05
36  max_delta_time = 3.
37  ),
38  itername = "TrkEM",
39 )
40 
41 ticlTrkEMStepTask = cms.Task(ticlSeedingTrk
42  ,filteredLayerClustersTrkEM
43  ,ticlTrackstersTrkEM)
44 
45 filteredLayerClustersHFNoseTrkEM = filteredLayerClustersTrkEM.clone(
46  LayerClusters = 'hgcalLayerClustersHFNose',
47  LayerClustersInputMask = "hgcalLayerClustersHFNose:InitialLayerClustersMask",
48  min_cluster_size = 2, # inclusive
49  algo_number = 9,
50  iteration_label = "TrkEMn"
51 )
52 
53 ticlTrackstersHFNoseTrkEM = ticlTrackstersTrkEM.clone(
54  detector = "HFNose",
55  layer_clusters = "hgcalLayerClustersHFNose",
56  layer_clusters_hfnose_tiles = "ticlLayerTileHFNose",
57  original_mask = "hgcalLayerClustersHFNose:InitialLayerClustersMask",
58  filtered_mask = "filteredLayerClustersHFNoseTrkEM:TrkEMn",
59  seeding_regions = "ticlSeedingTrkHFNose",
60  time_layerclusters = "hgcalLayerClustersHFNose:timeLayerCluster",
61  itername = "TrkEMn",
62  pluginPatternRecognitionByCA = dict(
63  filter_on_categories = [0, 1],
64  min_layers_per_trackster = 5,
65  pid_threshold = 0.,
66  shower_start_max_layer = 5 #inclusive
67  )
68 )
69 
70 ticlHFNoseTrkEMStepTask = cms.Task(ticlSeedingTrkHFNose
71  ,filteredLayerClustersHFNoseTrkEM
72  ,ticlTrackstersHFNoseTrkEM)
73