CMS 3D CMS Logo

HADStep_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from RecoHGCal.TICL.TICLSeedingRegions_cff import ticlSeedingGlobal, ticlSeedingGlobalHFNose
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 filteredLayerClustersHAD = _filteredLayerClustersProducer.clone(
11  clusterFilter = "ClusterFilterByAlgoAndSize",
12  min_cluster_size = 3, # inclusive
13  iteration_label = "HAD",
14  LayerClustersInputMask = "ticlTrackstersTrk"
15 )
16 
17 # CA - PATTERN RECOGNITION
18 
19 ticlTrackstersHAD = _trackstersProducer.clone(
20  filtered_mask = "filteredLayerClustersHAD:HAD",
21  original_mask = 'ticlTrackstersTrk',
22  seeding_regions = "ticlSeedingGlobal",
23  # For the moment we mask everything w/o requirements since we are last
24 # filter_on_categories = [5], # filter neutral hadrons
25 # pid_threshold = 0.7,
26  pluginPatternRecognitionByCA = dict(
27  skip_layers = 1,
28  min_layers_per_trackster = 12,
29  min_cos_theta = 0.866, # ~30 degrees
30  min_cos_pointing = 0.819, # ~35 degrees
31  max_delta_time = -1
32  ),
33  itername = "HAD"
34 )
35 
36 from Configuration.ProcessModifiers.ticl_v5_cff import ticl_v5
37 ticl_v5.toModify(ticlTrackstersHAD.pluginPatternRecognitionByCA, computeLocalTime = cms.bool(True))
38 
39 ticlHADStepTask = cms.Task(ticlSeedingGlobal
40  ,filteredLayerClustersHAD
41  ,ticlTrackstersHAD)
42 
43 # HFNOSE CLUSTER FILTERING/MASKING
44 
45 filteredLayerClustersHFNoseHAD = filteredLayerClustersHAD.clone(
46  min_cluster_size = 2, # inclusive
47  algo_number = [9], # reco::CaloCluster::hfnose
48  iteration_label = "HADn",
49  LayerClusters = 'hgcalLayerClustersHFNose',
50  LayerClustersInputMask = "ticlTrackstersHFNoseTrk"
51 )
52 
53 # HFNOSE CA - PATTERN RECOGNITION
54 
55 ticlTrackstersHFNoseHAD = ticlTrackstersHAD.clone(
56  detector = "HFNose",
57  layer_clusters = "hgcalLayerClustersHFNose",
58  layer_clusters_hfnose_tiles = "ticlLayerTileHFNose",
59  original_mask = "ticlTrackstersHFNoseTrk",
60  filtered_mask = "filteredLayerClustersHFNoseHAD:HADn",
61  seeding_regions = "ticlSeedingGlobalHFNose",
62  time_layerclusters = "hgcalLayerClustersHFNose:timeLayerCluster",
63  pluginPatternRecognitionByCA = dict(
64  pid_threshold = 0.,
65  skip_layers = 1,
66  min_layers_per_trackster = 5,
67  min_cos_theta = 0.866, # ~30 degrees
68  min_cos_pointing = 0.866, # ~30 degrees
69  max_delta_time = -1
70  ),
71  itername = "HADn"
72  )
73 
74 ticl_v5.toModify(ticlTrackstersHFNoseHAD.pluginPatternRecognitionByCA, computeLocalTime = cms.bool(True))
75 
76 ticlHFNoseHADStepTask = cms.Task(ticlSeedingGlobalHFNose
77  ,filteredLayerClustersHFNoseHAD
78  ,ticlTrackstersHFNoseHAD)