CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
SiStripOfflineCRack_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 #############################################
8 # General setup
9 #############################################
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 ##############################################
27 # modules & path for analysis without tracking
28 ##############################################
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 #############################################
49 # setup to prepare tracking
50 #############################################
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.CRackGeometry_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 # 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  InputModuleLabel = 'siStripFineDelayHit',
136  SignalToNoiseCut = cms.double(3.0)
137 )
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 #############################################
156 # output
157 #############################################
158 
159 #process.load('DQM.SiStripCommissioningSources.OfflineOutput_cfi')
160 #process.outpath = cms.EndPath( process.consumer )
161 
162 
163 #############################################
164