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.
2 
3 # import the needed ingredients
7 
9 
10 # common ingredients
11 from CondCore.DBCommon.CondDBCommon_cfi import CondDBCommon
12 CondDBCommon.connect = "sqlite_file:promptCalibConditions.db"
13 
14 PoolDBOutputService = cms.Service("PoolDBOutputService",
15  CondDBCommon,
16  toPut = cms.VPSet(),
17  loadBlobStreamer = cms.untracked.bool(False),
18  # timetype = cms.untracked.string('lumiid')
19  # timetype = cms.untracked.string('runnumber')
20  )
21 
22 
23 from DQMServices.Components.DQMFileSaver_cfi import * # FIXME
24 dqmSaver.convention = 'Offline'
25 dqmSaver.workflow = '/Express/PCLTest/ALCAPROMPT'
26 #dqmSaver.saveAtJobEnd = True
27 
28 # workflow definitions
29 
30 ALCAHARVESTBeamSpotByRun = alcaBeamSpotHarvester.clone()
31 ALCAHARVESTBeamSpotByRun.AlcaBeamSpotHarvesterParameters.BeamSpotOutputBase = cms.untracked.string("runbased")
32 ALCAHARVESTBeamSpotByRun.AlcaBeamSpotHarvesterParameters.outputRecordName = cms.untracked.string("BeamSpotObjectsRcdByRun")
33 
34 
35 ALCAHARVESTBeamSpotByRun_metadata = cms.PSet(record = cms.untracked.string('BeamSpotObjectsRcdByRun'),
36  )
37 
38 
39 ALCAHARVESTBeamSpotByRun_dbOutput = cms.PSet(record = cms.string('BeamSpotObjectsRcdByRun'),
40  tag = cms.string('BeamSpotObject_ByRun'),
41  timetype = cms.untracked.string('runnumber'))
42 
43 
44 ALCAHARVESTBeamSpotByLumi = alcaBeamSpotHarvester.clone()
45 ALCAHARVESTBeamSpotByLumi.AlcaBeamSpotHarvesterParameters.BeamSpotOutputBase = cms.untracked.string("lumibased")
46 ALCAHARVESTBeamSpotByLumi.AlcaBeamSpotHarvesterParameters.outputRecordName = cms.untracked.string("BeamSpotObjectsRcdByLumi")
47 
48 # configuration of DropBox metadata and DB output
49 ALCAHARVESTBeamSpotByLumi_metadata = cms.PSet(record = cms.untracked.string('BeamSpotObjectsRcdByLumi'),
50  )
51 
52 ALCAHARVESTBeamSpotByLumi_dbOutput = cms.PSet(record = cms.string('BeamSpotObjectsRcdByLumi'),
53  tag = cms.string('BeamSpotObject_ByLumi'),
54  timetype = cms.untracked.string('lumiid'))
55 
56 
57 ALCAHARVESTSiStripQuality_metadata = cms.PSet(record = cms.untracked.string('SiStripBadStripRcd'),
58  )
59 
60 
61 ALCAHARVESTSiStripQuality_dbOutput = cms.PSet(record = cms.string('SiStripBadStripRcd'),
62  tag = cms.string('SiStripBadStrip_pcl'),
63  timetype = cms.untracked.string('runnumber'))
64 
65 
66 ALCAHARVESTSiStripGains_metadata = cms.PSet(record = cms.untracked.string('SiStripApvGainRcd'),
67  )
68 
69 
70 ALCAHARVESTSiStripGains_dbOutput = cms.PSet(record = cms.string('SiStripApvGainRcd'),
71  tag = cms.string('SiStripApvGain_pcl'),
72  timetype = cms.untracked.string('runnumber'))
73 
74 
75 
76 # define the paths
77 
78 BeamSpotByRun = cms.Path(ALCAHARVESTBeamSpotByRun)
79 BeamSpotByLumi = cms.Path(ALCAHARVESTBeamSpotByLumi)
80 SiStripQuality = cms.Path(ALCAHARVESTSiStripQuality)
81 SiStripGains = cms.Path(ALCAHARVESTSiStripGains)
82 ALCAHARVESTDQMSaveAndMetadataWriter = cms.Path(dqmSaver+pclMetadataWriter)
83 
84 #promptCalibHarvest = cms.Path(alcaBeamSpotHarvester)
85 
86 
87