-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCablingMapWriter_cfg.py
77 lines (68 loc) · 2.85 KB
/
CablingMapWriter_cfg.py
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
71
72
73
74
75
76
77
import FWCore.ParameterSet.Config as cms
process = cms.Process("MapWriter")
process.load("CondCore.DBCommon.CondDBCommon_cfi")
process.CondDBCommon.connect = cms.string("sqlite_file:cabling.db")
# --------------------- GlobalTag ----------------------
process.load("Configuration.StandardSequences.GeometrySimDB_cff")
process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
from Configuration.AlCa.GlobalTag import GlobalTag
process.GlobalTag = GlobalTag(process.GlobalTag, '80X_dataRun2_Prompt_v11', '')
from Configuration.StandardSequences.FrontierConditions_GlobalTag_cff import*
import CalibTracker.Configuration.Common.PoolDBESSource_cfi
# ---------------------- PB Geometry -------------------
process.trackerGeometryDB.applyAlignment = cms.bool(False)
# should it be False?
process.XMLFromDBSource.label=''
process.PoolDBESSourceGeometry = cms.ESSource("PoolDBESSource",
timetype = cms.string('runnumber'),
connect = cms.string('frontier://FrontierPrep/CMS_CONDITIONS'),
toGet = cms.VPSet(
cms.PSet(
record = cms.string('GeometryFileRcd'),
tag = cms.string('SiPixelPilotGeometry_v1')
),
cms.PSet(
record = cms.string('IdealGeometryRecord'),
tag = cms.string('TKRECO_Geometry_forPilotBlade_v1')
),
cms.PSet(
record = cms.string('PGeometricDetExtraRcd'),
tag = cms.string('TKExtra_Geometry_forPilotBlade_v1')
),
cms.PSet(
record = cms.string('PTrackerParametersRcd'),
tag = cms.string('TKParameters_Geometry_forPilotBlade_v1')
),
)
)
process.es_prefer_geometry = cms.ESPrefer( "PoolDBESSource", "PoolDBESSourceGeometry" )
#-------------------------------------------------------
process.source = cms.Source("EmptyIOVSource",
timetype = cms.string('runnumber'),
firstValue = cms.uint64(1),
lastValue = cms.uint64(1),
interval = cms.uint64(1)
)
process.PoolDBOutputService = cms.Service("PoolDBOutputService",
DBParameters = cms.PSet(
messageLevel = cms.untracked.int32(0),
authenticationPath = cms.untracked.string('.')
),
timetype = cms.untracked.string('runnumber'),
connect = cms.string("sqlite_file:cabling.db"),
#process.CondDBCommon,
toPut = cms.VPSet(cms.PSet(
record = cms.string('SiPixelFedCablingMapRcd'),
label = cms.untracked.string('pilotBlade'),
tag = cms.string('SiPixelFedCablingMap_FED1240_v1'),
)),
# loadBlobStreamer = cms.untracked.bool(False)
)
process.load("CalibTracker.SiPixelConnectivity.PixelToLNKAssociateFromAsciiESProducer_cfi")
process.mapwriter = cms.EDAnalyzer("SiPixelFedCablingMapWriter",
record = cms.string('SiPixelFedCablingMapRcd'),
#associator = cms.untracked.string('PixelToLNKAssociateFromAscii'),
fileName = cms.untracked.string('pixelToLNK_pilot.ascii')
)
process.p1 = cms.Path(process.mapwriter)