1 import FWCore.ParameterSet.Config
as cms
2 import os,sys,getopt,glob,cx_Oracle,subprocess
4 conn_str = os.path.expandvars(
"$CONFDB")
5 conn = cx_Oracle.connect(conn_str)
7 e.execute(
'select RUNMODE from run where runnumber = RUNNUMBER')
10 for result
in runmode:
11 runtype =
int(result[0]);
14 process = cms.Process(
"SiStripCommissioningOfflineDbClient")
16 process.load(
"DQM.SiStripCommon.MessageLogger_cfi")
18 process.load(
"DQM.SiStripCommon.DaqMonitorROOTBackEnd_cfi")
20 process.load(
"OnlineDB.SiStripConfigDb.SiStripConfigDb_cfi")
21 process.SiStripConfigDb.UsingDb =
True
22 process.SiStripConfigDb.ConfDb =
'overwritten/by@confdb'
23 process.SiStripConfigDb.Partitions.PrimaryPartition.PartitionName =
'DBPART'
24 process.SiStripConfigDb.Partitions.PrimaryPartition.RunNumber = RUNNUMBER
25 process.SiStripConfigDb.TNS_ADMIN =
'/etc'
28 process.source = cms.Source(
"EmptySource")
29 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(2) )
31 process.load(
"Geometry.CMSCommonData.cmsIdealGeometryXML_cfi")
32 process.load(
"Geometry.TrackerNumberingBuilder.trackerTopology_cfi")
33 process.load(
"Geometry.TrackerGeometryBuilder.trackerParameters_cfi")
35 process.load(
"DQM.SiStripCommissioningDbClients.OfflineDbClient_cff")
36 process.db_client.FilePath = cms.untracked.string(
'DATALOCATION')
37 process.db_client.RunNumber = cms.untracked.uint32(RUNNUMBER)
38 process.db_client.UseClientFile = cms.untracked.bool(CLIENTFLAG)
39 process.db_client.UploadHwConfig = cms.untracked.bool(DBUPDATE)
40 process.db_client.UploadAnalyses = cms.untracked.bool(ANALUPDATE)
41 process.db_client.DisableDevices = cms.untracked.bool(DISABLEDEVICES)
42 process.db_client.DisableBadStrips = cms.untracked.bool(DISABLEBADSTRIPS)
43 process.db_client.SaveClientFile = cms.untracked.bool(SAVECLIENTFILE)
46 process.db_client.PartitionName = cms.string(
"DBPART")
48 process.db_client.ApvTimingParameters.SkipFecUpdate = cms.bool(
True)
49 process.db_client.ApvTimingParameters.SkipFedUpdate = cms.bool(
False)
51 process.db_client.ApvTimingParameters.TargetDelay = cms.int32(-1)
53 process.db_client.OptoScanParameters.SkipGainUpdate = cms.bool(
False)
55 process.db_client.PedestalsParameters.KeepStripsDisabled = cms.bool(
True)
57 process.db_client.DaqScopeModeParameters.DisableBadStrips = cms.bool(
False)
58 process.db_client.DaqScopeModeParameters.KeepStripsDisabled = cms.bool(
True)
59 process.db_client.DaqScopeModeParameters.SkipPedestalUpdate = cms.bool(
False)
60 process.db_client.DaqScopeModeParameters.SkipTickUpdate = cms.bool(
False)
63 process.db_client.PedsFullNoiseParameters.DisableBadStrips = cms.bool(
True)
64 process.db_client.PedsFullNoiseParameters.KeepStripsDisabled = cms.bool(
True)
65 process.db_client.PedsFullNoiseParameters.UploadOnlyStripBadChannelBit = cms.bool(
True)
66 process.db_client.PedsFullNoiseParameters.SkipEmptyStrips = cms.bool(
True)
67 process.db_client.PedsFullNoiseParameters.UploadPedsFullNoiseDBTable = cms.bool(
False)
69 process.p = cms.Path(process.db_client)