CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_8_patch3/src/DQM/SiStripCommissioningDbClients/python/OfflineDbClient_cfg.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 # process declaration
00004 process = cms.Process("SiStripCommissioningOfflineDbClient")
00005 
00006 
00007 #############################################
00008 # General setup
00009 #############################################
00010 
00011 # message logger
00012 process.load('DQM.SiStripCommissioningSources.OfflineMessageLogger_cff')
00013 
00014 # DQM service
00015 process.load('DQM.SiStripCommissioningSources.OfflineDQM_cff')
00016 
00017 # config db settings
00018 process.load("OnlineDB.SiStripConfigDb.SiStripConfigDb_cfi")
00019 process.SiStripConfigDb.UsingDb = True                                            # true means use database (not xml files)
00020 process.SiStripConfigDb.ConfDb  = 'overwritten/by@confdb'                         # database connection account ( or use CONFDB env. var.)
00021 process.SiStripConfigDb.Partitions.PrimaryPartition.PartitionName = 'DBPART'      # database partition (or use ENV_CMS_TK_PARTITION env. var.)
00022 process.SiStripConfigDb.Partitions.PrimaryPartition.RunNumber     = RUNNUMBER     # specify run number ("0" means use major/minor versions, which are by default set to "current state")
00023 #process.SiStripConfigDb.TNS_ADMIN = '/etc'                                        # location of tnsnames.ora, needed at P5, not in TAC
00024     
00025 # input source
00026 process.load("IORawData.SiStripInputSources.EmptySource_cff")
00027 process.maxEvents.input = 2
00028 
00029 
00030 #############################################
00031 # extra setup for latency & fine delay
00032 #############################################
00033 
00034 # geometry
00035 process.load('DQM.SiStripCommissioningSources.P5Geometry_cff')
00036 # magnetic field (0T by default)
00037 process.load('MagneticField.Engine.uniformMagneticField_cfi')
00038 # fake global position
00039 process.load('Alignment.CommonAlignmentProducer.GlobalPosition_Fake_cff')
00040 
00041 
00042 ##############################################
00043 # modules & path for analysis
00044 ##############################################
00045 
00046 process.load("DQM.SiStripCommissioningDbClients.OfflineDbClient_cff")
00047 process.db_client.FilePath         = cms.untracked.string('DATALOCATION')
00048 process.db_client.RunNumber        = cms.untracked.uint32(RUNNUMBER)
00049 process.db_client.UseClientFile    = cms.untracked.bool(CLIENTFLAG)
00050 process.db_client.UploadHwConfig   = cms.untracked.bool(DBUPDATE)
00051 process.db_client.UploadAnalyses   = cms.untracked.bool(ANALUPDATE)
00052 process.db_client.DisableDevices   = cms.untracked.bool(DISABLEDEVICES)
00053 process.db_client.DisableBadStrips = cms.untracked.bool(DISABLEBADSTRIPS)
00054 process.db_client.AddBadStrips           = cms.untracked.bool(ADDBADSTRIPS)
00055 process.db_client.SaveClientFile   = cms.untracked.bool(SAVECLIENTFILE)
00056 
00057 process.p = cms.Path(process.db_client)