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 
37 ALCAHARVESTBeamSpotByRun_metadata = cms.PSet(record = cms.untracked.string('BeamSpotObjectsRcdByRun'),
38  )
39 
40 
41 ALCAHARVESTBeamSpotByRun_dbOutput = cms.PSet(record = cms.string('BeamSpotObjectsRcdByRun'),
42  tag = cms.string('BeamSpotObject_ByRun'),
43  timetype = cms.untracked.string('runnumber'))
44 
45 
46 ALCAHARVESTBeamSpotByLumi = alcaBeamSpotHarvester.clone()
47 ALCAHARVESTBeamSpotByLumi.AlcaBeamSpotHarvesterParameters.BeamSpotOutputBase = cms.untracked.string("lumibased")
48 ALCAHARVESTBeamSpotByLumi.AlcaBeamSpotHarvesterParameters.outputRecordName = cms.untracked.string("BeamSpotObjectsRcdByLumi")
49 
50 # configuration of DropBox metadata and DB output
51 ALCAHARVESTBeamSpotByLumi_metadata = cms.PSet(record = cms.untracked.string('BeamSpotObjectsRcdByLumi'),
52  )
53 
54 ALCAHARVESTBeamSpotByLumi_dbOutput = cms.PSet(record = cms.string('BeamSpotObjectsRcdByLumi'),
55  tag = cms.string('BeamSpotObject_ByLumi'),
56  timetype = cms.untracked.string('lumiid'))
57 
58 
59 ALCAHARVESTSiStripQuality_metadata = cms.PSet(record = cms.untracked.string('SiStripBadStripRcd'),
60  )
61 
62 
63 ALCAHARVESTSiStripQuality_dbOutput = cms.PSet(record = cms.string('SiStripBadStripRcd'),
64  tag = cms.string('SiStripBadStrip_pcl'),
65  timetype = cms.untracked.string('runnumber'))
66 
67 
68 ALCAHARVESTSiStripGains_metadata = cms.PSet(record = cms.untracked.string('SiStripApvGainRcd'),
69  )
70 
71 
72 ALCAHARVESTSiStripGains_dbOutput = cms.PSet(record = cms.string('SiStripApvGainRcd'),
73  tag = cms.string('SiStripApvGain_pcl'),
74  timetype = cms.untracked.string('runnumber'))
75 
76 ALCAHARVESTSiStripGainsAfterAbortGap_metadata = cms.PSet(record = cms.untracked.string('SiStripApvGainRcd'),
77  )
78 
79 ALCAHARVESTSiStripGainsAfterAbortGap_dbOutput = cms.PSet(record = cms.string('SiStripApvGainRcd'),
80  tag = cms.string('SiStripApvGainAfterAbortGap_pcl'),
81  timetype = cms.untracked.string('runnumber'))
82 
83  #
84 ALCAHARVESTSiPixelAli_metadata = cms.PSet(record = cms.untracked.string('TrackerAlignmentRcd'),
85  )
86 
87 
88 ALCAHARVESTSiPixelAli_dbOutput = cms.PSet(record = cms.string('TrackerAlignmentRcd'),
89  tag = cms.string('SiPixelAli_pcl'),
90  timetype = cms.untracked.string('runnumber'))
91 
92 
93 
94 
95 # define the paths
96 
97 BeamSpotByRun = cms.Path(ALCAHARVESTBeamSpotByRun)
98 BeamSpotByLumi = cms.Path(ALCAHARVESTBeamSpotByLumi)
99 SiStripQuality = cms.Path(ALCAHARVESTSiStripQuality)
100 SiStripGains = cms.Path(ALCAHARVESTSiStripGains)
101 SiPixelAli = cms.Path(ALCAHARVESTSiPixelAli)
102 
103 SiStripGainsAfterAbortGap = cms.Path(ALCAHARVESTSiStripGainsAfterAbortGap)
104 
105 
106 ALCAHARVESTDQMSaveAndMetadataWriter = cms.Path(dqmSaver+pclMetadataWriter)
107 
108 #promptCalibHarvest = cms.Path(alcaBeamSpotHarvester)
109 
110 
111