Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-06-13 03:24:05

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from RecoHGCal.TICL.TICLSeedingRegions_cff import ticlSeedingGlobal, ticlSeedingGlobalHFNose
0004 from RecoHGCal.TICL.trackstersProducer_cfi import trackstersProducer as _trackstersProducer
0005 from RecoHGCal.TICL.filteredLayerClustersProducer_cfi import filteredLayerClustersProducer as _filteredLayerClustersProducer
0006 
0007 # CLUSTER FILTERING/MASKING
0008 
0009 filteredLayerClustersMIP = _filteredLayerClustersProducer.clone(
0010     clusterFilter = "ClusterFilterBySize",
0011     max_cluster_size = 2, # inclusive
0012     iteration_label = "MIP"
0013 )
0014 
0015 
0016 # CA - PATTERN RECOGNITION
0017 
0018 ticlTrackstersMIP = _trackstersProducer.clone(
0019     filtered_mask = "filteredLayerClustersMIP:MIP",
0020     seeding_regions = "ticlSeedingGlobal",
0021     pluginPatternRecognitionByCA = dict(
0022       skip_layers = 3,
0023       min_layers_per_trackster = 10,
0024       min_cos_theta = 0.99, # ~10 degrees
0025       min_cos_pointing = 0.5,
0026       out_in_dfs = False,
0027       max_delta_time = -1
0028     ),
0029     itername = "MIP"
0030 )
0031 
0032 from Configuration.ProcessModifiers.ticl_v5_cff import ticl_v5
0033 ticl_v5.toModify(ticlTrackstersMIP.pluginPatternRecognitionByCA, computeLocalTime = cms.bool(True))
0034 
0035 ticlMIPStepTask = cms.Task(ticlSeedingGlobal
0036     ,filteredLayerClustersMIP
0037     ,ticlTrackstersMIP)
0038 
0039 filteredLayerClustersHFNoseMIP = filteredLayerClustersMIP.clone(
0040     LayerClusters = 'hgcalLayerClustersHFNose',
0041     LayerClustersInputMask = "hgcalLayerClustersHFNose:InitialLayerClustersMask",
0042     iteration_label = "MIPn",
0043     algo_number = [9] # reco::CaloCluster::hfnose
0044 )
0045 
0046 ticlTrackstersHFNoseMIP = ticlTrackstersMIP.clone(
0047     detector = "HFNose",
0048     layer_clusters = "hgcalLayerClustersHFNose",
0049     layer_clusters_hfnose_tiles = "ticlLayerTileHFNose",
0050     original_mask = "hgcalLayerClustersHFNose:InitialLayerClustersMask",
0051     filtered_mask = "filteredLayerClustersHFNoseMIP:MIPn",
0052     seeding_regions = "ticlSeedingGlobalHFNose",
0053     time_layerclusters = "hgcalLayerClustersHFNose:timeLayerCluster",
0054     pluginPatternRecognitionByCA = dict(min_layers_per_trackster = 6)
0055 )
0056 
0057 ticl_v5.toModify(ticlTrackstersHFNoseMIP.pluginPatternRecognitionByCA, computeLocalTime = cms.bool(True))
0058 
0059 ticlHFNoseMIPStepTask = cms.Task(ticlSeedingGlobalHFNose
0060                               ,filteredLayerClustersHFNoseMIP
0061                               ,ticlTrackstersHFNoseMIP
0062 )