test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
OfflineDbClient_cfg.py
Go to the documentation of this file.
2 
3 # process declaration
4 process = cms.Process("SiStripCommissioningOfflineDbClient")
5 
6 
7 #############################################
8 # General setup
9 #############################################
10 
11 # message logger
12 process.load('DQM.SiStripCommissioningSources.OfflineMessageLogger_cff')
13 
14 # DQM service
15 process.load('DQM.SiStripCommissioningSources.OfflineDQM_cff')
16 
17 # config db settings
18 process.load("OnlineDB.SiStripConfigDb.SiStripConfigDb_cfi")
19 process.SiStripConfigDb.UsingDb = True # true means use database (not xml files)
20 process.SiStripConfigDb.ConfDb = 'overwritten/by@confdb' # database connection account ( or use CONFDB env. var.)
21 process.SiStripConfigDb.Partitions.PrimaryPartition.PartitionName = 'DBPART' # database partition (or use ENV_CMS_TK_PARTITION env. var.)
22 process.SiStripConfigDb.Partitions.PrimaryPartition.RunNumber = RUNNUMBER # specify run number ("0" means use major/minor versions, which are by default set to "current state")
23 #process.SiStripConfigDb.TNS_ADMIN = '/etc' # location of tnsnames.ora, needed at P5, not in TAC
24 
25 # input source
26 process.load("IORawData.SiStripInputSources.EmptySource_cff")
27 process.maxEvents.input = 2
28 
29 
30 #############################################
31 # extra setup for latency & fine delay
32 #############################################
33 
34 # geometry
35 process.load('DQM.SiStripCommissioningSources.P5Geometry_cff')
36 # magnetic field (0T by default)
37 process.load('MagneticField.Engine.uniformMagneticField_cfi')
38 # fake global position
39 process.load('Alignment.CommonAlignmentProducer.GlobalPosition_Fake_cff')
40 
41 
42 ##############################################
43 # modules & path for analysis
44 ##############################################
45 
46 process.load("DQM.SiStripCommissioningDbClients.OfflineDbClient_cff")
47 process.db_client.FilePath = cms.untracked.string('DATALOCATION')
48 process.db_client.RunNumber = cms.untracked.uint32(RUNNUMBER)
49 process.db_client.UseClientFile = cms.untracked.bool(CLIENTFLAG)
50 process.db_client.UploadHwConfig = cms.untracked.bool(DBUPDATE)
51 process.db_client.UploadAnalyses = cms.untracked.bool(ANALUPDATE)
52 process.db_client.DisableDevices = cms.untracked.bool(DISABLEDEVICES)
53 process.db_client.DisableBadStrips = cms.untracked.bool(DISABLEBADSTRIPS)
54 process.db_client.AddBadStrips = cms.untracked.bool(ADDBADSTRIPS)
55 process.db_client.SaveClientFile = cms.untracked.bool(SAVECLIENTFILE)
56 
57 process.p = cms.Path(process.db_client)