1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
import FWCore.ParameterSet.Config as cms
process = cms.Process("test")
process.load("CondTools.SiPixel.SiPixelGainCalibrationService_cfi")
process.load("Configuration.StandardSequences.GeometryDB_cff")
process.load("Geometry.TrackerGeometryBuilder.trackerGeometry_cfi")
process.load("Geometry.TrackerGeometryBuilder.idealForDigiTrackerGeometry_cff")
process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
#process.GlobalTag.globaltag = "STARTUP_V8::All"
process.TFileService = cms.Service("TFileService",
fileName = cms.string('/tmp/rougny/histos.root')
)
process.readfileOffline = cms.EDAnalyzer("SiPixelGainCalibrationReadDQMFile",
# supportedProtocols = cms.vstring('rfio'),
inputrootfile = cms.untracked.string('file:///tmp/rougny/test.root'),
record = cms.untracked.string('SiPixelGainCalibrationOfflineRcd'),
useMeanWhenEmpty = cms.untracked.bool(False),
badChi2Prob = cms.untracked.double(0.00001)
)
process.readfileHLT = cms.EDAnalyzer("SiPixelGainCalibrationReadDQMFile",
# supportedProtocols = cms.vstring('rfio'),
inputrootfile = cms.untracked.string('file:///tmp/rougny/test.root'),
record = cms.untracked.string('SiPixelGainCalibrationForHLTRcd'),
useMeanWhenEmpty = cms.untracked.bool(False),
badChi2Prob = cms.untracked.double(0.00001)
)
process.maxEvents = cms.untracked.PSet(
input = cms.untracked.int32(1)
)
process.source = cms.Source("EmptyIOVSource",
# lastRun = cms.untracked.uint32(1),
timetype = cms.string('runnumber'),
firstValue = cms.uint64(1),
lastValue = cms.uint64(1),
interval = cms.uint64(1)
)
process.PoolDBOutputService = cms.Service("PoolDBOutputService",
BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService'),
DBParameters = cms.PSet(
messageLevel = cms.untracked.int32(10),
authenticationPath = cms.untracked.string('.')
# authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
),
toPut = cms.VPSet(
cms.PSet(
record = cms.string('SiPixelGainCalibrationOfflineRcd'),
tag = cms.string('GainCalib_TEST_offline')
)
# cms.PSet(
# record = cms.string('SiPixelGainCalibrationForHLTRcd'),
# tag = cms.string('GainCalib_TEST_hlt')
# ),
),
connect = cms.string('sqlite_file:prova.db')
# connect = cms.string('oracle://cms_orcoff_int2r/CMS_COND_21X_PIXEL')
)
process.p = cms.Path(process.readfileOffline)
|