CMS 3D CMS Logo

analysis_template_cfg.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 process = cms.Process("SiStripCommissioningOfflineDbClient")
4 
5 process.load("DQM.SiStripCommon.MessageLogger_cfi")
6 
7 process.load("DQM.SiStripCommon.DaqMonitorROOTBackEnd_cfi")
8 
9 process.load("OnlineDB.SiStripConfigDb.SiStripConfigDb_cfi")
10 process.SiStripConfigDb.UsingDb = True # true means use database (not xml files)
11 process.SiStripConfigDb.ConfDb = 'overwritten/by@confdb' # database connection account ( or use CONFDB env. var.)
12 process.SiStripConfigDb.Partitions.PrimaryPartition.PartitionName = 'DBPART' # database partition (or use ENV_CMS_TK_PARTITION env. var.)
13 process.SiStripConfigDb.Partitions.PrimaryPartition.RunNumber = RUNNUMBER # specify run number ("0" means use major/minor versions, which are by default set to "current state")
14 process.SiStripConfigDb.TNS_ADMIN = '/etc' # location of tnsnames.ora, needed at P5, not in TAC
15 
16 process.load("IORawData.SiStripInputSources.EmptySource_cff")
17 process.maxEvents.input = 2
18 
19 process.load("DQM.SiStripCommissioningDbClients.OfflineDbClient_cff")
20 process.db_client.FilePath = cms.untracked.string('DATALOCATION')
21 process.db_client.RunNumber = cms.untracked.uint32(RUNNUMBER)
22 process.db_client.UseClientFile = cms.untracked.bool(CLIENTFLAG)
23 process.db_client.UploadHwConfig = cms.untracked.bool(DBUPDATE)
24 process.db_client.UploadAnalyses = cms.untracked.bool(ANALUPDATE)
25 process.db_client.DisableDevices = cms.untracked.bool(DISABLEDEVICES)
26 process.db_client.SaveClientFile = cms.untracked.bool(SAVECLIENTFILE)
27 
28 process.db_client.ApvTimingParameters.SkipFecUpdate = cms.bool(False)
29 process.db_client.ApvTimingParameters.SkipFedUpdate = cms.bool(False)
30 process.db_client.ApvTimingParameters.TargetDelay = cms.int32(725)
31 process.db_client.OptoScanParameters.SkipGainUpdate = cms.bool(False)
32 process.db_client.OptoScanParameters.TargetGain = cms.double(0.8)
33 process.db_client.PedestalsParameters.DisableBadStrips = cms.bool(False)
34 process.db_client.PedestalsParameters.KeepStripsDisabled = cms.bool(False)
35 process.db_client.PedsFullNoiseParameters.DisableBadStrips = cms.bool(False)
36 process.db_client.PedsFullNoiseParameters.KeepStripsDisabled = cms.bool(False)
37 
38 process.p = cms.Path(process.db_client)