CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_9/src/Configuration/DataProcessing/python/RecoTLR.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 #gone with the fact that there is no difference between production and development sequence
00004 #def customiseCommon(process):
00005 #    return (process)
00006 
00007 
00008 ##############################################################################
00009 def customisePPData(process):
00010     #deprecated process= customiseCommon(process)
00011     ##all customisation for data are now deprecated to Reconstruction_Data_cff
00012     #left as a place holder to alter production sequences in case of emergencies
00013     return process
00014 
00015 
00016 ##############################################################################
00017 def customisePPMC(process):
00018     #deprecated process=customiseCommon(process)
00019     #left as a place holder to alter production sequences in case of emergencies    
00020     return process
00021 
00022 ##############################################################################
00023 def customiseCosmicData(process):
00024 
00025     return process
00026 
00027 ##############################################################################
00028 def customiseCosmicMC(process):
00029     
00030     return process
00031         
00032 ##############################################################################
00033 def customiseVALSKIM(process):
00034     print "WARNING"
00035     print "this method is outdated, please use RecoTLR.customisePPData"
00036     process= customisePPData(process)
00037     return process
00038                 
00039 ##############################################################################
00040 def customiseExpress(process):
00041     process= customisePPData(process)
00042 
00043     import RecoVertex.BeamSpotProducer.BeamSpotOnline_cfi
00044     process.offlineBeamSpot = RecoVertex.BeamSpotProducer.BeamSpotOnline_cfi.onlineBeamSpotProducer.clone()
00045     
00046     return process
00047 
00048 ##############################################################################
00049 def customisePrompt(process):
00050     process= customisePPData(process)
00051 
00052     #add the lumi producer in the prompt reco only configuration
00053     process.reconstruction_step+=process.lumiProducer
00054     return process
00055 
00056 ##############################################################################
00057 ##############################################################################
00058 
00059 #gone with the fact that there is no difference between production and development sequence
00060 #def customiseCommonHI(process):
00061 #    return process
00062 
00063 ##############################################################################
00064 def customiseExpressHI(process):
00065     #deprecated process= customiseCommonHI(process)
00066 
00067     import RecoVertex.BeamSpotProducer.BeamSpotOnline_cfi
00068     process.offlineBeamSpot = RecoVertex.BeamSpotProducer.BeamSpotOnline_cfi.onlineBeamSpotProducer.clone()
00069     
00070     return process
00071 
00072 ##############################################################################
00073 def customisePromptHI(process):
00074     #deprecated process= customiseCommonHI(process)
00075 
00076     import RecoVertex.BeamSpotProducer.BeamSpotOnline_cfi
00077     process.offlineBeamSpot = RecoVertex.BeamSpotProducer.BeamSpotOnline_cfi.onlineBeamSpotProducer.clone()
00078     
00079     return process
00080 
00081 ##############################################################################
00082 
00083 def planBTracking(process):
00084 
00085     # stuff from LowPtTripletStep_cff
00086     process.lowPtTripletStepSeeds.RegionFactoryPSet.RegionPSet.ptMin=0.3
00087 
00088     # stuff from PixelLessStep_cff
00089     process.pixelLessStepClusters.oldClusterRemovalInfo=cms.InputTag("tobTecStepClusters")
00090     process.pixelLessStepClusters.trajectories= cms.InputTag("tobTecStepTracks")
00091     process.pixelLessStepClusters.overrideTrkQuals=cms.InputTag('tobTecStepSelector','tobTecStep')
00092     process.pixelLessStepSeeds.RegionFactoryPSet.RegionPSet.ptMin = 0.7
00093     process.pixelLessStepSeeds.RegionFactoryPSet.RegionPSet.originRadius = 1.5
00094 
00095     # stuff from PixelPairStep_cff
00096     process.pixelPairStepSeeds.RegionFactoryPSet.RegionPSet.ptMin = 0.6
00097 
00098     # stuff from TobTecStep_cff
00099     process.tobTecStepClusters.oldClusterRemovalInfo=cms.InputTag("detachedTripletStepClusters")
00100     process.tobTecStepClusters.trajectories= cms.InputTag("detachedTripletStepTracks")
00101     process.tobTecStepClusters.overrideTrkQuals=cms.InputTag('detachedTripletStep')
00102     process.tobTecStepSeeds.RegionFactoryPSet.RegionPSet.originRadius = 5.0
00103 
00104     # stuff from DetachedTripletStep_cff
00105     process.detachedTripletStepSeeds.RegionFactoryPSet.RegionPSet.ptMin=0.35
00106 
00107     # stuff from iterativeTk_cff
00108     process.iterTracking = cms.Sequence(process.InitialStep*
00109                                         process.LowPtTripletStep*
00110                                         process.PixelPairStep*
00111                                         process.DetachedTripletStep*
00112                                         process.TobTecStep*
00113                                         process.PixelLessStep*
00114                                         process.generalTracks*
00115                                         process.ConvStep*
00116                                         process.conversionStepTracks
00117                                         )
00118     
00119     
00120     # stuff from RecoTracker_cff
00121     process.newCombinedSeeds.seedCollections=cms.VInputTag(
00122         cms.InputTag('initialStepSeeds'),
00123         cms.InputTag('pixelPairStepSeeds'),
00124     #    cms.InputTag('mixedTripletStepSeeds'),
00125         cms.InputTag('pixelLessStepSeeds')
00126         )
00127 
00128     # stuff from Kevin's fragment
00129     process.generalTracks.TrackProducers = (cms.InputTag('initialStepTracks'),
00130                                             cms.InputTag('lowPtTripletStepTracks'),
00131                                             cms.InputTag('pixelPairStepTracks'),
00132                                             cms.InputTag('detachedTripletStepTracks'),
00133                                             cms.InputTag('pixelLessStepTracks'),
00134                                             cms.InputTag('tobTecStepTracks'))
00135     process.generalTracks.hasSelector=cms.vint32(1,1,1,1,1,1)
00136     process.generalTracks.selectedTrackQuals = cms.VInputTag(cms.InputTag("initialStepSelector","initialStep"),
00137                                                              cms.InputTag("lowPtTripletStepSelector","lowPtTripletStep"),
00138                                                              cms.InputTag("pixelPairStepSelector","pixelPairStep"),
00139                                                              cms.InputTag("detachedTripletStep"),
00140                                                              cms.InputTag("pixelLessStepSelector","pixelLessStep"),
00141                                                              cms.InputTag("tobTecStepSelector","tobTecStep")
00142                                                              )
00143     process.generalTracks.setsToMerge = cms.VPSet( cms.PSet( tLists=cms.vint32(0,1,2,3,4,5), pQual=cms.bool(True) ) )
00144 
00145 
00146     if hasattr(process,'dqmoffline_step'):
00147         process.dqmoffline_step.remove(process.TrackMonStep4)
00148         #process.dqmoffline_step.remove(process.TrackMonStep5)
00149         
00150     return process