Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process('DQMCMMonitor')
0004 
0005 process.load('Configuration/StandardSequences/Services_cff')
0006 process.load('FWCore/MessageService/MessageLogger_cfi')
0007 
0008 process.source = cms.Source(
0009   "PoolSource",
0010   fileNames = cms.untracked.vstring(
0011         #'file:/home/magnan/SOFTWARE/CMS/data/FED/Commissioning08/Run69750_FEED31F3-58AC-DD11-BF73-000423D99658.root'
0012         #'file:/home/magnan/SOFTWARE/CMS/data/FED/Commissioning08/Run69800_026DBE87-A5AC-DD11-9397-0030487C608C.root'
0013         #'file:/home/magnan/SOFTWARE/CMS/CMSSW_3_1_0_pre11/src/FedWorkDir/FedMonitoring/test/Digi_run69800.root'
0014         #'file:/home/magnan/SOFTWARE/CMS/data/FED/Commissioning08/Run69797_FC26431D-91AC-DD11-A0D1-001617E30CC8.root'
0015         #'file:/home/magnan/SOFTWARE/CMS/data/FED/Commissioning08/Run69874_98BB9120-E6AC-DD11-9B91-000423D99896.root'
0016         'file:/home/magnan/SOFTWARE/CMS/data/FED/Commissioning09/Run106019_00D9F347-4D72-DE11-93F6-001D09F24399.root'
0017         #'file:/home/magnan/SOFTWARE/CMS/data/FED/Commissioning09/Run101045_A6F7D0D3-4560-DE11-A52A-001D09F2545B.root'
0018         ),
0019   skipBadFiles = cms.untracked.bool(True),                        
0020   #inputCommands = cms.untracked.vstring('drop *', 'keep *_source_*_*'),
0021 
0022   )
0023 
0024 #process.load("DQM.SiStripMonitorHardware.test.source_cff")
0025 process.maxEvents = cms.untracked.PSet(
0026     input = cms.untracked.int32(1000)
0027     )
0028 
0029 #process.service = cms.ProfilerService {
0030 #    untracked int32 firstEvent = 1
0031 #    untracked int32 lastEvent = 50
0032 #    untracked vstring paths = { "p"}
0033 #    }
0034 
0035 #process.load('DQM.SiStripCommon.MessageLogger_cfi')
0036 process.load('FWCore/MessageService/MessageLogger_cfi')
0037 process.MessageLogger = cms.Service("MessageLogger",
0038     cerr = cms.untracked.PSet(
0039         noLineBreaks = cms.untracked.bool(False),
0040         threshold = cms.untracked.string('ERROR')
0041     ),
0042     files = cms.untracked.PSet(
0043         debug = cms.untracked.PSet(
0044             noLineBreaks = cms.untracked.bool(False),
0045             threshold = cms.untracked.string('DEBUG')
0046         ),
0047         error = cms.untracked.PSet(
0048             noLineBreaks = cms.untracked.bool(False),
0049             threshold = cms.untracked.string('ERROR')
0050         ),
0051         info = cms.untracked.PSet(
0052             noLineBreaks = cms.untracked.bool(False),
0053             threshold = cms.untracked.string('INFO')
0054         ),
0055         warning = cms.untracked.PSet(
0056             noLineBreaks = cms.untracked.bool(False),
0057             threshold = cms.untracked.string('WARNING')
0058         )
0059     ),
0060     suppressDebug = cms.untracked.vstring(),
0061     suppressInfo = cms.untracked.vstring(),
0062     suppressWarning = cms.untracked.vstring()
0063 )
0064 
0065 
0066 #needed to produce tkHistoMap
0067 process.load("DQM.SiStripCommon.TkHistoMap_cff")
0068 
0069 # Conditions (Global Tag is used here):
0070 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0071 #process.GlobalTag.connect = "frontier://FrontierProd/CMS_COND_21X_GLOBALTAG"
0072 process.GlobalTag.globaltag = "GR09_31X_V1P::All"
0073 process.es_prefer_GlobalTag = cms.ESPrefer('PoolDBESSource','GlobalTag')
0074 
0075 process.load("CondCore.DBCommon.CondDBSetup_cfi")
0076 process.load("Configuration.StandardSequences.MagneticField_38T_cff")
0077 process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
0078 # Real data raw to digi
0079 process.load("Configuration.StandardSequences.RawToDigi_Data_cff")
0080 process.load("Configuration.StandardSequences.ReconstructionCosmics_cff")
0081 
0082 
0083 process.load("DPGAnalysis.SiStripTools.apvshotsanalyzer_cfi")
0084 
0085 process.load('DQM.SiStripMonitorHardware.siStripCMMonitor_cfi')
0086 process.siStripCMMonitor.FillWithEventNumber = False
0087 process.siStripCMMonitor.FillWithLocalEventNumber = False
0088 process.siStripCMMonitor.FedIdVec = 100,200,400
0089 process.siStripCMMonitor.PrintDebugMessages = 1
0090 process.siStripCMMonitor.WriteDQMStore = True
0091 process.siStripCMMonitor.DQMStoreFileName = "DQMStore_CM_run106019.root"
0092 
0093 #process.siStripCMMonitor.TimeHistogramConfig.NBins = 100
0094 #process.siStripCMMonitor.TimeHistogramConfig.Min = 0
0095 #process.siStripCMMonitor.TimeHistogramConfig.Max = 1
0096 
0097 process.load('PerfTools.Callgrind.callgrindSwitch_cff')
0098 
0099 process.TFileService = cms.Service("TFileService", 
0100                                    fileName = cms.string("Shot_run106019.root"),
0101                                    closeFileFast = cms.untracked.bool(True)
0102                                    )
0103 
0104 
0105 process.p = cms.Path( #process.profilerStart*
0106                       process.siStripDigis
0107                       *process.siStripZeroSuppression
0108                       *process.apvshotsanalyzer
0109                       *process.siStripCMMonitor
0110                       #*process.profilerStop 
0111                       )
0112 
0113 process.saveDigis = cms.OutputModule( 
0114     "PoolOutputModule",
0115     outputCommands = cms.untracked.vstring(
0116         'drop *_*_*_HLT',
0117         'drop *_*_*Raw_DQMCMMonitor',
0118         'drop *_*_ScopeMode_DQMCMMonitor',
0119         'keep *_siStripDigis_ZeroSuppressed_*',
0120         'keep *_source_*_*'
0121         ),
0122     fileName = cms.untracked.string('Digi_run106019.root')
0123     )
0124 
0125 process.pout = cms.EndPath( process.saveDigis )