CMS 3D CMS Logo

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