test
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.DBCommon.CondDBCommon_cfi import CondDBCommon
14 CondDBCommon.connect = "sqlite_file:promptCalibConditions.db"
15 
16 PoolDBOutputService = cms.Service("PoolDBOutputService",
17  CondDBCommon,
18  toPut = cms.VPSet(),
19  loadBlobStreamer = cms.untracked.bool(False),
20  # timetype = cms.untracked.string('lumiid')
21  # timetype = cms.untracked.string('runnumber')
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 # define the paths
88 BeamSpotByRun = cms.Path(ALCAHARVESTBeamSpotByRun)
89 BeamSpotByLumi = cms.Path(ALCAHARVESTBeamSpotByLumi)
90 SiStripQuality = cms.Path(ALCAHARVESTSiStripQuality)
91 SiStripGains = cms.Path(ALCAHARVESTSiStripGains)
92 SiPixelAli = cms.Path(ALCAHARVESTSiPixelAli)
93 SiStripGainsAfterAbortGap = cms.Path(ALCAHARVESTSiStripGainsAfterAbortGap)
94 
95 ALCAHARVESTDQMSaveAndMetadataWriter = cms.Path(dqmSaver+pclMetadataWriter)
96 
97 #promptCalibHarvest = cms.Path(alcaBeamSpotHarvester)
98 
99 
100