Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:11:33

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 # process declaration
0004 process = cms.Process("SiStripCommissioningOfflineDbClient")
0005 
0006 
0007 #############################################
0008 # General setup
0009 #############################################
0010 
0011 # message logger
0012 process.load('DQM.SiStripCommissioningSources.OfflineMessageLogger_cff')
0013 
0014 # DQM service
0015 process.load('DQM.SiStripCommissioningSources.OfflineDQM_cff')
0016 
0017 # config db settings
0018 process.load("OnlineDB.SiStripConfigDb.SiStripConfigDb_cfi")
0019 process.SiStripConfigDb.UsingDb = True                                            # true means use database (not xml files)
0020 process.SiStripConfigDb.ConfDb  = 'overwritten/by@confdb'                         # database connection account ( or use CONFDB env. var.)
0021 process.SiStripConfigDb.Partitions.PrimaryPartition.PartitionName = 'DBPART'      # database partition (or use ENV_CMS_TK_PARTITION env. var.)
0022 process.SiStripConfigDb.Partitions.PrimaryPartition.RunNumber     = RUNNUMBER     # specify run number ("0" means use major/minor versions, which are by default set to "current state")
0023 #process.SiStripConfigDb.TNS_ADMIN = '/etc'                                        # location of tnsnames.ora, needed at P5, not in TAC
0024     
0025 # input source
0026 process.load("IORawData.SiStripInputSources.EmptySource_cff")
0027 process.maxEvents.input = 2
0028 
0029 
0030 #############################################
0031 # extra setup for latency & fine delay
0032 #############################################
0033 
0034 # geometry
0035 process.load('DQM.SiStripCommissioningSources.P5Geometry_cff')
0036 # magnetic field (0T by default)
0037 process.load('MagneticField.Engine.uniformMagneticField_cfi')
0038 # fake global position
0039 process.load('Alignment.CommonAlignmentProducer.GlobalPosition_Fake_cff')
0040 
0041 
0042 ##############################################
0043 # modules & path for analysis
0044 ##############################################
0045 
0046 process.load("DQM.SiStripCommissioningDbClients.OfflineDbClient_cff")
0047 process.db_client.FilePath         = cms.untracked.string('DATALOCATION')
0048 process.db_client.RunNumber        = cms.untracked.uint32(RUNNUMBER)
0049 process.db_client.UseClientFile    = cms.untracked.bool(CLIENTFLAG)
0050 process.db_client.UploadHwConfig   = cms.untracked.bool(DBUPDATE)
0051 process.db_client.UploadAnalyses   = cms.untracked.bool(ANALUPDATE)
0052 process.db_client.DisableDevices   = cms.untracked.bool(DISABLEDEVICES)
0053 process.db_client.DisableBadStrips = cms.untracked.bool(DISABLEBADSTRIPS)
0054 process.db_client.AddBadStrips       = cms.untracked.bool(ADDBADSTRIPS)
0055 process.db_client.SaveClientFile   = cms.untracked.bool(SAVECLIENTFILE)
0056 
0057 process.p = cms.Path(process.db_client)