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 ),
00041 maxTriplets = cms.int32(50000),
00042 maxSeeds = cms.int32(20000),
00043 RegionPSet = cms.PSet(
00044 originZPosition = cms.double(0.0),
00045 originRadius = cms.double(150.0),
00046 originHalfLength = cms.double(90.0),
00047 ptMin = cms.double(0.5),
00048 pMin = cms.double(1.0),
00049 ),
00050 TripletsPSet = cms.PSet(
00051 layerInfo,
00052 layerList = makeSimpleCosmicSeedLayers('ALL'),
00053 debugLevel = cms.untracked.uint32(0),
00054 ),
00055 seedOnMiddle = cms.bool(False),
00056 rescaleError = cms.double(1.0),
00057
00058 ClusterChargeCheck = cms.PSet(
00059 checkCharge = cms.bool(False),
00060 matchedRecHitsUseAnd = cms.bool(True),
00061 Thresholds = cms.PSet(
00062 TIB = cms.int32(0),
00063 TID = cms.int32(0),
00064 TOB = cms.int32(0),
00065 TEC = cms.int32(0),
00066 ),
00067 ),
00068 HitsPerModuleCheck = cms.PSet(
00069 checkHitsPerModule = cms.bool(True),
00070 Thresholds = cms.PSet(
00071 TIB = cms.int32(20),
00072 TID = cms.int32(20),
00073 TOB = cms.int32(20),
00074 TEC = cms.int32(20),
00075 ),
00076 ),
00077 minimumGoodHitsInSeed = cms.int32(3),
00078
00079 writeTriplets = cms.bool(False),
00080 helixDebugLevel = cms.untracked.uint32(0),
00081 seedDebugLevel = cms.untracked.uint32(0),
00082
00083 PositiveYOnly = cms.bool(False),
00084 NegativeYOnly = cms.bool(False)
00085
00086 )
00087 simpleCosmicBONSeeds.TripletsPSet.TEC.useSimpleRphiHitsCleaner = False