CMS 3D CMS Logo

SimpleCosmicBONSeeder_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
4 
6  layerList = cms.vstring()
7  if 'ALL' in layers:
8  layers = [ 'TOB', 'TEC', 'TOBTEC', 'TECSKIP' ]
9  if 'TOB' in layers:
10  layerList += ['MTOB4+MTOB5+MTOB6',
11  'MTOB3+MTOB5+MTOB6',
12  'MTOB3+MTOB4+MTOB5',
13  'MTOB3+MTOB4+MTOB6',
14  'TOB2+MTOB4+MTOB5',
15  'TOB2+MTOB3+MTOB5']
16  if 'TEC' in layers:
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 += [ 'MTOB6+TEC1_pos+TEC2_pos',
26  'MTOB6+TEC1_neg+TEC2_neg',
27  'MTOB6+MTOB5+TEC1_pos',
28  'MTOB6+MTOB5+TEC1_neg' ]
29  #print "SEEDING LAYER LIST = ", layerList
30  return layerList
31 
32 layerInfo = RecoTracker.SpecialSeedGenerators.CombinatorialSeedGeneratorForCosmics_cfi.layerInfo.clone(
33  TEC = dict(useSimpleRphiHitsCleaner = False)
34 )
35 layerList = makeSimpleCosmicSeedLayers('ALL'),
36 
37 simpleCosmicBONSeeds = cms.EDProducer("SimpleCosmicBONSeeder",
38  TTRHBuilder = cms.string('WithTrackAngle'),
39  ClusterCheckPSet = cms.PSet(
40  doClusterCheck = cms.bool(True),
41  MaxNumberOfCosmicClusters = cms.uint32(300),
42  ClusterCollectionLabel = cms.InputTag("siStripClusters"),
43  DontCountDetsAboveNClusters = cms.uint32(20), # if N > 0, ignore in total the dets with more than N clusters
44  MaxNumberOfPixelClusters = cms.uint32(300),
45  PixelClusterCollectionLabel = cms.InputTag("siPixelClusters")
46  ),
47  maxTriplets = cms.int32(50000),
48  maxSeeds = cms.int32(20000),
49  RegionPSet = cms.PSet(
50  originZPosition = cms.double(0.0), # \ These three parameters
51  originRadius = cms.double(150.0), # |-> probably don't change
52  originHalfLength = cms.double(90.0), # / anything at all.
53  ptMin = cms.double(0.5), # pt cut, applied both at the triplet finding and at the seeding level
54  pMin = cms.double(1.0), # p cut, applied only at the seeding level
55  ),
56  TripletsSrc = cms.InputTag("simpleCosmicBONSeedingLayers"),
57  TripletsDebugLevel = cms.untracked.uint32(0), # debug triplet finding (0 to 3)
58  seedOnMiddle = cms.bool(False), # after finding the triplet, add only two hits to the seed
59  rescaleError = cms.double(1.0), # we don't need it anymore. At least for runs with BON
60 
61  ClusterChargeCheck = cms.PSet(
62  checkCharge = cms.bool(False), # Apply cuts on cluster charge
63  matchedRecHitsUseAnd = cms.bool(True), # Both clusters in the pair should pass the charge cut
64  Thresholds = cms.PSet( # Uncorrected thresholds
65  TIB = cms.int32(0), #
66  TID = cms.int32(0), # Currenlty not used
67  TOB = cms.int32(0), #
68  TEC = cms.int32(0), #
69  ),
70  ),
71  HitsPerModuleCheck = cms.PSet(
72  checkHitsPerModule = cms.bool(True), # Apply cuts on the number of hits per module
73  Thresholds = cms.PSet( #
74  TIB = cms.int32(20), #
75  TID = cms.int32(20), # FIXME: to be optimized
76  TOB = cms.int32(20), #
77  TEC = cms.int32(20), #
78  ),
79  ),
80  minimumGoodHitsInSeed = cms.int32(3), # NO bad hits in the seed (set to '2' to allow one bad hit in the seed)
81 
82  writeTriplets = cms.bool(False), # write the triplets to the Event as OwnVector<TrackingRecHit>
83  helixDebugLevel = cms.untracked.uint32(0), # debug FastHelix (0 to 2)
84  seedDebugLevel = cms.untracked.uint32(0), # debug seed building (0 to 3)
85  #***top-bottom
86  PositiveYOnly = cms.bool(False),
87  NegativeYOnly = cms.bool(False)
88  #***
89 )
90 
FastTimerService_cff.range
range
Definition: FastTimerService_cff.py:34
SimpleCosmicBONSeeder_cfi.makeSimpleCosmicSeedLayers
def makeSimpleCosmicSeedLayers(*layers)
Definition: SimpleCosmicBONSeeder_cfi.py:5
CombinatorialSeedGeneratorForCosmics_cfi