CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/DQM/SiStripCommissioningSources/python/SiStripOfflineP5_cfg.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 # process declaration
00004 process = cms.Process('SiStripOffline')
00005 
00006 
00007 #############################################
00008 # General setup
00009 #############################################
00010 
00011 # message logger
00012 process.load('DQM.SiStripCommissioningSources.OfflineMessageLogger_cff')
00013 
00014 # DQM service
00015 process.load('DQM.SiStripCommissioningSources.OfflineDQM_cff')
00016 
00017 # config db settings
00018 process.load('DQM.SiStripCommissioningSources.OfflineSiStripConfigDb_cff')
00019 process.SiStripConfigDb.Partitions.PrimaryPartition.PartitionName = 'DBPART'
00020 process.SiStripConfigDb.Partitions.PrimaryPartition.RunNumber     = RUNNUMBER
00021 
00022 # input source
00023 process.load('DQM.SiStripCommissioningSources.OfflineSource_cfi')
00024 
00025 
00026 ##############################################
00027 # modules & path for analysis without tracking
00028 ##############################################
00029 
00030 # tracker digi producer
00031 process.load('EventFilter.SiStripRawToDigi.FedChannelDigis_cfi')
00032 
00033 # filter to distinguish between runs not needing or needing tracking
00034 process.load('DQM.SiStripCommissioningSources.TrackingRunTypeFilter_cfi')
00035 
00036 # Commissioning source file production
00037 process.load('DQM.SiStripCommissioningSources.CommissioningHistos_cfi')
00038 process.CommissioningHistos.CommissioningTask = 'UNDEFINED'  # <-- run type taken from event data, but can be overriden
00039 
00040 # the path to run for analysis without tracking
00041 process.p1 = cms.Path(
00042     process.FedChannelDigis *
00043     ~process.trackingRunTypeFilter *
00044     process.CommissioningHistos
00045 )
00046 
00047 
00048 #############################################
00049 # setup to prepare tracking
00050 #############################################
00051 
00052 # reco inclusion ; cleanup? // was: I'd love to include less, but I fail...
00053 process.load('Configuration.StandardSequences.Reconstruction_cff')
00054 # geometry
00055 process.load('DQM.SiStripCommissioningSources.P5Geometry_cff')
00056 # magnetic field (0T by default)
00057 process.load('MagneticField.Engine.uniformMagneticField_cfi')
00058 
00059 # fake global position
00060 process.load('Alignment.CommonAlignmentProducer.GlobalPosition_Fake_cff')
00061 # fake conditions for gain
00062 process.load('CalibTracker.Configuration.SiStripGain.SiStripGain_Fake_cff')
00063 # empty quality fake, avoiding RunIfoRcd from DB
00064 process.load("CalibTracker.SiStripESProducers.SiStripQualityESProducer_cfi")
00065 process.siStripQualityESProducer.UseEmptyRunInfo = cms.bool(True)
00066 process.siStripQualityESProducer.ListOfRecordToMerge = cms.VPSet()
00067 # fake LA conditions
00068 process.load('CalibTracker.SiStripESProducers.fake.SiStripLorentzAngleFakeESSource_cfi')
00069 process.load('CalibTracker.SiStripESProducers.fake.SiStripLorentzAngleFakeESSource_cfi')
00070 # fake conditions for threshold
00071 process.load('CalibTracker.SiStripESProducers.fake.SiStripThresholdFakeESSource_cfi')
00072 process.load('CalibTracker.SiPixelESProducers.SiPixelFakeLorentzAngleESSource_cfi')
00073 # beam spot fake conditions
00074 process.load('RecoVertex.BeamSpotProducer.BeamSpotFakeConditionsNominalCollision_cfi')
00075 
00076 # rechit matcher
00077 process.load('RecoLocalTracker.SiStripRecHitConverter.SiStripRecHitMatcher_cfi')
00078 # CPEs
00079 process.load('RecoLocalTracker.SiStripRecHitConverter.StripCPEfromTrackAngle_cfi')
00080 process.load('RecoLocalTracker.SiPixelRecHits.PixelCPEParmError_cfi')
00081 # TransientTrackingBuilder
00082 process.load('RecoTracker.TransientTrackingRecHit.TransientTrackingRecHitBuilder_cfi')
00083 process.ttrhbwr.PixelCPE = cms.string('PixelCPEfromTrackAngle')
00084 # MeasurementTracker
00085 process.load('RecoTracker.MeasurementDet.MeasurementTrackerESProducer_cff')
00086 process.MeasurementTracker.StripCPE = cms.string('StripCPEfromTrackAngle')
00087 process.MeasurementTracker.PixelCPE = cms.string('PixelCPEfromTrackAngle')
00088 process.MeasurementTracker.UseStripModuleQualityDB = cms.bool(False)   # read Module status from SiStripQuality
00089 process.MeasurementTracker.UseStripAPVFiberQualityDB = cms.bool(False) # read APV and Fiber status from SiStripQuality
00090 process.MeasurementTracker.UseStripStripQualityDB = cms.bool(False)    # read Strip status from SiStripQuality
00091 
00092 
00093 #############################################
00094 # modules & path for analysis with tracking
00095 #############################################
00096 
00097 # strips digi zero suppression
00098 process.load('RecoLocalTracker.SiStripZeroSuppression.SiStripZeroSuppression_cfi')
00099 process.SiStripZeroSuppression.RawDigiProducersList = cms.VInputTag(
00100     cms.InputTag('FedChannelDigis','VirginRaw'), 
00101     cms.InputTag('FedChannelDigis','ProcessedRaw'),
00102     cms.InputTag('FedChannelDigis','ScopeMode')
00103 )
00104 
00105 # produce clusters from zero suppressed digis
00106 process.load('RecoLocalTracker.SiStripClusterizer.SiStripClusterizer_cfi')
00107 process.siStripClusters.DigiProducersList = cms.VInputTag(
00108     cms.InputTag('FedChannelDigis','ZeroSuppressed'),
00109     cms.InputTag('SiStripZeroSuppression','VirginRaw'),
00110     cms.InputTag('SiStripZeroSuppression','ProcessedRaw'),
00111     cms.InputTag('SiStripZeroSuppression','ScopeMode')
00112 )
00113 
00114 # produce the rechits
00115 process.load('RecoLocalTracker.SiStripRecHitConverter.SiStripRecHitConverter_cfi')
00116 
00117 # find the seeds
00118 process.load('DQM.SiStripCommissioningSources.P5SeedGenerator_cff')
00119 
00120 # reconstruct track candidates
00121 process.load('DQM.SiStripCommissioningSources.P5CosmicCandidateFinder_cff')
00122 
00123 # reconstruct tracks
00124 process.load('RecoTracker.TrackProducer.TrackProducer_cfi')
00125 process.TrackProducer.src = cms.InputTag('cosmicCandidateFinder')
00126 process.TrackProducer.Fitter = cms.string('RKFittingSmoother')
00127 process.TrackProducer.TrajectoryInEvent = cms.bool(True)
00128 process.TrackProducer.TTRHBuilder = cms.string('WithTrackAngle')
00129 process.TrackProducer.AlgorithmName = cms.string('cosmic')
00130 process.TrackProducer.alias=('') # can we drop this?
00131 
00132 # do the fine delay analysis
00133 process.load('DQM.SiStripCommissioningSources.SiStripFineDelayHit_cfi')
00134 
00135 # Commissioning source file production
00136 process.CommissioningHistosWithTracking = process.CommissioningHistos.clone()
00137 process.CommissioningHistosWithTracking.InputModuleLabel = cms.string('siStripFineDelayHit')
00138 process.CommissioningHistosWithTracking.SignalToNoiseCut = cms.double(3.0)
00139 
00140 # the path to run for analysis with tracking
00141 process.p2 = cms.Path(
00142     process.FedChannelDigis *
00143     process.trackingRunTypeFilter *
00144     process.offlineBeamSpot *
00145     process.SiStripZeroSuppression *
00146     process.siStripClusters *
00147     process.siStripMatchedRecHits *
00148     process.cosmicseedfinder *
00149     process.cosmicCandidateFinder *
00150     process.TrackProducer *
00151     process.siStripFineDelayHit *
00152     process.CommissioningHistosWithTracking
00153 )
00154 
00155 
00156 #############################################
00157 # output
00158 #############################################
00159 
00160 #process.load('DQM.SiStripCommissioningSources.OfflineOutput_cfi')
00161 #process.outpath = cms.EndPath( process.consumer )
00162 
00163 
00164 #############################################
00165