Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-10-11 04:34:12

0001 # The following comments couldn't be translated into the new config version:
0002 
0003 #also some pairs in the barrel, in case the triplet fail. If the triplet secceds, the pairs should be skipped by the trajectory builder 
0004 #for the TEC we use pairs (Fasthelix not working properly with ss TEC hits)
0005 # genereator for TEC+ outsideIn
0006 
0007 #generator for TEC+ insideOut
0008 #generator for TEC- outsideIn
0009 #generator for TEC- insideOut 
0010 import FWCore.ParameterSet.Config as cms
0011 
0012 # magnetic field
0013 
0014 # cms geometry
0015 # tracker geometry
0016 # tracker numbering
0017 #stripCPE
0018 from RecoLocalTracker.SiStripRecHitConverter.StripCPEfromTrackAngle_cfi import *
0019 #TransientTrackingBuilder
0020 from RecoTracker.TransientTrackingRecHit.TransientTrackingRecHitBuilder_cfi import *
0021 from RecoTracker.TransientTrackingRecHit.TransientTrackingRecHitBuilderWithoutRefit_cfi import *
0022 from RecoTracker.SpecialSeedGenerators.CombinatorialSeedGeneratorForCosmics_cfi import *
0023 import RecoTracker.TkSeedingLayers.seedingLayersEDProducer_cfi as _mod
0024 
0025 # seeding layers
0026 combinatorialcosmicseedingtripletsP5 = _mod.seedingLayersEDProducer.clone(
0027     layerInfo,
0028     layerList = ['MTOB4+MTOB5+MTOB6', 
0029                  'MTOB3+MTOB5+MTOB6', 
0030                  'MTOB3+MTOB4+MTOB5', 
0031                  'TOB2+MTOB4+MTOB5', 
0032                  'MTOB3+MTOB4+MTOB6', 
0033                  'TOB2+MTOB4+MTOB6'],
0034 )
0035 combinatorialcosmicseedingpairsTOBP5 = _mod.seedingLayersEDProducer.clone( 
0036     layerInfo,
0037     layerList = ['MTOB5+MTOB6', 
0038                  'MTOB4+MTOB5'],
0039 )
0040 combinatorialcosmicseedingpairsTECposP5 = _mod.seedingLayersEDProducer.clone(
0041     layerList = ['TEC1_pos+TEC2_pos', 
0042                  'TEC2_pos+TEC3_pos', 
0043                  'TEC3_pos+TEC4_pos', 
0044                  'TEC4_pos+TEC5_pos', 
0045                  'TEC5_pos+TEC6_pos', 
0046                  'TEC6_pos+TEC7_pos', 
0047                  'TEC7_pos+TEC8_pos', 
0048                  'TEC8_pos+TEC9_pos'],
0049     TEC = dict(
0050         minRing = cms.int32(5),
0051         matchedRecHits = cms.InputTag("siStripMatchedRecHits","matchedRecHit"),
0052         useRingSlector = cms.bool(True),
0053         TTRHBuilder = cms.string('WithTrackAngle'),
0054         clusterChargeCut = cms.PSet(refToPSet_ = cms.string('SiStripClusterChargeCutNone')),
0055         rphiRecHits = cms.InputTag("siStripMatchedRecHits","rphiRecHit"),
0056         maxRing = cms.int32(7)
0057     )
0058 )
0059 combinatorialcosmicseedingpairsTECnegP5 = _mod.seedingLayersEDProducer.clone(
0060     layerList = ['TEC1_neg+TEC2_neg', 
0061                  'TEC2_neg+TEC3_neg', 
0062                  'TEC3_neg+TEC4_neg', 
0063                  'TEC4_neg+TEC5_neg', 
0064                  'TEC5_neg+TEC6_neg', 
0065                  'TEC6_neg+TEC7_neg', 
0066                  'TEC7_neg+TEC8_neg', 
0067                  'TEC8_neg+TEC9_neg'],
0068     TEC = dict(
0069         minRing = cms.int32(5),
0070         matchedRecHits = cms.InputTag("siStripMatchedRecHits","matchedRecHit"),
0071         useRingSlector = cms.bool(True),
0072         TTRHBuilder = cms.string('WithTrackAngle'),
0073         clusterChargeCut = cms.PSet(refToPSet_ = cms.string('SiStripClusterChargeCutNone')),
0074         rphiRecHits = cms.InputTag("siStripMatchedRecHits","rphiRecHit"),
0075         maxRing = cms.int32(7)
0076     )
0077 )
0078 combinatorialcosmicseedinglayersP5Task = cms.Task(combinatorialcosmicseedingtripletsP5, 
0079                                                   combinatorialcosmicseedingpairsTOBP5,
0080                                                   combinatorialcosmicseedingpairsTECposP5,
0081                                                   combinatorialcosmicseedingpairsTECnegP5)
0082 combinatorialcosmicseedinglayersP5 = cms.Sequence(combinatorialcosmicseedinglayersP5Task)
0083 #seeding module
0084 combinatorialcosmicseedfinderP5 = combinatorialcosmicseedfinder.clone(
0085 #replace combinatorialcosmicseedfinderP5.SetMomentum = false
0086     requireBOFF                = True,
0087     UseScintillatorsConstraint = False,
0088     OrderedHitsFactoryPSets    = cms.VPSet(
0089     cms.PSet(
0090         ComponentName = cms.string('GenericTripletGenerator'),
0091         LayerSrc = cms.InputTag("combinatorialcosmicseedingtripletsP5"),
0092         PropagationDirection = cms.string('alongMomentum'),
0093         NavigationDirection = cms.string('outsideIn')
0094     ), 
0095     cms.PSet(
0096         ComponentName = cms.string('GenericPairGenerator'),
0097         LayerSrc = cms.InputTag("combinatorialcosmicseedingpairsTOBP5"),
0098         PropagationDirection = cms.string('alongMomentum'),
0099         NavigationDirection = cms.string('outsideIn')
0100     ), 
0101     cms.PSet(
0102         ComponentName = cms.string('GenericPairGenerator'),
0103         LayerSrc = cms.InputTag("combinatorialcosmicseedingpairsTECposP5"),
0104         PropagationDirection = cms.string('alongMomentum'),
0105         NavigationDirection = cms.string('outsideIn')
0106     ), 
0107     cms.PSet(
0108         ComponentName = cms.string('GenericPairGenerator'),
0109         LayerSrc = cms.InputTag("combinatorialcosmicseedingpairsTECposP5"),
0110         PropagationDirection = cms.string('alongMomentum'),
0111         NavigationDirection = cms.string('insideOut')
0112     ), 
0113     cms.PSet(
0114         ComponentName = cms.string('GenericPairGenerator'),
0115         LayerSrc = cms.InputTag("combinatorialcosmicseedingpairsTECnegP5"),
0116         PropagationDirection = cms.string('alongMomentum'),
0117         NavigationDirection = cms.string('outsideIn')
0118     ), 
0119     cms.PSet(
0120         ComponentName = cms.string('GenericPairGenerator'),
0121         LayerSrc = cms.InputTag("combinatorialcosmicseedingpairsTECnegP5"),
0122         PropagationDirection = cms.string('alongMomentum'),
0123         NavigationDirection = cms.string('insideOut')
0124     ))
0125 )