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 from RecoHGCal.TICL.multiClustersFromTrackstersProducer_cfi import multiClustersFromTrackstersProducer as _multiClustersFromTrackstersProducer
7 
8 # CLUSTER FILTERING/MASKING
9 
10 filteredLayerClustersTrkEM = _filteredLayerClustersProducer.clone(
11  clusterFilter = "ClusterFilterByAlgoAndSizeAndLayerRange",
12  min_cluster_size = 3, # inclusive
13  max_layerId = 30, # inclusive
14  algo_number = 8,
15  iteration_label = "TrkEM"
16 )
17 
18 # CA - PATTERN RECOGNITION
19 
20 ticlTrackstersTrkEM = _trackstersProducer.clone(
21  filtered_mask = "filteredLayerClustersTrkEM:TrkEM",
22  seeding_regions = "ticlSeedingTrk",
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  itername = "TrkEM",
37  algo_verbosity = 0,
38 )
39 
40 
41 # MULTICLUSTERS
42 
43 ticlMultiClustersFromTrackstersTrkEM = _multiClustersFromTrackstersProducer.clone(
44  Tracksters = "ticlTrackstersTrkEM"
45 )
46 
47 ticlTrkEMStepTask = cms.Task(ticlSeedingTrk
48  ,filteredLayerClustersTrkEM
49  ,ticlTrackstersTrkEM
50  ,ticlMultiClustersFromTrackstersTrkEM)
51 
52 filteredLayerClustersHFNoseTrkEM = filteredLayerClustersTrkEM.clone(
53  LayerClusters = 'hgcalLayerClustersHFNose',
54  LayerClustersInputMask = "hgcalLayerClustersHFNose:InitialLayerClustersMask",
55  min_cluster_size = 2, # inclusive
56  algo_number = 9,
57  iteration_label = "TrkEMn"
58 )
59 
60 ticlTrackstersHFNoseTrkEM = ticlTrackstersTrkEM.clone(
61  detector = "HFNose",
62  layer_clusters = "hgcalLayerClustersHFNose",
63  layer_clusters_hfnose_tiles = "ticlLayerTileHFNose",
64  original_mask = "hgcalLayerClustersHFNose:InitialLayerClustersMask",
65  filtered_mask = "filteredLayerClustersHFNoseTrkEM:TrkEMn",
66  seeding_regions = "ticlSeedingTrkHFNose",
67  time_layerclusters = "hgcalLayerClustersHFNose:timeLayerCluster",
68  itername = "TrkEMn",
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 ticlHFNoseTrkEMStepTask = cms.Task(ticlSeedingTrkHFNose
77  ,filteredLayerClustersHFNoseTrkEM
78  ,ticlTrackstersHFNoseTrkEM)
79