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