00001 import FWCore.ParameterSet.Config as cms 00002 00003 process = cms.Process("Source") 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 # should be true! 00011 process.SiStripConfigDb.ConfDb = 'user/password@account' # taken from $CONFDB 00012 process.SiStripConfigDb.Partitions.PrimaryPartition.PartitionName = 'DBPART' 00013 process.SiStripConfigDb.Partitions.PrimaryPartition.RunNumber = RUNNUMBER 00014 process.SiStripConfigDb.TNS_ADMIN = '/etc' # for P5 only! 00015 00016 process.SiStripCondObjBuilderFromDb = cms.Service("SiStripCondObjBuilderFromDb") 00017 process.FedCablingFromConfigDb = cms.ESSource("SiStripFedCablingBuilderFromDb", 00018 CablingSource = cms.untracked.string('UNDEFINED') ## <-- this should be replaced by "DEVICES" for a connection run! 00019 ) 00020 process.SiStripDetInfoFileReader = cms.Service("SiStripDetInfoFileReader") 00021 process.PedestalsFromConfigDb = cms.ESSource("SiStripPedestalsBuilderFromDb") 00022 process.NoiseFromConfigDb = cms.ESSource("SiStripNoiseBuilderFromDb") 00023 # produce SiStripFecCabling and SiStripDetCabling out of SiStripFedCabling 00024 process.sistripconn = cms.ESProducer("SiStripConnectivity") 00025 00026 process.Source = cms.Source("PoolSource", 00027 fileNames = cms.untracked.vstring() 00028 ) 00029 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) ) 00030 00031 process.load("EventFilter.SiStripRawToDigi.FedChannelDigis_cfi") 00032 process.FedChannelDigis.UnpackBadChannels = cms.bool(False) 00033 00034 process.load("DQM.SiStripCommissioningSources.CommissioningHistos_cfi") 00035 process.CommissioningHistos.CommissioningTask = 'UNDEFINED' # <-- run type taken from event data, but can be overriden 00036 00037 process.p = cms.Path(process.FedChannelDigis*process.CommissioningHistos) 00038 00039 #process.out = cms.OutputModule("PoolOutputModule", 00040 # outputCommands = cms.untracked.vstring('keep *'), 00041 # fileName = cms.untracked.string('digis.root') 00042 #) 00043 #process.outpath = cms.EndPath(process.out)