Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:08:35

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 # process declaration
0004 process = cms.Process('SiStripOnline')
0005 
0006 
0007 #############################################
0008 # General setup
0009 #############################################
0010 
0011 # message logger
0012 process.load('DQM.SiStripCommissioningSources.OnlineMessageLogger_cff')
0013 
0014 # DQM service
0015 process.load('DQM.SiStripCommissioningSources.OnlineDQM_cff')
0016 
0017 # config db settings
0018 process.load('DQM.SiStripCommissioningSources.OnlineSiStripConfigDb_cff')
0019 
0020 # input source
0021 process.load('DQM.SiStripCommissioningSources.OnlineSource_cfi')
0022 
0023 
0024 ##############################################
0025 # modules & path for analysis without tracking
0026 ##############################################
0027 
0028 # tracker digi producer
0029 process.load('EventFilter.SiStripRawToDigi.FedChannelDigis_cfi')
0030 
0031 # filter to distinguish between runs not needing or needing tracking
0032 process.load('DQM.SiStripCommissioningSources.TrackingRunTypeFilter_cfi')
0033 
0034 # Commissioning source file production
0035 process.load('DQM.SiStripCommissioningSources.CommissioningHistos_cfi')
0036 process.CommissioningHistos.CommissioningTask = 'UNDEFINED'  # <-- run type taken from event data, but can be overriden
0037 
0038 # the path to run for analysis without tracking
0039 process.p1 = cms.Path(
0040     process.FedChannelDigis *
0041     ~process.trackingRunTypeFilter *
0042     process.CommissioningHistos
0043 )
0044 
0045 
0046 #############################################
0047 # setup to prepare tracking
0048 #############################################
0049 
0050 # reco inclusion ; cleanup? // was: I'd love to include less, but I fail...
0051 process.load('Configuration.StandardSequences.Reconstruction_cff')
0052 # geometry
0053 process.load('DQM.SiStripCommissioningSources.P5Geometry_cff')
0054 # magnetic field (0T by default)
0055 process.load('MagneticField.Engine.uniformMagneticField_cfi')
0056 
0057 # fake global position
0058 process.load('Alignment.CommonAlignmentProducer.GlobalPosition_Fake_cff')
0059 # fake conditions for gain
0060 process.load('CalibTracker.Configuration.SiStripGain.SiStripGain_Fake_cff')
0061 # empty quality fake, avoiding RunIfoRcd from DB
0062 process.load("CalibTracker.SiStripESProducers.SiStripQualityESProducer_cfi")
0063 process.siStripQualityESProducer.UseEmptyRunInfo = cms.bool(True)
0064 process.siStripQualityESProducer.ListOfRecordToMerge = cms.VPSet()
0065 # fake LA conditions
0066 process.load('CalibTracker.SiStripESProducers.fake.SiStripLorentzAngleFakeESSource_cfi')
0067 # fake conditions for threshold
0068 process.load('CalibTracker.SiStripESProducers.fake.SiStripThresholdFakeESSource_cfi')
0069 process.load('CalibTracker.SiPixelESProducers.SiPixelFakeLorentzAngleESSource_cfi')
0070 # beam spot fake conditions
0071 process.load('RecoVertex.BeamSpotProducer.BeamSpotFakeConditionsNominalCollision_cfi')
0072 
0073 # rechit matcher
0074 process.load('RecoLocalTracker.SiStripRecHitConverter.SiStripRecHitMatcher_cfi')
0075 # CPEs
0076 process.load('RecoLocalTracker.SiStripRecHitConverter.StripCPEfromTrackAngle_cfi')
0077 # TransientTrackingBuilder
0078 process.load('RecoTracker.TransientTrackingRecHit.TransientTrackingRecHitBuilder_cfi')
0079 process.ttrhbwr.PixelCPE = cms.string('PixelCPEfromTrackAngle')
0080 # MeasurementTracker
0081 process.load('RecoTracker.MeasurementDet.MeasurementTrackerESProducer_cff')
0082 process.MeasurementTracker.StripCPE = cms.string('StripCPEfromTrackAngle')
0083 process.MeasurementTracker.PixelCPE = cms.string('PixelCPEfromTrackAngle')
0084 process.MeasurementTracker.UseStripModuleQualityDB = cms.bool(False)   # read Module status from SiStripQuality
0085 process.MeasurementTracker.UseStripAPVFiberQualityDB = cms.bool(False) # read APV and Fiber status from SiStripQuality
0086 process.MeasurementTracker.UseStripStripQualityDB = cms.bool(False)    # read Strip status from SiStripQuality
0087 
0088 
0089 #############################################
0090 # modules & path for analysis with tracking
0091 #############################################
0092 
0093 # strips digi zero suppression
0094 process.load('RecoLocalTracker.SiStripZeroSuppression.SiStripZeroSuppression_cfi')
0095 process.siStripZeroSuppression.RawDigiProducersList = cms.VInputTag(
0096     cms.InputTag('FedChannelDigis','VirginRaw'), 
0097     cms.InputTag('FedChannelDigis','ProcessedRaw'),
0098     cms.InputTag('FedChannelDigis','ScopeMode')
0099 )
0100 
0101 # produce clusters from zero suppressed digis
0102 process.load('RecoLocalTracker.SiStripClusterizer.SiStripClusterizer_cfi')
0103 process.siStripClusters.DigiProducersList = cms.VInputTag(
0104     cms.InputTag('FedChannelDigis','ZeroSuppressed'),
0105     cms.InputTag('siStripZeroSuppression','VirginRaw'),
0106     cms.InputTag('siStripZeroSuppression','ProcessedRaw'),
0107     cms.InputTag('siStripZeroSuppression','ScopeMode')
0108 )
0109 
0110 # produce the rechits
0111 process.load('RecoLocalTracker.SiStripRecHitConverter.SiStripRecHitConverter_cfi')
0112 
0113 # find the seeds
0114 process.load('DQM.SiStripCommissioningSources.P5SeedGenerator_cff')
0115 
0116 # reconstruct track candidates
0117 process.load('DQM.SiStripCommissioningSources.P5CosmicCandidateFinder_cff')
0118 
0119 # reconstruct tracks
0120 process.load('RecoTracker.TrackProducer.TrackProducer_cfi')
0121 process.TrackProducer.src = cms.InputTag('cosmicCandidateFinder')
0122 process.TrackProducer.Fitter = cms.string('RKFittingSmoother')
0123 process.TrackProducer.TrajectoryInEvent = cms.bool(True)
0124 process.TrackProducer.TTRHBuilder = cms.string('WithTrackAngle')
0125 process.TrackProducer.AlgorithmName = cms.string('cosmic')
0126 process.TrackProducer.alias=('') # can we drop this?
0127 
0128 # do the fine delay analysis
0129 process.load('DQM.SiStripCommissioningSources.SiStripFineDelayHit_cfi')
0130 
0131 # Commissioning source file production
0132 process.CommissioningHistosWithTracking = process.CommissioningHistos.clone(
0133     InputModuleLabel = 'siStripFineDelayHit',
0134     SignalToNoiseCut = cms.double(3.0)
0135 )
0136 
0137 # the path to run for analysis with tracking
0138 process.p2 = cms.Path(
0139     process.FedChannelDigis *
0140     process.trackingRunTypeFilter *
0141     process.offlineBeamSpot *
0142     process.siStripZeroSuppression *
0143     process.siStripClusters *
0144     process.siStripMatchedRecHits *
0145     process.cosmicseedfinder *
0146     process.cosmicCandidateFinder *
0147     process.TrackProducer *
0148     process.siStripFineDelayHit *
0149     process.CommissioningHistosWithTracking
0150 )
0151 
0152 
0153 #############################################
0154 # output
0155 #############################################
0156 
0157 process.load('DQM.SiStripCommissioningSources.OnlineOutput_cfi')
0158 process.outpath = cms.EndPath( process.consumer )
0159 
0160 
0161 #############################################
0162