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 from Configuration.ProcessModifiers.ticl_v5_cff import ticl_v5
39 ticl_v5.toModify(ticlTrackstersTrk.pluginPatternRecognitionByCA, computeLocalTime = cms.bool(True))
40 
41 ticlTrkStepTask = cms.Task(ticlSeedingTrk
42  ,filteredLayerClustersTrk
43  ,ticlTrackstersTrk)
44 
45 # HFNOSE CLUSTER FILTERING/MASKING
46 
47 filteredLayerClustersHFNoseTrk = filteredLayerClustersTrk.clone(
48  LayerClusters = 'hgcalLayerClustersHFNose',
49  LayerClustersInputMask = 'ticlTrackstersHFNoseEM',
50  min_cluster_size = 2, # inclusive
51  algo_number = [9], # reco::CaloCluster::hfnose
52  iteration_label = "Trkn"
53 )
54 
55 # HFNOSE CA - PATTERN RECOGNITION
56 
57 ticlTrackstersHFNoseTrk = ticlTrackstersTrk.clone(
58  detector = "HFNose",
59  layer_clusters = "hgcalLayerClustersHFNose",
60  layer_clusters_hfnose_tiles = "ticlLayerTileHFNose",
61  original_mask = 'ticlTrackstersHFNoseEM',
62  filtered_mask = "filteredLayerClustersHFNoseTrk:Trkn",
63  seeding_regions = "ticlSeedingTrkHFNose",
64  time_layerclusters = "hgcalLayerClustersHFNose:timeLayerCluster",
65  pluginPatternRecognitionByCA = dict(
66  filter_on_categories = [2, 4], # filter muons and charged hadrons
67  pid_threshold = 0.0,
68  skip_layers = 1,
69  min_layers_per_trackster = 5,
70  oneTracksterPerTrackSeed = True,
71  promoteEmptyRegionToTrackster = True
72  ),
73  itername = "Trkn"
74 )
75 
76 ticl_v5.toModify(ticlTrackstersHFNoseTrk.pluginPatternRecognitionByCA, computeLocalTime = cms.bool(True))
77 
78 ticlHFNoseTrkStepTask = cms.Task(ticlSeedingTrkHFNose
79  ,filteredLayerClustersHFNoseTrk
80  ,ticlTrackstersHFNoseTrk)
81 
82