CMS 3D CMS Logo

TrkStep_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.ticlLayerTileProducer_cfi import ticlLayerTileProducer as _ticlLayerTileProducer
5 from RecoHGCal.TICL.trackstersProducer_cfi import trackstersProducer as _trackstersProducer
6 from RecoHGCal.TICL.filteredLayerClustersProducer_cfi import filteredLayerClustersProducer as _filteredLayerClustersProducer
7 
8 # CLUSTER FILTERING/MASKING
9 
10 filteredLayerClustersTrk = _filteredLayerClustersProducer.clone(
11  clusterFilter = "ClusterFilterByAlgoAndSize",
12  min_cluster_size = 3, # inclusive
13  algo_number = 8,
14  LayerClustersInputMask = 'ticlTrackstersEM',
15  iteration_label = "Trk"
16 )
17 
18 # CA - PATTERN RECOGNITION
19 
20 ticlTrackstersTrk = _trackstersProducer.clone(
21  filtered_mask = "filteredLayerClustersTrk:Trk",
22  seeding_regions = "ticlSeedingTrk",
23  original_mask = 'ticlTrackstersEM',
24  pluginPatternRecognitionByCA = dict(
25  filter_on_categories = [2, 4], # filter muons and charged hadrons
26  pid_threshold = 0.0,
27  skip_layers = 3,
28  min_layers_per_trackster = 10,
29  min_cos_theta = 0.866, # ~30 degrees
30  min_cos_pointing = 0.798, # ~ 37 degrees
31  max_delta_time = -1.,
32  algo_verbosity = 2,
33  oneTracksterPerTrackSeed = True,
34  promoteEmptyRegionToTrackster = True
35  ),
36  itername = "Trk"
37 )
38 
39 ticlTrkStepTask = cms.Task(ticlSeedingTrk
40  ,filteredLayerClustersTrk
41  ,ticlTrackstersTrk)
42 
43 # HFNOSE CLUSTER FILTERING/MASKING
44 
45 filteredLayerClustersHFNoseTrk = filteredLayerClustersTrk.clone(
46  LayerClusters = 'hgcalLayerClustersHFNose',
47  LayerClustersInputMask = 'ticlTrackstersHFNoseEM',
48  min_cluster_size = 2, # inclusive
49  algo_number = 9,
50  iteration_label = "Trkn"
51 )
52 
53 # HFNOSE CA - PATTERN RECOGNITION
54 
55 ticlTrackstersHFNoseTrk = ticlTrackstersTrk.clone(
56  detector = "HFNose",
57  layer_clusters = "hgcalLayerClustersHFNose",
58  layer_clusters_hfnose_tiles = "ticlLayerTileHFNose",
59  original_mask = 'ticlTrackstersHFNoseEM',
60  filtered_mask = "filteredLayerClustersHFNoseTrk:Trkn",
61  seeding_regions = "ticlSeedingTrkHFNose",
62  time_layerclusters = "hgcalLayerClustersHFNose:timeLayerCluster",
63  pluginPatternRecognitionByCA = dict(
64  filter_on_categories = [2, 4], # filter muons and charged hadrons
65  pid_threshold = 0.0,
66  skip_layers = 1,
67  min_layers_per_trackster = 5,
68  oneTracksterPerTrackSeed = True,
69  promoteEmptyRegionToTrackster = True
70  ),
71  itername = "Trkn"
72 )
73 
74 ticlHFNoseTrkStepTask = cms.Task(ticlSeedingTrkHFNose
75  ,filteredLayerClustersHFNoseTrk
76  ,ticlTrackstersHFNoseTrk)
77 
78