Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:12:33

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("TEST")
0004 
0005 #########################
0006 # message logger
0007 ######################### 
0008 
0009 process.MessageLogger = cms.Service("MessageLogger",
0010     cerr = cms.untracked.PSet(
0011         noLineBreaks = cms.untracked.bool(False),
0012         threshold = cms.untracked.string('ERROR')
0013     ),
0014     debugModules = cms.untracked.vstring('*'),
0015     files = cms.untracked.PSet(
0016         debug = cms.untracked.PSet(
0017             noLineBreaks = cms.untracked.bool(False),
0018             threshold = cms.untracked.string('DEBUG')
0019         ),
0020         error = cms.untracked.PSet(
0021             noLineBreaks = cms.untracked.bool(False),
0022             threshold = cms.untracked.string('ERROR')
0023         ),
0024         info = cms.untracked.PSet(
0025             noLineBreaks = cms.untracked.bool(False),
0026             threshold = cms.untracked.string('INFO')
0027         ),
0028         warning = cms.untracked.PSet(
0029             noLineBreaks = cms.untracked.bool(False),
0030             threshold = cms.untracked.string('WARNING')
0031         )
0032     )
0033 )
0034 
0035 #process.MessageLogger = cms.Service("MessageLogger"
0036 #destinations = cms.untracked.vstring('cout', 'readFromFile'),
0037 #readFromFile = cms.untracked.PSet(
0038 #    threshold = cms.untracked.string('DEBUG')),
0039 #debugModules = cms.untracked.vstring('*')
0040 #)
0041 
0042 
0043 #########################
0044 # maxEvents ...
0045 #########################
0046 
0047 process.maxEvents = cms.untracked.PSet(
0048      input = cms.untracked.int32(1))
0049 
0050 # process.source = cms.Source("EmptySource",
0051 #     timetype = cms.string("runnumber"),
0052 #     firstRun = cms.untracked.uint32(118066),
0053 #     lastRun  = cms.untracked.uint32(118066),
0054 #     interval = cms.uint32(1)
0055 # )
0056 process.source = cms.Source("EmptySource",
0057     numberEventsInRun = cms.untracked.uint32(1),
0058     firstRun = cms.untracked.uint32(123815)
0059 )
0060 
0061 #########################
0062 # DQM services
0063 #########################
0064 process.load("DQMServices.Core.DQM_cfg")
0065 #from DQMServices.Core.DQM_cfg import *
0066 
0067 ########################
0068 #Global tag
0069 ########################
0070 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0071 #process.GlobalTag.globaltag = "CRAFT0831X_V1::All"
0072 #process.GlobalTag.globaltag = "GR09_31X_V1P::All"
0073 process.GlobalTag.globaltag = "GR09_E_V2::All"
0074 process.es_prefer_GlobalTag = cms.ESPrefer('PoolDBESSource','GlobalTag')
0075 
0076 ########################
0077 # DB parameters
0078 ########################
0079 
0080 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0081 #connect = cms.string("sqlite_file:historicDQM.db"),
0082 BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService'),
0083 connect = cms.string("sqlite_file:dbfile.db"),
0084 timetype = cms.untracked.string("runnumber"),
0085 DBParameters = cms.PSet(
0086    authenticationPath = cms.untracked.string("/afs/cern.ch/cms/DB/conddb"),
0087    messageLevel = cms.untracked.int32(4)
0088 ),
0089 toPut = cms.VPSet(
0090     cms.PSet(
0091         record = cms.string("SiStripBadStripRcd"),
0092         tag = cms.string("SiStripBadStrip_test1")
0093     )
0094 ),
0095 logconnect = cms.untracked.string("sqlite_file:log.db") 
0096 )
0097 
0098 
0099 # ########################
0100 # # POPCON Application
0101 # ########################
0102 # process.siStripPopConFEDErrorsDQM = cms.OutputModule(
0103 #     "SiStripPopConFEDErrorsDQM",
0104 #     record = cms.string("SiStripBadStripRcd"),
0105 #     loggingOn = cms.untracked.bool(True),
0106 #     SinceAppendMode = cms.bool(True),
0107 #     Source = cms.PSet(
0108 #         since = cms.untracked.uint32(108298),
0109 #         debug = cms.untracked.bool(False)
0110 #         )
0111 #     )
0112 
0113 
0114 ############################################
0115 # SiStripFEDErrorsDQM (POPCON Application) #
0116 ############################################
0117 
0118 process.siStripFEDErrorsDQM = cms.EDAnalyzer("SiStripPopConFEDErrorsDQM",
0119                                              RunNb = cms.uint32(123815),
0120                                              ##accessDQMFile = cms.bool(True),
0121                                              ##FILE_NAME = cms.untracked.string("/afs/cern.ch/cms/CAF/CMSCOMM/COMM_DQM/data/Online/123/815/DQM_V0001_SiStrip_R000123815.root"),
0122                                              ##ME_DIR = cms.untracked.string("Run 123815"),
0123                                              ##histoList = cms.VPSet(),
0124                                              Threshold = cms.untracked.double(0.0),
0125                                              Debug = cms.untracked.uint32(1)
0126                                              )
0127 
0128 # Schedule
0129 
0130 process.p = cms.Path(process.siStripFEDErrorsDQM)
0131 process.asciiPrint = cms.OutputModule("AsciiOutputModule") 
0132 process.ep = cms.EndPath(process.asciiPrint)
0133     
0134 
0135 
0136