00001 import FWCore.ParameterSet.Config as cms
00002
00003 from RecoTracker.SpecialSeedGenerators.CombinatorialSeedGeneratorForCosmics_cfi import layerInfo
00004
00005 def makeSimpleCosmicSeedLayers(*layers):
00006 layerList = cms.vstring()
00007 if 'ALL' in layers:
00008 layers = [ 'TOB', 'TEC', 'TOBTEC', 'TECSKIP' ]
00009 if 'TOB' in layers:
00010 layerList += ['TOB4+TOB5+TOB6',
00011 'TOB3+TOB5+TOB6',
00012 'TOB3+TOB4+TOB5',
00013 'TOB3+TOB4+TOB6',
00014 'TOB2+TOB4+TOB5',
00015 'TOB2+TOB3+TOB5']
00016 if 'TEC' in layers:
00017 TECwheelTriplets = [ (i,i+1,i+2) for i in range(7,0,-1)]
00018 layerList += [ 'TEC%d_pos+TEC%d_pos+TEC%d_pos' % ls for ls in TECwheelTriplets ]
00019 layerList += [ 'TEC%d_neg+TEC%d_neg+TEC%d_neg' % ls for ls in TECwheelTriplets ]
00020 if 'TECSKIP' in layers:
00021 TECwheelTriplets = [ (i-1,i+1,i+2) for i in range(7,1,-1)] + [ (i-1,i,i+2) for i in range(7,1,-1) ]
00022 layerList += [ 'TEC%d_pos+TEC%d_pos+TEC%d_pos' % ls for ls in TECwheelTriplets ]
00023 layerList += [ 'TEC%d_neg+TEC%d_neg+TEC%d_neg' % ls for ls in TECwheelTriplets ]
00024 if 'TOBTEC' in layers:
00025 layerList += [ 'TOB6+TEC1_pos+TEC2_pos',
00026 'TOB6+TEC1_neg+TEC2_neg',
00027 'TOB6+TOB5+TEC1_pos',
00028 'TOB6+TOB5+TEC1_neg' ]
00029
00030 return layerList
00031
00032
00033 simpleCosmicBONSeeds = cms.EDProducer("SimpleCosmicBONSeeder",
00034 TTRHBuilder = cms.string('WithTrackAngle'),
00035 ClusterCheckPSet = cms.PSet(
00036 doClusterCheck = cms.bool(True),
00037 MaxNumberOfCosmicClusters = cms.uint32(300),
00038 ClusterCollectionLabel = cms.InputTag("siStripClusters"),
00039 DontCountDetsAboveNClusters = cms.uint32(20),
00040 MaxNumberOfPixelClusters = cms.uint32(300),
00041 PixelClusterCollectionLabel = cms.InputTag("siPixelClusters")
00042 ),
00043 maxTriplets = cms.int32(50000),
00044 maxSeeds = cms.int32(20000),
00045 RegionPSet = cms.PSet(
00046 originZPosition = cms.double(0.0),
00047 originRadius = cms.double(150.0),
00048 originHalfLength = cms.double(90.0),
00049 ptMin = cms.double(0.5),
00050 pMin = cms.double(1.0),
00051 ),
00052 TripletsPSet = cms.PSet(
00053 layerInfo,
00054 layerList = makeSimpleCosmicSeedLayers('ALL'),
00055 debugLevel = cms.untracked.uint32(0),
00056 ),
00057 seedOnMiddle = cms.bool(False),
00058 rescaleError = cms.double(1.0),
00059
00060 ClusterChargeCheck = cms.PSet(
00061 checkCharge = cms.bool(False),
00062 matchedRecHitsUseAnd = cms.bool(True),
00063 Thresholds = cms.PSet(
00064 TIB = cms.int32(0),
00065 TID = cms.int32(0),
00066 TOB = cms.int32(0),
00067 TEC = cms.int32(0),
00068 ),
00069 ),
00070 HitsPerModuleCheck = cms.PSet(
00071 checkHitsPerModule = cms.bool(True),
00072 Thresholds = cms.PSet(
00073 TIB = cms.int32(20),
00074 TID = cms.int32(20),
00075 TOB = cms.int32(20),
00076 TEC = cms.int32(20),
00077 ),
00078 ),
00079 minimumGoodHitsInSeed = cms.int32(3),
00080
00081 writeTriplets = cms.bool(False),
00082 helixDebugLevel = cms.untracked.uint32(0),
00083 seedDebugLevel = cms.untracked.uint32(0),
00084
00085 PositiveYOnly = cms.bool(False),
00086 NegativeYOnly = cms.bool(False)
00087
00088 )
00089 simpleCosmicBONSeeds.TripletsPSet.TEC.useSimpleRphiHitsCleaner = False