Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:09:14

0001 import FWCore.ParameterSet.Config as cms
0002 import FWCore.ParameterSet.VarParsing as VarParsing
0003 
0004 
0005 from PhysicsTools.PatAlgos.tools.helpers import cloneProcessingSnippet
0006 
0007 process = cms.Process("sistripqualityhistory")
0008 
0009 #prepare options
0010 
0011 options = VarParsing.VarParsing("analysis")
0012 
0013 options.register ('globalTag',
0014                   "DONOTEXIST",
0015                   VarParsing.VarParsing.multiplicity.singleton, # singleton or list
0016                   VarParsing.VarParsing.varType.string,          # string, int, or float
0017                   "GlobalTag")
0018 
0019 options.parseArguments()
0020 
0021 process.options = cms.untracked.PSet(
0022     wantSummary = cms.untracked.bool(True),
0023     fileMode = cms.untracked.string("FULLMERGE")
0024     )
0025 
0026 process.load("FWCore.MessageService.MessageLogger_cfi")
0027 
0028 #----------------------------------------------------------------
0029 
0030 process.MessageLogger.cout.enable = cms.untracked.bool(True)
0031 process.MessageLogger.cout.threshold = cms.untracked.string("INFO")
0032 process.MessageLogger.cout.default = cms.untracked.PSet(
0033     limit = cms.untracked.int32(10000000)
0034     )
0035 process.MessageLogger.cout.FwkReport = cms.untracked.PSet(
0036     reportEvery = cms.untracked.int32(10000)
0037     )
0038 
0039 process.MessageLogger.cerr.enable = cms.untracked.bool(True)
0040 process.MessageLogger.cerr.threshold = cms.untracked.string("WARNING")
0041 process.MessageLogger.cerr.default = cms.untracked.PSet(
0042     limit = cms.untracked.int32(10000000)
0043     )
0044 process.MessageLogger.cerr.FwkReport = cms.untracked.PSet(
0045     reportEvery = cms.untracked.int32(100000)
0046     )
0047 
0048 #----Remove too verbose PrimaryVertexProducer
0049 
0050 process.MessageLogger.suppressInfo.append("pixelVerticesAdaptive")
0051 process.MessageLogger.suppressInfo.append("pixelVerticesAdaptiveNoBS")
0052 
0053 #----Remove too verbose BeamSpotOnlineProducer
0054 
0055 process.MessageLogger.suppressInfo.append("testBeamSpot")
0056 process.MessageLogger.suppressInfo.append("onlineBeamSpot")
0057 process.MessageLogger.suppressWarning.append("testBeamSpot")
0058 process.MessageLogger.suppressWarning.append("onlineBeamSpot")
0059 
0060 #----Remove too verbose TrackRefitter
0061 
0062 process.MessageLogger.suppressInfo.append("newTracksFromV0")
0063 process.MessageLogger.suppressInfo.append("newTracksFromOtobV0")
0064 
0065 process.MessageLogger.suppressWarning.append("consecutiveHEs")
0066 
0067 
0068 #------------------------------------------------------------------
0069 
0070 #process.MessageLogger.cout.threshold = cms.untracked.string("DEBUG")
0071 #process.MessageLogger.debugModules = cms.untracked.vstring("eventtimedistribution")
0072 
0073 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
0074 
0075 process.source = cms.Source("PoolSource",
0076                     fileNames = cms.untracked.vstring(options.inputFiles),
0077 #                    skipBadFiles = cms.untracked.bool(True),
0078                     inputCommands = cms.untracked.vstring("keep *", "drop *_MEtoEDMConverter_*_*")
0079                     )
0080 
0081 
0082 process.load("DPGAnalysis.SiStripTools.sistripqualityhistory_cff")
0083 
0084 process.ssqhistory.maxLSBeforeRebin = cms.untracked.uint32(100)
0085 process.ssqhistory.startingLSFraction = cms.untracked.uint32(1)
0086 process.ssqhistorystrips = process.ssqhistory.clone(granularityMode = cms.untracked.uint32(3))
0087 
0088 process.load("DPGAnalysis.SiStripTools.fedbadmodulefilter_cfi")
0089 process.fedbadmodulefilter.badModThr = cms.uint32(0)
0090 process.fedbadmodulefilter.wantedHisto = cms.untracked.bool(True)
0091 
0092 process.load("DPGAnalysis.SiStripTools.sipixelqualityhistory_cfi")
0093 
0094 process.spqhistory.maxLSBeforeRebin = cms.untracked.uint32(100)
0095 process.spqhistory.startingLSFraction = cms.untracked.uint32(1)
0096 process.spqhistorymod = process.spqhistory.clone(granularityMode = cms.untracked.uint32(1))
0097 
0098 process.TFileService = cms.Service('TFileService',
0099                                    fileName = cms.string('ssqhistorytest.root')
0100                                    )
0101 
0102 #----GlobalTag ------------------------
0103 
0104 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0105 from Configuration.AlCa.GlobalTag import GlobalTag
0106 process.GlobalTag = GlobalTag(process.GlobalTag, options.globalTag, '')
0107 
0108 #
0109 
0110 
0111 process.p0 = cms.Path(process.ssqhistory+process.ssqhistorystrips + process.spqhistory+process.spqhistorymod + process.fedbadmodulefilter)