CMS 3D CMS Logo

AlCaHarvesting_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # import the needed ingredients
12 
14 
15 # common ingredients
16 from CondCore.CondDB.CondDB_cfi import CondDB
17 CondDBOutput = CondDB.clone(connect = cms.string("sqlite_file:promptCalibConditions.db"))
18 
19 PoolDBOutputService = cms.Service("PoolDBOutputService",
20  CondDBOutput,
21  toPut = cms.VPSet(),
22  #timetype = cms.untracked.string("runnumber"),
23  #timetype = cms.untracked.string("lumiid"),
24  )
25 
26 
27 from DQMServices.Components.DQMFileSaver_cfi import * # FIXME
28 dqmSaver.convention = 'Offline'
29 dqmSaver.workflow = '/Express/PCLTest/ALCAPROMPT'
30 #dqmSaver.saveAtJobEnd = True
31 
32 # workflow definitions
33 # --------------------------------------------------------------------------------------
34 # --------------------------------------------------------------------------------------
35 # BeamSpot by Run
36 ALCAHARVESTBeamSpotByRun = alcaBeamSpotHarvester.clone()
37 ALCAHARVESTBeamSpotByRun.AlcaBeamSpotHarvesterParameters.BeamSpotOutputBase = cms.untracked.string("runbased")
38 ALCAHARVESTBeamSpotByRun.AlcaBeamSpotHarvesterParameters.outputRecordName = cms.untracked.string("BeamSpotObjectsRcdByRun")
39 
40 ALCAHARVESTBeamSpotByRun_metadata = cms.PSet(record = cms.untracked.string('BeamSpotObjectsRcdByRun'))
41 
42 ALCAHARVESTBeamSpotByRun_dbOutput = cms.PSet(record = cms.string('BeamSpotObjectsRcdByRun'),
43  tag = cms.string('BeamSpotObject_ByRun'),
44  timetype = cms.untracked.string('runnumber')
45  )
46 
47 # --------------------------------------------------------------------------------------
48 # BeamSpot by Lumi
49 ALCAHARVESTBeamSpotByLumi = alcaBeamSpotHarvester.clone()
50 ALCAHARVESTBeamSpotByLumi.AlcaBeamSpotHarvesterParameters.BeamSpotOutputBase = cms.untracked.string("lumibased")
51 ALCAHARVESTBeamSpotByLumi.AlcaBeamSpotHarvesterParameters.outputRecordName = cms.untracked.string("BeamSpotObjectsRcdByLumi")
52 
53 # configuration of DropBox metadata and DB output
54 ALCAHARVESTBeamSpotByLumi_metadata = cms.PSet(record = cms.untracked.string('BeamSpotObjectsRcdByLumi'))
55 
56 ALCAHARVESTBeamSpotByLumi_dbOutput = cms.PSet(record = cms.string('BeamSpotObjectsRcdByLumi'),
57  tag = cms.string('BeamSpotObject_ByLumi'),
58  timetype = cms.untracked.string('lumiid')
59  )
60 
61 # --------------------------------------------------------------------------------------
62 # BeamSpot HP by Run
63 ALCAHARVESTBeamSpotHPByRun = alcaBeamSpotHarvester.clone()
64 ALCAHARVESTBeamSpotHPByRun.AlcaBeamSpotHarvesterParameters.BeamSpotOutputBase = cms.untracked.string("runbased")
65 ALCAHARVESTBeamSpotHPByRun.AlcaBeamSpotHarvesterParameters.outputRecordName = cms.untracked.string("BeamSpotObjectsRcdHPByRun")
66 ALCAHARVESTBeamSpotHPByRun.AlcaBeamSpotHarvesterParameters.BeamSpotModuleName = cms.untracked.string('alcaBeamSpotProducerHP')
67 
68 ALCAHARVESTBeamSpotHPByRun_metadata = cms.PSet(record = cms.untracked.string('BeamSpotObjectsRcdHPByRun'))
69 
70 ALCAHARVESTBeamSpotHPByRun_dbOutput = cms.PSet(record = cms.string('BeamSpotObjectsRcdHPByRun'),
71  tag = cms.string('BeamSpotObjectHP_ByRun'),
72  timetype = cms.untracked.string('runnumber')
73  )
74 
75 # --------------------------------------------------------------------------------------
76 # BeamSpot HP by Lumi
77 ALCAHARVESTBeamSpotHPByLumi = alcaBeamSpotHarvester.clone()
78 ALCAHARVESTBeamSpotHPByLumi.AlcaBeamSpotHarvesterParameters.BeamSpotOutputBase = cms.untracked.string("lumibased")
79 ALCAHARVESTBeamSpotHPByLumi.AlcaBeamSpotHarvesterParameters.outputRecordName = cms.untracked.string("BeamSpotObjectsRcdHPByLumi")
80 ALCAHARVESTBeamSpotHPByLumi.AlcaBeamSpotHarvesterParameters.BeamSpotModuleName = cms.untracked.string('alcaBeamSpotProducerHP')
81 ALCAHARVESTBeamSpotHPByLumi.AlcaBeamSpotHarvesterParameters.DumpTxt = cms.untracked.bool(True)
82 
83 # configuration of DropBox metadata and DB output
84 ALCAHARVESTBeamSpotHPByLumi_metadata = cms.PSet(record = cms.untracked.string('BeamSpotObjectsRcdHPByLumi'))
85 
86 ALCAHARVESTBeamSpotHPByLumi_dbOutput = cms.PSet(record = cms.string('BeamSpotObjectsRcdHPByLumi'),
87  tag = cms.string('BeamSpotObjectHP_ByLumi'),
88  timetype = cms.untracked.string('lumiid')
89  )
90 
91 # --------------------------------------------------------------------------------------
92 # SiStrip Quality
93 ALCAHARVESTSiStripQuality_metadata = cms.PSet(record = cms.untracked.string('SiStripBadStripRcd'))
94 
95 ALCAHARVESTSiStripQuality_dbOutput = cms.PSet(record = cms.string('SiStripBadStripRcd'),
96  tag = cms.string('SiStripBadStrip_pcl'),
97  timetype = cms.untracked.string('runnumber')
98  )
99 
100 # --------------------------------------------------------------------------------------
101 # SiStrip Gains
102 ALCAHARVESTSiStripGains_metadata = cms.PSet(record = cms.untracked.string('SiStripApvGainRcd'))
103 
104 ALCAHARVESTSiStripGains_dbOutput = cms.PSet(record = cms.string('SiStripApvGainRcd'),
105  tag = cms.string('SiStripApvGain_pcl'),
106  timetype = cms.untracked.string('runnumber')
107  )
108 
109 # --------------------------------------------------------------------------------------
110 # SiStrip Gains (AAG)
111 ALCAHARVESTSiStripGainsAAG_metadata = cms.PSet(record = cms.untracked.string('SiStripApvGainRcdAAG'))
112 
113 ALCAHARVESTSiStripGainsAAG_dbOutput = cms.PSet(record = cms.string('SiStripApvGainRcdAAG'),
114  tag = cms.string('SiStripApvGainAAG_pcl'),
115  timetype = cms.untracked.string('runnumber')
116  )
117 
118 # --------------------------------------------------------------------------------------
119 # SiPixel Alignment
120 ALCAHARVESTSiPixelAli_metadata = cms.PSet(record = cms.untracked.string('TrackerAlignmentRcd'))
121 
122 ALCAHARVESTSiPixelAli_dbOutput = cms.PSet(record = cms.string('TrackerAlignmentRcd'),
123  tag = cms.string('SiPixelAli_pcl'),
124  timetype = cms.untracked.string('runnumber')
125  )
126 
127 # --------------------------------------------------------------------------------------
128 # ECAL Pedestals
129 ALCAHARVESTEcalPedestals_metadata = cms.PSet(record = cms.untracked.string('EcalPedestalsRcd'))
130 
131 ALCAHARVESTEcalPedestals_dbOutput = cms.PSet(record = cms.string('EcalPedestalsRcd'),
132  tag = cms.string('EcalPedestals_pcl'),
133  timetype = cms.untracked.string('runnumber')
134  )
135 
136 # --------------------------------------------------------------------------------------
137 # Lumi PCC
138 ALCAHARVESTLumiPCC_metadata = cms.PSet(record = cms.untracked.string('LumiCorrectionsRcd'))
139 
140 ALCAHARVESTLumiPCC_dbOutput = cms.PSet(record = cms.string('LumiCorrectionsRcd'),
141  tag = cms.string('LumiPCCCorrections_pcl'),
142  timetype = cms.untracked.string('lumiid')
143  )
144 
145 
146 
147 # SiPixel Quality
148 ALCAHARVESTSiPixelQuality = siPixelStatusHarvester.clone()
149 ALCAHARVESTSiPixelQuality.SiPixelStatusManagerParameters.outputBase = cms.untracked.string("dynamicLumibased")
150 ALCAHARVESTSiPixelQuality.SiPixelStatusManagerParameters.aveDigiOcc = cms.untracked.int32(20000)
151 ALCAHARVESTSiPixelQuality.debug = cms.untracked.bool(False)
152 
153 ALCAHARVESTSiPixelQuality_metadata = cms.VPSet(cms.PSet(record = cms.untracked.string('SiPixelQualityFromDbRcd_prompt')),
154  cms.PSet(record = cms.untracked.string('SiPixelQualityFromDbRcd_stuckTBM')),
155  cms.PSet(record = cms.untracked.string('SiPixelQualityFromDbRcd_other')))
156 ALCAHARVESTSiPixelQuality_dbOutput = cms.VPSet(cms.PSet(record = cms.string('SiPixelQualityFromDbRcd_prompt'),
157  tag = cms.string('SiPixelQualityFromDbRcd_prompt'),
158  timetype = cms.untracked.string('lumiid')
159  ),
160  cms.PSet(record = cms.string('SiPixelQualityFromDbRcd_stuckTBM'),
161  tag = cms.string('SiPixelQualityFromDbRcd_stuckTBM'),
162  timetype = cms.untracked.string('lumiid'),
163  ),
164  cms.PSet(record = cms.string('SiPixelQualityFromDbRcd_other'),
165  tag = cms.string('SiPixelQualityFromDbRcd_other'),
166  timetype = cms.untracked.string('lumiid')
167  )
168  )
169 
170 if ALCAHARVESTSiPixelQuality.debug == cms.untracked.bool(True) :
171  ALCAHARVESTSiPixelQuality_dbOutput.append(
172  cms.PSet(record = cms.string('SiPixelQualityFromDbRcd_PCL'),
173  tag = cms.string('SiPixelQualityFromDbRcd_PCL'),
174  timetype = cms.untracked.string('lumiid')
175  )
176  )
177 
178 # define all the paths
179 BeamSpotByRun = cms.Path(ALCAHARVESTBeamSpotByRun)
180 BeamSpotByLumi = cms.Path(ALCAHARVESTBeamSpotByLumi)
181 BeamSpotHPByRun = cms.Path(ALCAHARVESTBeamSpotHPByRun)
182 BeamSpotHPByLumi = cms.Path(ALCAHARVESTBeamSpotHPByLumi)
183 SiStripQuality = cms.Path(ALCAHARVESTSiStripQuality)
184 SiStripGains = cms.Path(ALCAHARVESTSiStripGains)
185 SiPixelAli = cms.Path(ALCAHARVESTSiPixelAli)
186 EcalPedestals = cms.Path(ALCAHARVESTEcalPedestals)
187 SiStripGainsAAG = cms.Path(ALCAHARVESTSiStripGainsAAG)
188 LumiPCC = cms.Path(ALCAHARVESTLumiPCC)
189 SiPixelQuality = cms.Path(ALCAHARVESTSiPixelQuality)
190 
191 ALCAHARVESTDQMSaveAndMetadataWriter = cms.Path(dqmSaver+pclMetadataWriter)
192 
193 #promptCalibHarvest = cms.Path(alcaBeamSpotHarvester)