CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
AlCaHarvesting_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # import the needed ingredients
9 
11 
12 # common ingredients
13 from CondCore.CondDB.CondDB_cfi import CondDB
14 CondDBOutput = CondDB.clone(connect = cms.string("sqlite_file:promptCalibConditions.db"))
15 
16 PoolDBOutputService = cms.Service("PoolDBOutputService",
17  CondDBOutput,
18  toPut = cms.VPSet(),
19  #timetype = cms.untracked.string("runnumber"),
20  #timetype = cms.untracked.string("lumiid"),
21  )
22 
23 
24 from DQMServices.Components.DQMFileSaver_cfi import * # FIXME
25 dqmSaver.convention = 'Offline'
26 dqmSaver.workflow = '/Express/PCLTest/ALCAPROMPT'
27 #dqmSaver.saveAtJobEnd = True
28 
29 # workflow definitions
30 
31 ALCAHARVESTBeamSpotByRun = alcaBeamSpotHarvester.clone()
32 ALCAHARVESTBeamSpotByRun.AlcaBeamSpotHarvesterParameters.BeamSpotOutputBase = cms.untracked.string("runbased")
33 ALCAHARVESTBeamSpotByRun.AlcaBeamSpotHarvesterParameters.outputRecordName = cms.untracked.string("BeamSpotObjectsRcdByRun")
34 
35 ALCAHARVESTBeamSpotByRun_metadata = cms.PSet(record = cms.untracked.string('BeamSpotObjectsRcdByRun'))
36 
37 ALCAHARVESTBeamSpotByRun_dbOutput = cms.PSet(record = cms.string('BeamSpotObjectsRcdByRun'),
38  tag = cms.string('BeamSpotObject_ByRun'),
39  timetype = cms.untracked.string('runnumber')
40  )
41 
42 ALCAHARVESTBeamSpotByLumi = alcaBeamSpotHarvester.clone()
43 ALCAHARVESTBeamSpotByLumi.AlcaBeamSpotHarvesterParameters.BeamSpotOutputBase = cms.untracked.string("lumibased")
44 ALCAHARVESTBeamSpotByLumi.AlcaBeamSpotHarvesterParameters.outputRecordName = cms.untracked.string("BeamSpotObjectsRcdByLumi")
45 
46 # configuration of DropBox metadata and DB output
47 ALCAHARVESTBeamSpotByLumi_metadata = cms.PSet(record = cms.untracked.string('BeamSpotObjectsRcdByLumi'))
48 
49 ALCAHARVESTBeamSpotByLumi_dbOutput = cms.PSet(record = cms.string('BeamSpotObjectsRcdByLumi'),
50  tag = cms.string('BeamSpotObject_ByLumi'),
51  timetype = cms.untracked.string('lumiid')
52  )
53 
54 # SiStrip Quality
55 ALCAHARVESTSiStripQuality_metadata = cms.PSet(record = cms.untracked.string('SiStripBadStripRcd'))
56 
57 ALCAHARVESTSiStripQuality_dbOutput = cms.PSet(record = cms.string('SiStripBadStripRcd'),
58  tag = cms.string('SiStripBadStrip_pcl'),
59  timetype = cms.untracked.string('runnumber')
60  )
61 
62 # SiStrip Gains
63 ALCAHARVESTSiStripGains_metadata = cms.PSet(record = cms.untracked.string('SiStripApvGainRcd'))
64 
65 ALCAHARVESTSiStripGains_dbOutput = cms.PSet(record = cms.string('SiStripApvGainRcd'),
66  tag = cms.string('SiStripApvGain_pcl'),
67  timetype = cms.untracked.string('runnumber')
68  )
69 
70 # SiStrip Gains (AfterAbortGap)
71 ALCAHARVESTSiStripGainsAfterAbortGap_metadata = cms.PSet(record = cms.untracked.string('SiStripApvGainRcdAfterAbortGap'))
72 
73 ALCAHARVESTSiStripGainsAfterAbortGap_dbOutput = cms.PSet(record = cms.string('SiStripApvGainRcdAfterAbortGap'),
74  tag = cms.string('SiStripApvGainAfterAbortGap_pcl'),
75  timetype = cms.untracked.string('runnumber')
76  )
77 
78 # SiPixel Alignment
79 ALCAHARVESTSiPixelAli_metadata = cms.PSet(record = cms.untracked.string('TrackerAlignmentRcd'))
80 
81 ALCAHARVESTSiPixelAli_dbOutput = cms.PSet(record = cms.string('TrackerAlignmentRcd'),
82  tag = cms.string('SiPixelAli_pcl'),
83  timetype = cms.untracked.string('runnumber')
84  )
85 
86 # define the paths
87 BeamSpotByRun = cms.Path(ALCAHARVESTBeamSpotByRun)
88 BeamSpotByLumi = cms.Path(ALCAHARVESTBeamSpotByLumi)
89 SiStripQuality = cms.Path(ALCAHARVESTSiStripQuality)
90 SiStripGains = cms.Path(ALCAHARVESTSiStripGains)
91 SiPixelAli = cms.Path(ALCAHARVESTSiPixelAli)
92 SiStripGainsAfterAbortGap = cms.Path(ALCAHARVESTSiStripGainsAfterAbortGap)
93 
94 ALCAHARVESTDQMSaveAndMetadataWriter = cms.Path(dqmSaver+pclMetadataWriter)
95 
96 #promptCalibHarvest = cms.Path(alcaBeamSpotHarvester)
97 
98 
99