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("Source")
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                    # should be true!
0011 process.SiStripConfigDb.ConfDb = 'user/password@account'  # taken from $CONFDB
0012 process.SiStripConfigDb.Partitions.PrimaryPartition.PartitionName = 'DBPART'
0013 process.SiStripConfigDb.Partitions.PrimaryPartition.RunNumber     = RUNNUMBER
0014 process.SiStripConfigDb.TNS_ADMIN = '/etc'  # for P5 only!
0015 
0016 process.SiStripCondObjBuilderFromDb = cms.Service("SiStripCondObjBuilderFromDb")
0017 process.SiStripCondObjBuilderFromDb.SiStripDetInfoFile = cms.FileInPath("CalibTracker/SiStripCommon/data/SiStripDetInfo.dat")
0018 process.FedCablingFromConfigDb = cms.ESSource("SiStripFedCablingBuilderFromDb",
0019   CablingSource = cms.untracked.string('UNDEFINED')   ## <-- this should be replaced by "DEVICES" for a connection run!
0020 )
0021 process.PedestalsFromConfigDb = cms.ESSource("SiStripPedestalsBuilderFromDb")
0022 process.NoiseFromConfigDb = cms.ESSource("SiStripNoiseBuilderFromDb")
0023 # produce SiStripFecCabling and SiStripDetCabling out of SiStripFedCabling
0024 process.sistripconn = cms.ESProducer("SiStripConnectivity")
0025 
0026 process.source = cms.Source("PoolSource",
0027   fileNames = cms.untracked.vstring()
0028 )
0029 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
0030 
0031 process.load("EventFilter.SiStripRawToDigi.FedChannelDigis_cfi")
0032 process.FedChannelDigis.UnpackBadChannels = cms.bool(False)
0033 
0034 process.load("DQM.SiStripCommissioningSources.CommissioningHistos_cfi")
0035 process.CommissioningHistos.CommissioningTask = 'UNDEFINED'  # <-- run type taken from event data, but can be overriden
0036 
0037 process.p = cms.Path(process.FedChannelDigis*process.CommissioningHistos)
0038 
0039 #process.out = cms.OutputModule("PoolOutputModule",
0040 #    outputCommands = cms.untracked.vstring('keep *'),
0041 #    fileName = cms.untracked.string('digis.root')
0042 #)
0043 #process.outpath = cms.EndPath(process.out)