Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("MonitorDigiRealData")
0004 
0005 #--------------------------
0006 # Event Source
0007 #--------------------------
0008 process.source = cms.Source("PoolSource",
0009     fileNames = cms.untracked.vstring(
0010 #        '/store/data/Commissioning08/Cosmics/RAW/v1/000/067/647/0000721C-35A3-DD11-9132-001D09F291D7.root'
0011 #       '/store/data/Commissioning08/Cosmics/RAW/v1/000/067/647/22CBBD11-07A3-DD11-9DFB-001D09F2447F.root'
0012 #        '/store/data/Commissioning08/Cosmics/RAW/v1/000/066/668/ECBAB6B1-519C-DD11-BBB5-000423D94E70.root'
0013     "file:/afs/cern.ch/cms/CAF/CMSCOMM/COMM_DQM/DQMTest/MinimumBias__RAW__v1__165633__1CC420EE-B686-E011-A788-0030487CD6E8.root"
0014 #"file:/afs/cern.ch/cms/CAF/CMSCOMM/COMM_DQM/DQMTest/Cosmics__RAW__v1__142560__026275A7-81A3-DF11-BDEE-001617C3B5D8.root"
0015 )
0016 )
0017 
0018 process.maxEvents = cms.untracked.PSet(
0019     input = cms.untracked.int32(100)
0020 )
0021 
0022 #-------------------------------------------------
0023 # Message Logger
0024 #-------------------------------------------------
0025 process.MessageLogger = cms.Service("MessageLogger",
0026     cerr = cms.untracked.PSet(
0027         enable = cms.untracked.bool(False)
0028     ),
0029     cout = cms.untracked.PSet(
0030         enable = cms.untracked.bool(True),
0031         threshold = cms.untracked.string('ERROR')
0032     ),
0033     debugModules = cms.untracked.vstring('siStripDigis')
0034 )
0035 
0036 #-------------------------------------------------
0037 # Geometry
0038 #-------------------------------------------------
0039 process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
0040 
0041 #-------------------------------------------------
0042 # Calibration
0043 #-------------------------------------------------
0044 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0045 process.GlobalTag.globaltag = 'GR_R_44_V4::All'
0046 process.es_prefer_GlobalTag = cms.ESPrefer('PoolDBESSource','GlobalTag')
0047 
0048 #-----------------------
0049 #  Reconstruction Modules
0050 #-----------------------
0051 process.load("EventFilter.SiStripRawToDigi.SiStripDigis_cfi")
0052 process.siStripDigis.ProductLabel = 'source'
0053 
0054 #--------------------------
0055 # DQM Services
0056 #--------------------------
0057 process.load("DQM.SiStripCommon.TkHistoMap_cff")
0058 
0059 #--------------------------
0060 # SiStrip MonitorDigi
0061 #--------------------------
0062 process.load("DQM.SiStripMonitorDigi.SiStripMonitorDigi_cfi")
0063 
0064 process.SiStripMonitorDigi.CreateTrendMEs = True
0065 
0066 process.SiStripMonitorDigi.TkHistoMap_On = True
0067 process.SiStripMonitorDigi.TkHistoMapNApvShots_On = True
0068 process.SiStripMonitorDigi.TkHistoMapNStripApvShots_On= False
0069 process.SiStripMonitorDigi.TkHistoMapMedianChargeApvShots_On= False
0070 
0071 
0072 process.SiStripMonitorDigi.TH1NApvShots.subdetswitchon = True
0073 process.SiStripMonitorDigi.TH1NApvShots.globalswitchon = True
0074 
0075 process.SiStripMonitorDigi.TH1ChargeMedianApvShots.subdetswitchon = False
0076 process.SiStripMonitorDigi.TH1ChargeMedianApvShots.globalswitchon = False
0077 
0078 process.SiStripMonitorDigi.TH1NStripsApvShots.subdetswitchon = False
0079 process.SiStripMonitorDigi.TH1NStripsApvShots.globalswitchon = False
0080 
0081 process.SiStripMonitorDigi.TH1ApvNumApvShots.subdetswitchon = False
0082 process.SiStripMonitorDigi.TH1ApvNumApvShots.globalswitchon = False
0083 
0084 process.SiStripMonitorDigi.TProfNShotsVsTime.subdetswitchon = False
0085 process.SiStripMonitorDigi.TProfNShotsVsTime.globalswitchon = False
0086 
0087 process.SiStripMonitorDigi.TProfTotalNumberOfDigis.subdetswitchon = True
0088 process.SiStripMonitorDigi.TProfDigiApvCycle.subdetswitchon = True
0089 
0090 #process.SiStripMonitorDigi.TH2DigiApvCycle.subdetswitchon = True
0091 #process.SiStripMonitorDigi.TH2DigiApvCycle.yfactor = 0.005
0092 
0093 process.SiStripMonitorDigi.SelectAllDetectors = True
0094 
0095 process.SiStripMonitorDigi.TProfGlobalNShots.globalswitchon = True
0096 
0097 process.outP = cms.OutputModule("AsciiOutputModule")
0098 process.AdaptorConfig = cms.Service("AdaptorConfig")
0099 
0100 #--------------------------
0101 # Sequences 
0102 #--------------------------
0103 
0104 process.RecoForDQM = cms.Sequence(process.siStripDigis)
0105 
0106 process.p = cms.Path(process.RecoForDQM*process.SiStripMonitorDigi)
0107 process.ep = cms.EndPath(process.outP)
0108 
0109