CMS 3D CMS Logo

SiStripOfflineP5_cfg.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # process declaration
4 process = cms.Process('SiStripOffline')
5 
6 
7 
10 
11 # message logger
12 process.load('DQM.SiStripCommissioningSources.OfflineMessageLogger_cff')
13 
14 # DQM service
15 process.load('DQM.SiStripCommissioningSources.OfflineDQM_cff')
16 
17 # config db settings
18 process.load('DQM.SiStripCommissioningSources.OfflineSiStripConfigDb_cff')
19 process.SiStripConfigDb.Partitions.PrimaryPartition.PartitionName = 'DBPART'
20 process.SiStripConfigDb.Partitions.PrimaryPartition.RunNumber = RUNNUMBER
21 
22 # input source
23 process.load('DQM.SiStripCommissioningSources.OfflineSource_cfi')
24 
25 
26 
29 
30 # tracker digi producer
31 process.load('EventFilter.SiStripRawToDigi.FedChannelDigis_cfi')
32 
33 # filter to distinguish between runs not needing or needing tracking
34 process.load('DQM.SiStripCommissioningSources.TrackingRunTypeFilter_cfi')
35 
36 # Commissioning source file production
37 process.load('DQM.SiStripCommissioningSources.CommissioningHistos_cfi')
38 process.CommissioningHistos.CommissioningTask = 'UNDEFINED' # <-- run type taken from event data, but can be overriden
39 
40 # the path to run for analysis without tracking
41 process.p1 = cms.Path(
42  process.FedChannelDigis *
43  ~process.trackingRunTypeFilter *
44  process.CommissioningHistos
45 )
46 
47 
48 
51 
52 # reco inclusion ; cleanup? // was: I'd love to include less, but I fail...
53 process.load('Configuration.StandardSequences.Reconstruction_cff')
54 # geometry
55 process.load('DQM.SiStripCommissioningSources.P5Geometry_cff')
56 # magnetic field (0T by default)
57 process.load('MagneticField.Engine.uniformMagneticField_cfi')
58 
59 # fake global position
60 process.load('Alignment.CommonAlignmentProducer.GlobalPosition_Fake_cff')
61 # fake conditions for gain
62 process.load('CalibTracker.Configuration.SiStripGain.SiStripGain_Fake_cff')
63 # empty quality fake, avoiding RunIfoRcd from DB
64 process.load("CalibTracker.SiStripESProducers.SiStripQualityESProducer_cfi")
65 process.siStripQualityESProducer.UseEmptyRunInfo = cms.bool(True)
66 process.siStripQualityESProducer.ListOfRecordToMerge = cms.VPSet()
67 # fake LA conditions
68 process.load('CalibTracker.SiStripESProducers.fake.SiStripLorentzAngleFakeESSource_cfi')
69 # fake conditions for threshold
70 process.load('CalibTracker.SiStripESProducers.fake.SiStripThresholdFakeESSource_cfi')
71 process.load('CalibTracker.SiPixelESProducers.SiPixelFakeLorentzAngleESSource_cfi')
72 # beam spot fake conditions
73 process.load('RecoVertex.BeamSpotProducer.BeamSpotFakeConditionsNominalCollision_cfi')
74 
75 # rechit matcher
76 process.load('RecoLocalTracker.SiStripRecHitConverter.SiStripRecHitMatcher_cfi')
77 # CPEs
78 process.load('RecoLocalTracker.SiStripRecHitConverter.StripCPEfromTrackAngle_cfi')
79 process.load('RecoLocalTracker.SiPixelRecHits.PixelCPEParmError_cfi')
80 # TransientTrackingBuilder
81 process.load('RecoTracker.TransientTrackingRecHit.TransientTrackingRecHitBuilder_cfi')
82 process.ttrhbwr.PixelCPE = cms.string('PixelCPEfromTrackAngle')
83 # MeasurementTracker
84 process.load('RecoTracker.MeasurementDet.MeasurementTrackerESProducer_cff')
85 process.MeasurementTracker.StripCPE = cms.string('StripCPEfromTrackAngle')
86 process.MeasurementTracker.PixelCPE = cms.string('PixelCPEfromTrackAngle')
87 process.MeasurementTracker.UseStripModuleQualityDB = cms.bool(False) # read Module status from SiStripQuality
88 process.MeasurementTracker.UseStripAPVFiberQualityDB = cms.bool(False) # read APV and Fiber status from SiStripQuality
89 process.MeasurementTracker.UseStripStripQualityDB = cms.bool(False) # read Strip status from SiStripQuality
90 
91 
92 
95 
96 # strips digi zero suppression
97 process.load('RecoLocalTracker.SiStripZeroSuppression.SiStripZeroSuppression_cfi')
98 process.siStripZeroSuppression.RawDigiProducersList = cms.VInputTag(
99  cms.InputTag('FedChannelDigis','VirginRaw'),
100  cms.InputTag('FedChannelDigis','ProcessedRaw'),
101  cms.InputTag('FedChannelDigis','ScopeMode')
102 )
103 
104 # produce clusters from zero suppressed digis
105 process.load('RecoLocalTracker.SiStripClusterizer.SiStripClusterizer_cfi')
106 process.siStripClusters.DigiProducersList = cms.VInputTag(
107  cms.InputTag('FedChannelDigis','ZeroSuppressed'),
108  cms.InputTag('siStripZeroSuppression','VirginRaw'),
109  cms.InputTag('siStripZeroSuppression','ProcessedRaw'),
110  cms.InputTag('siStripZeroSuppression','ScopeMode')
111 )
112 
113 # produce the rechits
114 process.load('RecoLocalTracker.SiStripRecHitConverter.SiStripRecHitConverter_cfi')
115 
116 # find the seeds
117 process.load('DQM.SiStripCommissioningSources.P5SeedGenerator_cff')
118 
119 # reconstruct track candidates
120 process.load('DQM.SiStripCommissioningSources.P5CosmicCandidateFinder_cff')
121 
122 # reconstruct tracks
123 process.load('RecoTracker.TrackProducer.TrackProducer_cfi')
124 process.TrackProducer.src = cms.InputTag('cosmicCandidateFinder')
125 process.TrackProducer.Fitter = cms.string('RKFittingSmoother')
126 process.TrackProducer.TrajectoryInEvent = cms.bool(True)
127 process.TrackProducer.TTRHBuilder = cms.string('WithTrackAngle')
128 process.TrackProducer.AlgorithmName = cms.string('cosmic')
129 process.TrackProducer.alias=('') # can we drop this?
130 
131 # do the fine delay analysis
132 process.load('DQM.SiStripCommissioningSources.SiStripFineDelayHit_cfi')
133 
134 # Commissioning source file production
135 process.CommissioningHistosWithTracking = process.CommissioningHistos.clone()
136 process.CommissioningHistosWithTracking.InputModuleLabel = cms.string('siStripFineDelayHit')
137 process.CommissioningHistosWithTracking.SignalToNoiseCut = cms.double(3.0)
138 
139 # the path to run for analysis with tracking
140 process.p2 = cms.Path(
141  process.FedChannelDigis *
142  process.trackingRunTypeFilter *
143  process.offlineBeamSpot *
144  process.siStripZeroSuppression *
145  process.siStripClusters *
146  process.siStripMatchedRecHits *
147  process.cosmicseedfinder *
148  process.cosmicCandidateFinder *
149  process.TrackProducer *
150  process.siStripFineDelayHit *
151  process.CommissioningHistosWithTracking
152 )
153 
154 
155 
158 
159 #process.load('DQM.SiStripCommissioningSources.OfflineOutput_cfi')
160 #process.outpath = cms.EndPath( process.consumer )
161 
162 
163 
164