Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("DQMOnlineRealData")
0004 #--------------------------
0005 # Event Source
0006 #--------------------------
0007 process.source = cms.Source("PoolSource",
0008     fileNames = cms.untracked.vstring(
0009     #'/store/data/Run2010B/MinimumBias/RAW/v1/000/149/011/0042F6EF-0AE1-DF11-9237-003048F1C420.root'
0010     'file:/afs/cern.ch/cms/CAF/CMSCOMM/COMM_DQM/DQMTest/MinimumBias__RAW__v1__165633__1CC420EE-B686-E011-A788-0030487CD6E8.root'
0011     #'/store/data/Run2011A/Jet/RAW/v1/000/173/692/18F5E657-E6CC-E011-97EE-BCAEC54DB5D6.root'
0012     )
0013 )
0014 process.maxEvents = cms.untracked.PSet(
0015     input = cms.untracked.int32(5000)
0016 )
0017 
0018 #-------------------------------------------------
0019 # Message Logger
0020 #-------------------------------------------------
0021 process.MessageLogger = cms.Service("MessageLogger",
0022     debugModules = cms.untracked.vstring('siStripDigis',
0023                                          'siStripZeroSuppression',
0024                                          'siStripClusters'
0025                                          'SiStripMonitorCluster'),
0026     cout = cms.untracked.PSet(threshold = cms.untracked.string('ERROR')),
0027     destinations = cms.untracked.vstring('cout')
0028 )
0029 
0030 #-----------------------------
0031 # Magnetic Field
0032 #-----------------------------
0033 process.load('Configuration.StandardSequences.MagneticField_cff')
0034 
0035 #-------------------------------------------------
0036 # Geometry
0037 #-------------------------------------------------
0038 process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
0039 
0040 #-------------------------------------------------
0041 # Calibration
0042 #-------------------------------------------------
0043 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0044 process.GlobalTag.globaltag = "GR_R_44_V4::All"
0045 #process.GlobalTag.globaltag = "GR_P_V22::All"
0046 
0047 #-----------------------
0048 #  Reconstruction Modules
0049 #-----------------------
0050 process.load("Configuration.StandardSequences.RawToDigi_Data_cff")
0051 #process.load("EventFilter.SiStripRawToDigi.SiStripDigis_cfi")
0052 #process.siStripDigis.ProductLabel = 'source'
0053 
0054 process.load("RecoLocalTracker.Configuration.RecoLocalTracker_cff")
0055 
0056 #--------------------------
0057 # DQM Services
0058 #--------------------------
0059 process.load("DQM.SiStripCommon.TkHistoMap_cff")
0060 
0061 #--------------------------
0062 # Producers
0063 #--------------------------
0064 # Event History Producer
0065 process.load("DPGAnalysis.SiStripTools.eventwithhistoryproducerfroml1abc_cfi")
0066 
0067 # APV Phase Producer
0068 #nwe one
0069 process.load("DPGAnalysis.SiStripTools.apvcyclephaseproducerfroml1ts_cfi")
0070 from DPGAnalysis.SiStripTools.apvcyclephaseproducerfroml1tsDB_cfi import *
0071 #APVPhases = cms.EDProducer("APVCyclePhaseProducerFromL1TS",
0072 #                            defaultPartitionNames = cms.vstring("TI",
0073 #                            "TO",
0074 #                            "TP",
0075 #                            "TM"
0076 #                            ),
0077 #                            defaultPhases = cms.vint32(60,60,60,60),
0078 #                            magicOffset = cms.untracked.int32(258),
0079 #                            l1TSCollection = cms.InputTag("scalersRawToDigi"),
0080 #                            )
0081 
0082 #--------------------------
0083 # SiStrip MonitorCluster
0084 #--------------------------
0085 process.load("DQM.SiStripMonitorCluster.SiStripMonitorCluster_cfi")
0086 process.SiStripMonitorCluster.CreateTrendMEs = True
0087 process.SiStripMonitorCluster.TkHistoMap_On = True
0088 process.SiStripMonitorCluster.SelectAllDetectors = True
0089 process.SiStripMonitorCluster.TProfTotalNumberOfClusters.subdetswitchon = True
0090 process.SiStripMonitorCluster.TH1TotalNumberOfClusters.subdetswitchon = True
0091 process.SiStripMonitorCluster.TProfClustersApvCycle.subdetswitchon = True
0092 process.SiStripMonitorCluster.TH2ClustersApvCycle.subdetswitchon = True
0093 process.SiStripMonitorCluster.TH2ClustersApvCycle.yfactor = 0.005
0094 process.SiStripMonitorCluster.TH2CStripVsCpixel.globalswitchon=True
0095 process.SiStripMonitorCluster.TH1MultiplicityRegions.globalswitchon=True
0096 process.SiStripMonitorCluster.TH1MainDiagonalPosition.globalswitchon=True
0097 process.SiStripMonitorCluster.TH1StripNoise2ApvCycle.globalswitchon=True
0098 process.SiStripMonitorCluster.TH1StripNoise3ApvCycle.globalswitchon=True
0099 
0100 
0101 process.outP = cms.OutputModule("AsciiOutputModule")
0102 
0103 process.AdaptorConfig = cms.Service("AdaptorConfig")
0104 
0105 process.RecoForDQM = cms.Sequence(process.siPixelDigis*process.siPixelClusters*process.siStripDigis*process.gtDigis*process.siStripZeroSuppression*process.siStripClusters)
0106 process.p = cms.Path(
0107     process.scalersRawToDigi*
0108     process.APVPhases*
0109     process.consecutiveHEs*
0110     process.RecoForDQM*process.SiStripMonitorCluster)
0111 process.ep = cms.EndPath(process.outP)
0112