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 ticlHADStepTask = cms.Task(ticlSeedingGlobal
37  ,filteredLayerClustersHAD
38  ,ticlTrackstersHAD)
39 
40 # HFNOSE CLUSTER FILTERING/MASKING
41 
42 filteredLayerClustersHFNoseHAD = filteredLayerClustersHAD.clone(
43  min_cluster_size = 2, # inclusive
44  algo_number = [9], # reco::CaloCluster::hfnose
45  iteration_label = "HADn",
46  LayerClusters = 'hgcalLayerClustersHFNose',
47  LayerClustersInputMask = "ticlTrackstersHFNoseTrk"
48 )
49 
50 # HFNOSE CA - PATTERN RECOGNITION
51 
52 ticlTrackstersHFNoseHAD = ticlTrackstersHAD.clone(
53  detector = "HFNose",
54  layer_clusters = "hgcalLayerClustersHFNose",
55  layer_clusters_hfnose_tiles = "ticlLayerTileHFNose",
56  original_mask = "ticlTrackstersHFNoseTrk",
57  filtered_mask = "filteredLayerClustersHFNoseHAD:HADn",
58  seeding_regions = "ticlSeedingGlobalHFNose",
59  time_layerclusters = "hgcalLayerClustersHFNose:timeLayerCluster",
60  pluginPatternRecognitionByCA = dict(
61  pid_threshold = 0.,
62  skip_layers = 1,
63  min_layers_per_trackster = 5,
64  min_cos_theta = 0.866, # ~30 degrees
65  min_cos_pointing = 0.866, # ~30 degrees
66  max_delta_time = -1
67  ),
68  itername = "HADn"
69  )
70 
71 ticlHFNoseHADStepTask = cms.Task(ticlSeedingGlobalHFNose
72  ,filteredLayerClustersHFNoseHAD
73  ,ticlTrackstersHFNoseHAD)