CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/DQM/SiStripCommissioningSources/data/analysis_template_cfg.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 process = cms.Process("SiStripCommissioningOfflineDbClient")
00004 
00005 process.load("DQM.SiStripCommon.MessageLogger_cfi")
00006 
00007 process.load("DQM.SiStripCommon.DaqMonitorROOTBackEnd_cfi")
00008 
00009 process.load("OnlineDB.SiStripConfigDb.SiStripConfigDb_cfi")
00010 process.SiStripConfigDb.UsingDb = True                                            # true means use database (not xml files)
00011 process.SiStripConfigDb.ConfDb  = 'overwritten/by@confdb'                         # database connection account ( or use CONFDB env. var.)
00012 process.SiStripConfigDb.Partitions.PrimaryPartition.PartitionName = 'DBPART'      # database partition (or use ENV_CMS_TK_PARTITION env. var.)
00013 process.SiStripConfigDb.Partitions.PrimaryPartition.RunNumber     = RUNNUMBER     # specify run number ("0" means use major/minor versions, which are by default set to "current state")
00014 process.SiStripConfigDb.TNS_ADMIN = '/etc'                                        # location of tnsnames.ora, needed at P5, not in TAC
00015 
00016 process.load("IORawData.SiStripInputSources.EmptySource_cff")
00017 process.maxEvents.input = 2
00018 
00019 process.load("DQM.SiStripCommissioningDbClients.OfflineDbClient_cff")
00020 process.db_client.FilePath         = cms.untracked.string('DATALOCATION')
00021 process.db_client.RunNumber        = cms.untracked.uint32(RUNNUMBER)
00022 process.db_client.UseClientFile    = cms.untracked.bool(CLIENTFLAG)
00023 process.db_client.UploadHwConfig   = cms.untracked.bool(DBUPDATE)
00024 process.db_client.UploadAnalyses   = cms.untracked.bool(ANALUPDATE)
00025 process.db_client.DisableDevices   = cms.untracked.bool(DISABLEDEVICES)
00026 process.db_client.SaveClientFile   = cms.untracked.bool(SAVECLIENTFILE)
00027 
00028 process.db_client.ApvTimingParameters.SkipFecUpdate = cms.bool(False)
00029 process.db_client.ApvTimingParameters.SkipFedUpdate = cms.bool(False)
00030 process.db_client.ApvTimingParameters.TargetDelay = cms.int32(725)
00031 process.db_client.OptoScanParameters.SkipGainUpdate = cms.bool(False)
00032 process.db_client.OptoScanParameters.TargetGain = cms.double(0.8)
00033 process.db_client.PedestalsParameters.DisableBadStrips = cms.bool(False)
00034 process.db_client.PedestalsParameters.KeepStripsDisabled = cms.bool(False)
00035 process.db_client.PedsFullNoiseParameters.DisableBadStrips = cms.bool(False)
00036 process.db_client.PedsFullNoiseParameters.KeepStripsDisabled = cms.bool(False)
00037 
00038 process.p = cms.Path(process.db_client)