Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:25:16

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from RecoHGCal.TICL.TICLSeedingRegions_cff import ticlSeedingTrk, ticlSeedingTrkHFNose
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 filteredLayerClustersTrkEM = _filteredLayerClustersProducer.clone(
0010     clusterFilter = "ClusterFilterByAlgoAndSizeAndLayerRange",
0011     min_cluster_size = 3, # inclusive
0012     max_layerId = 30, # inclusive
0013     iteration_label = "TrkEM"
0014 )
0015 
0016 # CA - PATTERN RECOGNITION
0017 
0018 ticlTrackstersTrkEM = _trackstersProducer.clone(
0019     filtered_mask = "filteredLayerClustersTrkEM:TrkEM",
0020     seeding_regions = "ticlSeedingTrk",
0021     pluginPatternRecognitionByCA = dict(
0022         algo_verbosity = 0,
0023         filter_on_categories = [0, 1],
0024         pid_threshold = 0.5,
0025         energy_em_over_total_threshold = 0.9,
0026         max_longitudinal_sigmaPCA = 10,
0027         shower_start_max_layer = 5, #inclusive
0028         max_out_in_hops = 1,
0029         max_missing_layers_in_trackster = 2,
0030         skip_layers = 2,
0031         min_layers_per_trackster = 10,
0032         min_cos_theta = 0.97,  # ~14 degrees
0033         min_cos_pointing = 0.94, # ~20 degrees
0034         root_doublet_max_distance_from_seed_squared = 2.5e-3, # dR=0.05
0035         max_delta_time = 3.
0036     ),
0037     itername = "TrkEM",
0038 )
0039 
0040 ticlTrkEMStepTask = cms.Task(ticlSeedingTrk
0041     ,filteredLayerClustersTrkEM
0042     ,ticlTrackstersTrkEM)
0043 
0044 # HFNOSE CLUSTER FILTERING/MASKING
0045 
0046 filteredLayerClustersHFNoseTrkEM = filteredLayerClustersTrkEM.clone(
0047     LayerClusters = 'hgcalLayerClustersHFNose',
0048     LayerClustersInputMask = "hgcalLayerClustersHFNose:InitialLayerClustersMask",
0049     min_cluster_size = 3, # inclusive
0050     algo_number = [9], # reco::CaloCluster::hfnose
0051     iteration_label = "TrkEMn"
0052 )
0053 
0054 # HFNOSE CA - PATTERN RECOGNITION
0055 
0056 ticlTrackstersHFNoseTrkEM = ticlTrackstersTrkEM.clone(
0057     detector = "HFNose",
0058     layer_clusters = "hgcalLayerClustersHFNose",
0059     layer_clusters_hfnose_tiles = "ticlLayerTileHFNose",
0060     original_mask = "hgcalLayerClustersHFNose:InitialLayerClustersMask",
0061     filtered_mask = "filteredLayerClustersHFNoseTrkEM:TrkEMn",
0062     seeding_regions = "ticlSeedingTrkHFNose",
0063     time_layerclusters = "hgcalLayerClustersHFNose:timeLayerCluster",
0064     itername = "TrkEMn",
0065     pluginPatternRecognitionByCA = dict(
0066         filter_on_categories = [0, 1],
0067         min_layers_per_trackster = 5,
0068         pid_threshold = 0.,
0069         shower_start_max_layer = 5 #inclusive
0070     )
0071 )
0072 
0073 ticlHFNoseTrkEMStepTask = cms.Task(ticlSeedingTrkHFNose
0074     ,filteredLayerClustersHFNoseTrkEM
0075     ,ticlTrackstersHFNoseTrkEM)
0076