CMS 3D CMS Logo

sourcefromraw_template_cfg.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 process = cms.Process("Source")
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 # should be true!
11 process.SiStripConfigDb.ConfDb = 'user/password@account' # taken from $CONFDB
12 process.SiStripConfigDb.Partitions.PrimaryPartition.PartitionName = 'DBPART'
13 process.SiStripConfigDb.Partitions.PrimaryPartition.RunNumber = RUNNUMBER
14 process.SiStripConfigDb.TNS_ADMIN = '/etc' # for P5 only!
15 
16 process.SiStripCondObjBuilderFromDb = cms.Service("SiStripCondObjBuilderFromDb")
17 process.SiStripCondObjBuilderFromDb.SiStripDetInfoFile = cms.FileInPath("CalibTracker/SiStripCommon/data/SiStripDetInfo.dat")
18 process.FedCablingFromConfigDb = cms.ESSource("SiStripFedCablingBuilderFromDb",
19  CablingSource = cms.untracked.string('UNDEFINED')
20 )
21 process.PedestalsFromConfigDb = cms.ESSource("SiStripPedestalsBuilderFromDb")
22 process.NoiseFromConfigDb = cms.ESSource("SiStripNoiseBuilderFromDb")
23 # produce SiStripFecCabling and SiStripDetCabling out of SiStripFedCabling
24 process.sistripconn = cms.ESProducer("SiStripConnectivity")
25 
26 process.source = cms.Source("PoolSource",
27  fileNames = cms.untracked.vstring()
28 )
29 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
30 
31 process.load("EventFilter.SiStripRawToDigi.FedChannelDigis_cfi")
32 process.FedChannelDigis.UnpackBadChannels = cms.bool(False)
33 
34 process.load("DQM.SiStripCommissioningSources.CommissioningHistos_cfi")
35 process.CommissioningHistos.CommissioningTask = 'UNDEFINED' # <-- run type taken from event data, but can be overriden
36 
37 process.p = cms.Path(process.FedChannelDigis*process.CommissioningHistos)
38 
39 #process.out = cms.OutputModule("PoolOutputModule",
40 # outputCommands = cms.untracked.vstring('keep *'),
41 # fileName = cms.untracked.string('digis.root')
42 #)
43 #process.outpath = cms.EndPath(process.out)