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