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
8 
10 
11 # common ingredients
12 from CondCore.DBCommon.CondDBCommon_cfi import CondDBCommon
13 CondDBCommon.connect = "sqlite_file:promptCalibConditions.db"
14 
15 PoolDBOutputService = cms.Service("PoolDBOutputService",
16  CondDBCommon,
17  toPut = cms.VPSet(),
18  loadBlobStreamer = cms.untracked.bool(False),
19  # timetype = cms.untracked.string('lumiid')
20  # timetype = cms.untracked.string('runnumber')
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 
36 ALCAHARVESTBeamSpotByRun_metadata = cms.PSet(record = cms.untracked.string('BeamSpotObjectsRcdByRun'),
37  )
38 
39 
40 ALCAHARVESTBeamSpotByRun_dbOutput = cms.PSet(record = cms.string('BeamSpotObjectsRcdByRun'),
41  tag = cms.string('BeamSpotObject_ByRun'),
42  timetype = cms.untracked.string('runnumber'))
43 
44 
45 ALCAHARVESTBeamSpotByLumi = alcaBeamSpotHarvester.clone()
46 ALCAHARVESTBeamSpotByLumi.AlcaBeamSpotHarvesterParameters.BeamSpotOutputBase = cms.untracked.string("lumibased")
47 ALCAHARVESTBeamSpotByLumi.AlcaBeamSpotHarvesterParameters.outputRecordName = cms.untracked.string("BeamSpotObjectsRcdByLumi")
48 
49 # configuration of DropBox metadata and DB output
50 ALCAHARVESTBeamSpotByLumi_metadata = cms.PSet(record = cms.untracked.string('BeamSpotObjectsRcdByLumi'),
51  )
52 
53 ALCAHARVESTBeamSpotByLumi_dbOutput = cms.PSet(record = cms.string('BeamSpotObjectsRcdByLumi'),
54  tag = cms.string('BeamSpotObject_ByLumi'),
55  timetype = cms.untracked.string('lumiid'))
56 
57 
58 ALCAHARVESTSiStripQuality_metadata = cms.PSet(record = cms.untracked.string('SiStripBadStripRcd'),
59  )
60 
61 
62 ALCAHARVESTSiStripQuality_dbOutput = cms.PSet(record = cms.string('SiStripBadStripRcd'),
63  tag = cms.string('SiStripBadStrip_pcl'),
64  timetype = cms.untracked.string('runnumber'))
65 
66 
67 ALCAHARVESTSiStripGains_metadata = cms.PSet(record = cms.untracked.string('SiStripApvGainRcd'),
68  )
69 
70 
71 ALCAHARVESTSiStripGains_dbOutput = cms.PSet(record = cms.string('SiStripApvGainRcd'),
72  tag = cms.string('SiStripApvGain_pcl'),
73  timetype = cms.untracked.string('runnumber'))
74 
75  #
76 ALCAHARVESTSiPixelAli_metadata = cms.PSet(record = cms.untracked.string('TrackerAlignmentRcd'),
77  )
78 
79 
80 ALCAHARVESTSiPixelAli_dbOutput = cms.PSet(record = cms.string('TrackerAlignmentRcd'),
81  tag = cms.string('SiPixelAli_pcl'),
82  timetype = cms.untracked.string('runnumber'))
83 
84 
85 
86 
87 # define the paths
88 
89 BeamSpotByRun = cms.Path(ALCAHARVESTBeamSpotByRun)
90 BeamSpotByLumi = cms.Path(ALCAHARVESTBeamSpotByLumi)
91 SiStripQuality = cms.Path(ALCAHARVESTSiStripQuality)
92 SiStripGains = cms.Path(ALCAHARVESTSiStripGains)
93 SiPixelAli = cms.Path(ALCAHARVESTSiPixelAli)
94 
95 
96 ALCAHARVESTDQMSaveAndMetadataWriter = cms.Path(dqmSaver+pclMetadataWriter)
97 
98 #promptCalibHarvest = cms.Path(alcaBeamSpotHarvester)
99 
100 
101