CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 # HFNOSE CLUSTER FILTERING/MASKING
46 
47 filteredLayerClustersHFNoseTrkEM = filteredLayerClustersTrkEM.clone(
48  LayerClusters = 'hgcalLayerClustersHFNose',
49  LayerClustersInputMask = "hgcalLayerClustersHFNose:InitialLayerClustersMask",
50  min_cluster_size = 3, # inclusive
51  algo_number = 9,
52  iteration_label = "TrkEMn"
53 )
54 
55 # HFNOSE CA - PATTERN RECOGNITION
56 
57 ticlTrackstersHFNoseTrkEM = ticlTrackstersTrkEM.clone(
58  detector = "HFNose",
59  layer_clusters = "hgcalLayerClustersHFNose",
60  layer_clusters_hfnose_tiles = "ticlLayerTileHFNose",
61  original_mask = "hgcalLayerClustersHFNose:InitialLayerClustersMask",
62  filtered_mask = "filteredLayerClustersHFNoseTrkEM:TrkEMn",
63  seeding_regions = "ticlSeedingTrkHFNose",
64  time_layerclusters = "hgcalLayerClustersHFNose:timeLayerCluster",
65  itername = "TrkEMn",
66  pluginPatternRecognitionByCA = dict(
67  filter_on_categories = [0, 1],
68  min_layers_per_trackster = 5,
69  pid_threshold = 0.,
70  shower_start_max_layer = 5 #inclusive
71  )
72 )
73 
74 ticlHFNoseTrkEMStepTask = cms.Task(ticlSeedingTrkHFNose
75  ,filteredLayerClustersHFNoseTrkEM
76  ,ticlTrackstersHFNoseTrkEM)
77