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 from RecoHGCal.TICL.multiClustersFromTrackstersProducer_cfi import multiClustersFromTrackstersProducer as _multiClustersFromTrackstersProducer
8 
9 # CLUSTER FILTERING/MASKING
10 
11 filteredLayerClustersHAD = _filteredLayerClustersProducer.clone(
12  clusterFilter = "ClusterFilterByAlgoAndSize",
13  min_cluster_size = 3, # inclusive
14  algo_number = 8,
15  iteration_label = "HAD",
16  LayerClustersInputMask = "ticlTrackstersTrk"
17 )
18 
19 # CA - PATTERN RECOGNITION
20 
21 ticlTrackstersHAD = _trackstersProducer.clone(
22  filtered_mask = "filteredLayerClustersHAD:HAD",
23  original_mask = 'ticlTrackstersTrk',
24  seeding_regions = "ticlSeedingGlobal",
25  # For the moment we mask everything w/o requirements since we are last
26 # filter_on_categories = [5], # filter neutral hadrons
27 # pid_threshold = 0.7,
28  skip_layers = 1,
29  min_layers_per_trackster = 12,
30  min_cos_theta = 0.866, # ~30 degrees
31  min_cos_pointing = 0.819, # ~35 degrees
32  max_delta_time = -1,
33  itername = "HAD"
34  )
35 
36 # MULTICLUSTERS
37 
38 ticlMultiClustersFromTrackstersHAD = _multiClustersFromTrackstersProducer.clone(
39  Tracksters = "ticlTrackstersHAD"
40  )
41 
42 ticlHADStepTask = cms.Task(ticlSeedingGlobal
43  ,filteredLayerClustersHAD
44  ,ticlTrackstersHAD
45  ,ticlMultiClustersFromTrackstersHAD)
46 
47 filteredLayerClustersHFNoseHAD = _filteredLayerClustersProducer.clone(
48  min_cluster_size = 2, # inclusive
49  algo_number = 9,
50  iteration_label = "HADn",
51  LayerClusters = 'hgcalLayerClustersHFNose',
52  LayerClustersInputMask = "hgcalLayerClustersHFNose:InitialLayerClustersMask"
53 )
54 
55 ticlTrackstersHFNoseHAD = _trackstersProducer.clone(
56  detector = "HFNose",
57  layer_clusters = "hgcalLayerClustersHFNose",
58  layer_clusters_hfnose_tiles = "ticlLayerTileHFNose",
59  original_mask = "hgcalLayerClustersHFNose:InitialLayerClustersMask",
60  filtered_mask = "filteredLayerClustersHFNoseHAD:HADn",
61  seeding_regions = "ticlSeedingGlobalHFNose",
62  time_layerclusters = "hgcalLayerClustersHFNose:timeLayerCluster",
63  # For the moment we mask everything w/o requirements since we are last
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.819, # ~35 degrees
69  max_delta_time = -1,
70  itername = "HADRONIC"
71  )
72 
73 ticlHFNoseHADStepTask = cms.Task(ticlSeedingGlobalHFNose
74  ,filteredLayerClustersHFNoseHAD
75  ,ticlTrackstersHFNoseHAD)