Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-06-15 05:26:34

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from RecoLocalTracker.SiStripClusterizer.SiStripClusterChargeCut_cfi import *
0004 
0005 layerInfo = cms.PSet(
0006     TOB = cms.PSet(
0007       TTRHBuilder = cms.string('WithTrackAngle'),
0008       clusterChargeCut = cms.PSet(refToPSet_ = cms.string('SiStripClusterChargeCutNone'))
0009       ),
0010     TEC = cms.PSet(
0011       minRing = cms.int32(6),
0012       useRingSlector = cms.bool(False),
0013       TTRHBuilder = cms.string('WithTrackAngle'),
0014       clusterChargeCut = cms.PSet(refToPSet_ = cms.string('SiStripClusterChargeCutNone')),
0015       maxRing = cms.int32(7)
0016       )
0017 )
0018 layerList = ['TOB6+TOB5',
0019              'TOB6+TOB4', 
0020              'TOB6+TOB3',
0021              'TOB5+TOB4',
0022              'TOB5+TOB3',
0023              'TOB4+TOB3',
0024              'TEC1_neg+TOB6',
0025              'TEC1_neg+TOB5',
0026              'TEC1_neg+TOB4',
0027              'TEC1_pos+TOB6',
0028              'TEC1_pos+TOB5',
0029              'TEC1_pos+TOB4'                                   
0030              ]
0031 from RecoTracker.TkSeedGenerator.SeedFromConsecutiveHitsCreator_cfi import SeedFromConsecutiveHitsCreator as _SeedFromConsecutiveHitsCreator
0032 CosmicSeedCreator = _SeedFromConsecutiveHitsCreator.clone(
0033     ComponentName = 'CosmicSeedCreator',
0034     # extra parameter specific to CosmicSeedCreator
0035     maxseeds      = cms.int32(10000)
0036 )
0037 
0038 regionalCosmicTrackerSeeds = cms.EDProducer( "SeedGeneratorFromRegionHitsEDProducer",
0039    RegionFactoryPSet = cms.PSet(                                 
0040       ComponentName = cms.string( "CosmicRegionalSeedGenerator" ),
0041       RegionPSet = cms.PSet(
0042         ptMin          = cms.double( 1.0 ),
0043         rVertex        = cms.double( 5 ),
0044         zVertex        = cms.double( 5 ),
0045         deltaEtaRegion = cms.double( 0.1 ),
0046         deltaPhiRegion = cms.double( 0.1 ),
0047         precise        = cms.bool( True ),
0048         measurementTrackerName = cms.string('')
0049         ),
0050       ToolsPSet = cms.PSet(
0051         thePropagatorName           = cms.string("AnalyticalPropagator"),
0052         regionBase                  = cms.string("seedOnCosmicMuon") # seedOnL2Muon or seedOnCosmicMuon or seedOnStaMuon(default)
0053 
0054         ),
0055       CollectionsPSet = cms.PSet(
0056         recoMuonsCollection            = cms.InputTag(""),  # se to "muons" and change ToolsPSet.regionBase to "" in order to use these.
0057         recoTrackMuonsCollection       = cms.InputTag("cosmicMuons"), # or cosmicMuons1Leg and change ToolsPSet.regionBase to "seedOnCosmicMuon" in order to use these.
0058         recoL2MuonsCollection          = cms.InputTag(""), # given by the hlt path sequence
0059         ),
0060       RegionInJetsCheckPSet = cms.PSet( # verify if the region is built inside a jet
0061         doJetsExclusionCheck   = cms.bool( True ),
0062         deltaRExclusionSize    = cms.double( 0.3 ),
0063         jetsPtMin              = cms.double( 5 ),
0064         recoCaloJetsCollection = cms.InputTag("ak4CaloJets")
0065         )
0066     ),
0067     OrderedHitsFactoryPSet = cms.PSet(
0068         ComponentName = cms.string( "GenericPairGenerator"),
0069         LayerSrc = cms.InputTag("regionalCosmicTrackerSeedingLayers")
0070     ), 
0071 
0072     ClusterCheckPSet = cms.PSet (
0073       MaxNumberOfCosmicClusters = cms.uint32(10000),
0074       ClusterCollectionLabel = cms.InputTag( "siStripClusters" ),
0075       MaxNumberOfPixelClusters = cms.uint32(10000),
0076       PixelClusterCollectionLabel = cms.InputTag("siPixelClusters"),
0077       doClusterCheck = cms.bool( False )
0078     ) ,
0079 
0080     SeedComparitorPSet = cms.PSet(  ComponentName = cms.string( "none" ) ),
0081 
0082     SeedCreatorPSet = CosmicSeedCreator
0083           
0084 )
0085 
0086 # FIXME: in the phase2 customization, these lines were ported from SLHC,
0087 # probably they need to be reviewed by cosmics experts
0088 #regionalCosmicTrackerSeedingLayers.layerList  = cms.vstring('BPix9+BPix8')  # Optimize later
0089 #regionalCosmicTrackerSeedingLayers.BPix = cms.PSet(
0090 #    HitProducer = cms.string('siPixelRecHits'),
0091 #    hitErrorRZ = cms.double(0.006),
0092 #    useErrorsFromParam = cms.bool(True),
0093 #    TTRHBuilder = cms.string('TTRHBuilderWithoutAngle4PixelPairs'),
0094 #    skipClusters = cms.InputTag("pixelPairStepClusters"),
0095 #    hitErrorRPhi = cms.double(0.0027)
0096 #)