1 import FWCore.ParameterSet.Config
as cms
6 layerList = cms.vstring()
8 layers = [
'TOB',
'TEC',
'TOBTEC',
'TECSKIP' ]
10 layerList += [
'TOB4+TOB5+TOB6',
17 TECwheelTriplets = [ (i,i+1,i+2)
for i
in range(7,0,-1)]
18 layerList += [
'TEC%d_pos+TEC%d_pos+TEC%d_pos' % ls
for ls
in TECwheelTriplets ]
19 layerList += [
'TEC%d_neg+TEC%d_neg+TEC%d_neg' % ls
for ls
in TECwheelTriplets ]
20 if 'TECSKIP' in layers:
21 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) ]
22 layerList += [
'TEC%d_pos+TEC%d_pos+TEC%d_pos' % ls
for ls
in TECwheelTriplets ]
23 layerList += [
'TEC%d_neg+TEC%d_neg+TEC%d_neg' % ls
for ls
in TECwheelTriplets ]
24 if 'TOBTEC' in layers:
25 layerList += [
'TOB6+TEC1_pos+TEC2_pos',
26 'TOB6+TEC1_neg+TEC2_neg',
28 'TOB6+TOB5+TEC1_neg' ]
32 layerInfo = RecoTracker.SpecialSeedGenerators.CombinatorialSeedGeneratorForCosmics_cfi.layerInfo.clone()
33 layerInfo.TEC.useSimpleRphiHitsCleaner =
False 36 simpleCosmicBONSeeds = cms.EDProducer(
"SimpleCosmicBONSeeder",
37 TTRHBuilder = cms.string(
'WithTrackAngle'),
38 ClusterCheckPSet = cms.PSet(
39 doClusterCheck = cms.bool(
True),
40 MaxNumberOfCosmicClusters = cms.uint32(300),
41 ClusterCollectionLabel = cms.InputTag(
"siStripClusters"),
42 DontCountDetsAboveNClusters = cms.uint32(20),
43 MaxNumberOfPixelClusters = cms.uint32(300),
44 PixelClusterCollectionLabel = cms.InputTag(
"siPixelClusters")
46 maxTriplets = cms.int32(50000),
47 maxSeeds = cms.int32(20000),
48 RegionPSet = cms.PSet(
49 originZPosition = cms.double(0.0),
50 originRadius = cms.double(150.0),
51 originHalfLength = cms.double(90.0),
52 ptMin = cms.double(0.5),
53 pMin = cms.double(1.0),
55 TripletsSrc = cms.InputTag(
"simpleCosmicBONSeedingLayers"),
56 TripletsDebugLevel = cms.untracked.uint32(0),
57 seedOnMiddle = cms.bool(
False),
58 rescaleError = cms.double(1.0),
60 ClusterChargeCheck = cms.PSet(
61 checkCharge = cms.bool(
False),
62 matchedRecHitsUseAnd = cms.bool(
True),
63 Thresholds = cms.PSet(
70 HitsPerModuleCheck = cms.PSet(
71 checkHitsPerModule = cms.bool(
True),
72 Thresholds = cms.PSet(
79 minimumGoodHitsInSeed = cms.int32(3),
81 writeTriplets = cms.bool(
False),
82 helixDebugLevel = cms.untracked.uint32(0),
83 seedDebugLevel = cms.untracked.uint32(0),
85 PositiveYOnly = cms.bool(
False),
86 NegativeYOnly = cms.bool(
False)
def makeSimpleCosmicSeedLayers(layers)