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
10 
12 
13 # common ingredients
14 from CondCore.CondDB.CondDB_cfi import CondDB
15 CondDBOutput = CondDB.clone(connect = cms.string("sqlite_file:promptCalibConditions.db"))
16 
17 PoolDBOutputService = cms.Service("PoolDBOutputService",
18  CondDBOutput,
19  toPut = cms.VPSet(),
20  #timetype = cms.untracked.string("runnumber"),
21  #timetype = cms.untracked.string("lumiid"),
22  )
23 
24 
25 from DQMServices.Components.DQMFileSaver_cfi import * # FIXME
26 dqmSaver.convention = 'Offline'
27 dqmSaver.workflow = '/Express/PCLTest/ALCAPROMPT'
28 #dqmSaver.saveAtJobEnd = True
29 
30 # workflow definitions
31 
32 ALCAHARVESTBeamSpotByRun = alcaBeamSpotHarvester.clone()
33 ALCAHARVESTBeamSpotByRun.AlcaBeamSpotHarvesterParameters.BeamSpotOutputBase = cms.untracked.string("runbased")
34 ALCAHARVESTBeamSpotByRun.AlcaBeamSpotHarvesterParameters.outputRecordName = cms.untracked.string("BeamSpotObjectsRcdByRun")
35 
36 ALCAHARVESTBeamSpotByRun_metadata = cms.PSet(record = cms.untracked.string('BeamSpotObjectsRcdByRun'))
37 
38 ALCAHARVESTBeamSpotByRun_dbOutput = cms.PSet(record = cms.string('BeamSpotObjectsRcdByRun'),
39  tag = cms.string('BeamSpotObject_ByRun'),
40  timetype = cms.untracked.string('runnumber')
41  )
42 
43 ALCAHARVESTBeamSpotByLumi = alcaBeamSpotHarvester.clone()
44 ALCAHARVESTBeamSpotByLumi.AlcaBeamSpotHarvesterParameters.BeamSpotOutputBase = cms.untracked.string("lumibased")
45 ALCAHARVESTBeamSpotByLumi.AlcaBeamSpotHarvesterParameters.outputRecordName = cms.untracked.string("BeamSpotObjectsRcdByLumi")
46 
47 # configuration of DropBox metadata and DB output
48 ALCAHARVESTBeamSpotByLumi_metadata = cms.PSet(record = cms.untracked.string('BeamSpotObjectsRcdByLumi'))
49 
50 ALCAHARVESTBeamSpotByLumi_dbOutput = cms.PSet(record = cms.string('BeamSpotObjectsRcdByLumi'),
51  tag = cms.string('BeamSpotObject_ByLumi'),
52  timetype = cms.untracked.string('lumiid')
53  )
54 
55 # SiStrip Quality
56 ALCAHARVESTSiStripQuality_metadata = cms.PSet(record = cms.untracked.string('SiStripBadStripRcd'))
57 
58 ALCAHARVESTSiStripQuality_dbOutput = cms.PSet(record = cms.string('SiStripBadStripRcd'),
59  tag = cms.string('SiStripBadStrip_pcl'),
60  timetype = cms.untracked.string('runnumber')
61  )
62 
63 # SiStrip Gains
64 ALCAHARVESTSiStripGains_metadata = cms.PSet(record = cms.untracked.string('SiStripApvGainRcd'))
65 
66 ALCAHARVESTSiStripGains_dbOutput = cms.PSet(record = cms.string('SiStripApvGainRcd'),
67  tag = cms.string('SiStripApvGain_pcl'),
68  timetype = cms.untracked.string('runnumber')
69  )
70 
71 # SiStrip Gains (AfterAbortGap)
72 ALCAHARVESTSiStripGainsAfterAbortGap_metadata = cms.PSet(record = cms.untracked.string('SiStripApvGainRcdAfterAbortGap'))
73 
74 ALCAHARVESTSiStripGainsAfterAbortGap_dbOutput = cms.PSet(record = cms.string('SiStripApvGainRcdAfterAbortGap'),
75  tag = cms.string('SiStripApvGainAfterAbortGap_pcl'),
76  timetype = cms.untracked.string('runnumber')
77  )
78 
79 # SiPixel Alignment
80 ALCAHARVESTSiPixelAli_metadata = cms.PSet(record = cms.untracked.string('TrackerAlignmentRcd'))
81 
82 ALCAHARVESTSiPixelAli_dbOutput = cms.PSet(record = cms.string('TrackerAlignmentRcd'),
83  tag = cms.string('SiPixelAli_pcl'),
84  timetype = cms.untracked.string('runnumber')
85  )
86 
87 ALCAHARVESTEcalPedestals_metadata = cms.PSet(record = cms.untracked.string('EcalPedestalsRcd'))
88 
89 ALCAHARVESTEcalPedestals_dbOutput = cms.PSet(record = cms.string('EcalPedestalsRcd'),
90  tag = cms.string('EcalPedestals_pcl'),
91  timetype = cms.untracked.string('runnumber')
92  )
93 
94 
95 # define the paths
96 BeamSpotByRun = cms.Path(ALCAHARVESTBeamSpotByRun)
97 BeamSpotByLumi = cms.Path(ALCAHARVESTBeamSpotByLumi)
98 SiStripQuality = cms.Path(ALCAHARVESTSiStripQuality)
99 SiStripGains = cms.Path(ALCAHARVESTSiStripGains)
100 SiPixelAli = cms.Path(ALCAHARVESTSiPixelAli)
101 SiStripGainsAfterAbortGap = cms.Path(ALCAHARVESTSiStripGainsAfterAbortGap)
102 EcalPedestals = cms.Path(ALCAHARVESTEcalPedestals)
103 
104 ALCAHARVESTDQMSaveAndMetadataWriter = cms.Path(dqmSaver+pclMetadataWriter)
105 
106 #promptCalibHarvest = cms.Path(alcaBeamSpotHarvester)