CMS 3D CMS Logo

SimpleCosmicBONSeeder_cfi.py

Go to the documentation of this file.
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     #print "SEEDING LAYER LIST = ", layerList
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),  # if N > 0, ignore in total the dets with more than N clusters
00040     ),
00041     maxTriplets = cms.int32(50000),
00042     maxSeeds    = cms.int32(20000),
00043     RegionPSet = cms.PSet(
00044         originZPosition  = cms.double(0.0),    # \    These three parameters
00045         originRadius     = cms.double(150.0),  #  |-> probably don't change
00046         originHalfLength = cms.double(90.0),   # /    anything at all.
00047         ptMin = cms.double(0.5),               # pt cut, applied both at the triplet finding and at the seeding level
00048         pMin  = cms.double(1.0),               # p  cut, applied only at the seeding level
00049     ),
00050     TripletsPSet = cms.PSet(
00051         layerInfo,
00052         layerList = makeSimpleCosmicSeedLayers('ALL'),
00053         debugLevel = cms.untracked.uint32(0),  # debug triplet finding (0 to 3)
00054     ),
00055     seedOnMiddle    = cms.bool(False), # after finding the triplet, add only two hits to the seed
00056     rescaleError    = cms.double(1.0), # we don't need it anymore. At least for runs with BON
00057 
00058     ClusterChargeCheck = cms.PSet(
00059         checkCharge                 = cms.bool(False), # Apply cuts on cluster charge
00060         matchedRecHitsUseAnd        = cms.bool(True), # Both clusters in the pair should pass the charge cut
00061         Thresholds  = cms.PSet( # Uncorrected thresholds
00062             TIB = cms.int32(0), #
00063             TID = cms.int32(0), # Currenlty not used
00064             TOB = cms.int32(0), # 
00065             TEC = cms.int32(0), #
00066         ),
00067     ),
00068     HitsPerModuleCheck = cms.PSet(
00069         checkHitsPerModule = cms.bool(True), # Apply cuts on the number of hits per module 
00070         Thresholds  = cms.PSet( # 
00071             TIB = cms.int32(20), #
00072             TID = cms.int32(20), # FIXME: to be optimized
00073             TOB = cms.int32(20), # 
00074             TEC = cms.int32(20), #
00075         ),
00076     ),
00077     minimumGoodHitsInSeed = cms.int32(3),   # NO bad hits in the seed (set to '2' to allow one bad hit in the seed)
00078                                       
00079     writeTriplets   = cms.bool(False), # write the triplets to the Event as OwnVector<TrackingRecHit>
00080     helixDebugLevel = cms.untracked.uint32(0), # debug FastHelix (0 to 2)
00081     seedDebugLevel  = cms.untracked.uint32(0), # debug seed building (0 to 3)
00082     #***top-bottom
00083     PositiveYOnly = cms.bool(False),
00084     NegativeYOnly = cms.bool(False)
00085     #***
00086 )
00087 simpleCosmicBONSeeds.TripletsPSet.TEC.useSimpleRphiHitsCleaner = False

Generated on Tue Jun 9 17:45:44 2009 for CMSSW by  doxygen 1.5.4