File indexing completed on 2024-04-06 12:06:45
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("sistripqualityhistoryfakesource")
0008
0009
0010
0011 options = VarParsing.VarParsing("analysis")
0012
0013 options.register ('globalTag',
0014 "DONOTEXIST",
0015 VarParsing.VarParsing.multiplicity.singleton,
0016 VarParsing.VarParsing.varType.string,
0017 "GlobalTag")
0018 options.register ('firstRun',
0019 "1",
0020 VarParsing.VarParsing.multiplicity.singleton,
0021 VarParsing.VarParsing.varType.int,
0022 "First Run Number")
0023
0024 options.parseArguments()
0025
0026 process.options = cms.untracked.PSet(
0027 wantSummary = cms.untracked.bool(True),
0028 fileMode = cms.untracked.string("FULLMERGE")
0029 )
0030
0031 process.load("FWCore.MessageService.MessageLogger_cfi")
0032
0033
0034
0035 process.MessageLogger.cout.enable = cms.untracked.bool(True)
0036 process.MessageLogger.cout.threshold = cms.untracked.string("INFO")
0037 process.MessageLogger.cout.default = cms.untracked.PSet(
0038 limit = cms.untracked.int32(10000000)
0039 )
0040 process.MessageLogger.cout.FwkReport = cms.untracked.PSet(
0041 reportEvery = cms.untracked.int32(10000)
0042 )
0043
0044 process.MessageLogger.cerr.enable = cms.untracked.bool(True)
0045 process.MessageLogger.cerr.threshold = cms.untracked.string("WARNING")
0046 process.MessageLogger.cerr.default = cms.untracked.PSet(
0047 limit = cms.untracked.int32(10000000)
0048 )
0049 process.MessageLogger.cerr.FwkReport = cms.untracked.PSet(
0050 reportEvery = cms.untracked.int32(100000)
0051 )
0052
0053
0054
0055 process.MessageLogger.suppressInfo.append("pixelVerticesAdaptive")
0056 process.MessageLogger.suppressInfo.append("pixelVerticesAdaptiveNoBS")
0057
0058
0059
0060 process.MessageLogger.suppressInfo.append("testBeamSpot")
0061 process.MessageLogger.suppressInfo.append("onlineBeamSpot")
0062 process.MessageLogger.suppressWarning.append("testBeamSpot")
0063 process.MessageLogger.suppressWarning.append("onlineBeamSpot")
0064
0065
0066
0067 process.MessageLogger.suppressInfo.append("newTracksFromV0")
0068 process.MessageLogger.suppressInfo.append("newTracksFromOtobV0")
0069
0070 process.MessageLogger.suppressWarning.append("consecutiveHEs")
0071
0072
0073
0074
0075
0076
0077
0078 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(options.maxEvents) )
0079
0080 process.source = cms.Source("EmptySource",
0081 firstRun = cms.untracked.uint32(options.firstRun),
0082 numberEventsInRun = cms.untracked.uint32(1)
0083
0084 )
0085
0086
0087
0088
0089
0090
0091
0092
0093 process.load("DPGAnalysis.SiStripTools.sistripqualityhistory_noDCS_cff")
0094
0095 process.ssqhistory.runProcess = cms.bool(True)
0096 process.ssqhistory.maxLSBeforeRebin = cms.untracked.uint32(100)
0097 process.ssqhistory.startingLSFraction = cms.untracked.uint32(1)
0098 process.ssqhistorystrips = process.ssqhistory.clone(granularityMode = cms.untracked.uint32(3))
0099
0100
0101
0102
0103
0104 process.load("DPGAnalysis.SiStripTools.sipixelqualityhistory_cfi")
0105
0106 process.spqhistory.runProcess = cms.bool(True)
0107 process.spqhistory.maxLSBeforeRebin = cms.untracked.uint32(100)
0108 process.spqhistory.startingLSFraction = cms.untracked.uint32(1)
0109 process.spqhistorymod = process.spqhistory.clone(granularityMode = cms.untracked.uint32(1))
0110
0111 process.TFileService = cms.Service('TFileService',
0112 fileName = cms.string('ssqhistorytest.root')
0113 )
0114
0115
0116
0117 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0118 from Configuration.AlCa.GlobalTag import GlobalTag
0119 process.GlobalTag = GlobalTag(process.GlobalTag, options.globalTag, '')
0120
0121
0122
0123
0124 process.p0 = cms.Path(process.ssqhistory+process.ssqhistory+process.ssqhistorystrips + process.spqhistory+process.spqhistorymod)