CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 #############################################
8 # General setup
9 #############################################
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 ##############################################
25 # modules & path for analysis without tracking
26 ##############################################
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 #############################################
47 # setup to prepare tracking
48 #############################################
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 process.load('CalibTracker.SiStripESProducers.fake.SiStripLorentzAngleFakeESSource_cfi')
68 # fake conditions for threshold
69 process.load('CalibTracker.SiStripESProducers.fake.SiStripThresholdFakeESSource_cfi')
70 process.load('CalibTracker.SiPixelESProducers.SiPixelFakeLorentzAngleESSource_cfi')
71 # beam spot fake conditions
72 process.load('RecoVertex.BeamSpotProducer.BeamSpotFakeConditionsNominalCollision_cfi')
73 
74 # rechit matcher
75 process.load('RecoLocalTracker.SiStripRecHitConverter.SiStripRecHitMatcher_cfi')
76 # CPEs
77 process.load('RecoLocalTracker.SiStripRecHitConverter.StripCPEfromTrackAngle_cfi')
78 process.load('RecoLocalTracker.SiPixelRecHits.PixelCPEParmError_cfi')
79 # TransientTrackingBuilder
80 process.load('RecoTracker.TransientTrackingRecHit.TransientTrackingRecHitBuilder_cfi')
81 process.ttrhbwr.PixelCPE = cms.string('PixelCPEfromTrackAngle')
82 # MeasurementTracker
83 process.load('RecoTracker.MeasurementDet.MeasurementTrackerESProducer_cff')
84 process.MeasurementTracker.StripCPE = cms.string('StripCPEfromTrackAngle')
85 process.MeasurementTracker.PixelCPE = cms.string('PixelCPEfromTrackAngle')
86 process.MeasurementTracker.UseStripModuleQualityDB = cms.bool(False) # read Module status from SiStripQuality
87 process.MeasurementTracker.UseStripAPVFiberQualityDB = cms.bool(False) # read APV and Fiber status from SiStripQuality
88 process.MeasurementTracker.UseStripStripQualityDB = cms.bool(False) # read Strip status from SiStripQuality
89 
90 
91 #############################################
92 # modules & path for analysis with tracking
93 #############################################
94 
95 # strips digi zero suppression
96 process.load('RecoLocalTracker.SiStripZeroSuppression.SiStripZeroSuppression_cfi')
97 process.siStripZeroSuppression.RawDigiProducersList = cms.VInputTag(
98  cms.InputTag('FedChannelDigis','VirginRaw'),
99  cms.InputTag('FedChannelDigis','ProcessedRaw'),
100  cms.InputTag('FedChannelDigis','ScopeMode')
101 )
102 
103 # produce clusters from zero suppressed digis
104 process.load('RecoLocalTracker.SiStripClusterizer.SiStripClusterizer_cfi')
105 process.siStripClusters.DigiProducersList = cms.VInputTag(
106  cms.InputTag('FedChannelDigis','ZeroSuppressed'),
107  cms.InputTag('siStripZeroSuppression','VirginRaw'),
108  cms.InputTag('siStripZeroSuppression','ProcessedRaw'),
109  cms.InputTag('siStripZeroSuppression','ScopeMode')
110 )
111 
112 # produce the rechits
113 process.load('RecoLocalTracker.SiStripRecHitConverter.SiStripRecHitConverter_cfi')
114 
115 # find the seeds
116 process.load('DQM.SiStripCommissioningSources.CRackSeedGenerator_cff')
117 
118 # reconstruct track candidates
119 process.load('DQM.SiStripCommissioningSources.CRackCosmicCandidateFinder_cff')
120 
121 # reconstruct tracks
122 process.load('RecoTracker.TrackProducer.TrackProducer_cfi')
123 process.TrackProducer.src = cms.InputTag('cosmicCandidateFinder')
124 process.TrackProducer.Fitter = cms.string('RKFittingSmoother')
125 process.TrackProducer.TrajectoryInEvent = cms.bool(True)
126 process.TrackProducer.TTRHBuilder = cms.string('WithTrackAngle')
127 process.TrackProducer.AlgorithmName = cms.string('cosmic')
128 process.TrackProducer.alias=('') # can we drop this?
129 
130 # do the fine delay analysis
131 process.load('DQM.SiStripCommissioningSources.SiStripFineDelayHit_cfi')
132 
133 # Commissioning source file production
134 process.CommissioningHistosWithTracking = process.CommissioningHistos.clone()
135 process.CommissioningHistosWithTracking.InputModuleLabel = cms.string('siStripFineDelayHit')
136 process.CommissioningHistosWithTracking.SignalToNoiseCut = cms.double(3.0)
137 
138 # the path to run for analysis with tracking
139 process.p2 = cms.Path(
140  process.FedChannelDigis *
141  process.trackingRunTypeFilter *
142  process.offlineBeamSpot *
143  process.siStripZeroSuppression *
144  process.siStripClusters *
145  process.siStripMatchedRecHits *
146  process.cosmicseedfinder *
147  process.cosmicCandidateFinder *
148  process.TrackProducer *
149  process.siStripFineDelayHit *
150  process.CommissioningHistosWithTracking
151 )
152 
153 
154 #############################################
155 # output
156 #############################################
157 
158 process.load('DQM.SiStripCommissioningSources.OnlineOutput_cfi')
159 process.outpath = cms.EndPath( process.consumer )
160 
161 
162 #############################################
163