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 ticlTrkEMStepTask = cms.Task(ticlSeedingTrk
41  ,filteredLayerClustersTrkEM
42  ,ticlTrackstersTrkEM)
43 
44 # HFNOSE CLUSTER FILTERING/MASKING
45 
46 filteredLayerClustersHFNoseTrkEM = filteredLayerClustersTrkEM.clone(
47  LayerClusters = 'hgcalLayerClustersHFNose',
48  LayerClustersInputMask = "hgcalLayerClustersHFNose:InitialLayerClustersMask",
49  min_cluster_size = 3, # inclusive
50  algo_number = [9], # reco::CaloCluster::hfnose
51  iteration_label = "TrkEMn"
52 )
53 
54 # HFNOSE CA - PATTERN RECOGNITION
55 
56 ticlTrackstersHFNoseTrkEM = ticlTrackstersTrkEM.clone(
57  detector = "HFNose",
58  layer_clusters = "hgcalLayerClustersHFNose",
59  layer_clusters_hfnose_tiles = "ticlLayerTileHFNose",
60  original_mask = "hgcalLayerClustersHFNose:InitialLayerClustersMask",
61  filtered_mask = "filteredLayerClustersHFNoseTrkEM:TrkEMn",
62  seeding_regions = "ticlSeedingTrkHFNose",
63  time_layerclusters = "hgcalLayerClustersHFNose:timeLayerCluster",
64  itername = "TrkEMn",
65  pluginPatternRecognitionByCA = dict(
66  filter_on_categories = [0, 1],
67  min_layers_per_trackster = 5,
68  pid_threshold = 0.,
69  shower_start_max_layer = 5 #inclusive
70  )
71 )
72 
73 ticlHFNoseTrkEMStepTask = cms.Task(ticlSeedingTrkHFNose
74  ,filteredLayerClustersHFNoseTrkEM
75  ,ticlTrackstersHFNoseTrkEM)
76