Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:08:34

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("SiStripCommissioningOfflineDbClient")
0004 
0005 process.load("DQM.SiStripCommon.MessageLogger_cfi")
0006 
0007 process.load("DQM.SiStripCommon.DaqMonitorROOTBackEnd_cfi")
0008 
0009 process.load("OnlineDB.SiStripConfigDb.SiStripConfigDb_cfi")
0010 process.SiStripConfigDb.UsingDb = True                                            # true means use database (not xml files)
0011 process.SiStripConfigDb.ConfDb  = 'overwritten/by@confdb'                         # database connection account ( or use CONFDB env. var.)
0012 process.SiStripConfigDb.Partitions.PrimaryPartition.PartitionName = 'DBPART'      # database partition (or use ENV_CMS_TK_PARTITION env. var.)
0013 process.SiStripConfigDb.Partitions.PrimaryPartition.RunNumber     = RUNNUMBER     # specify run number ("0" means use major/minor versions, which are by default set to "current state")
0014 process.SiStripConfigDb.TNS_ADMIN = '/etc'                                        # location of tnsnames.ora, needed at P5, not in TAC
0015 
0016 process.load("IORawData.SiStripInputSources.EmptySource_cff")
0017 process.maxEvents.input = 2
0018 
0019 process.load("DQM.SiStripCommissioningDbClients.OfflineDbClient_cff")
0020 process.db_client.FilePath         = cms.untracked.string('DATALOCATION')
0021 process.db_client.RunNumber        = cms.untracked.uint32(RUNNUMBER)
0022 process.db_client.UseClientFile    = cms.untracked.bool(CLIENTFLAG)
0023 process.db_client.UploadHwConfig   = cms.untracked.bool(DBUPDATE)
0024 process.db_client.UploadAnalyses   = cms.untracked.bool(ANALUPDATE)
0025 process.db_client.DisableDevices   = cms.untracked.bool(DISABLEDEVICES)
0026 process.db_client.SaveClientFile   = cms.untracked.bool(SAVECLIENTFILE)
0027 
0028 process.db_client.ApvTimingParameters.SkipFecUpdate = cms.bool(False)
0029 process.db_client.ApvTimingParameters.SkipFedUpdate = cms.bool(False)
0030 process.db_client.ApvTimingParameters.TargetDelay = cms.int32(725)
0031 process.db_client.OptoScanParameters.SkipGainUpdate = cms.bool(False)
0032 process.db_client.OptoScanParameters.TargetGain = cms.double(0.8)
0033 process.db_client.PedestalsParameters.DisableBadStrips = cms.bool(False)
0034 process.db_client.PedestalsParameters.KeepStripsDisabled = cms.bool(False)
0035 process.db_client.PedsFullNoiseParameters.DisableBadStrips = cms.bool(False)
0036 process.db_client.PedsFullNoiseParameters.KeepStripsDisabled = cms.bool(False)
0037 
0038 process.p = cms.Path(process.db_client)