CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_10_patch2/src/DQM/SiStripCommissioningSources/python/SiStripOnlineCRack_cfg.py

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