Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 import FWCore.ParameterSet.VarParsing as VarParsing
0003 
0004 process = cms.Process("BigEventsDebugger")
0005 
0006 #prepare options
0007 
0008 options = VarParsing.VarParsing("analysis")
0009 
0010 options.register ('globalTag',
0011                   "DONOTEXIST",
0012                   VarParsing.VarParsing.multiplicity.singleton, # singleton or list
0013                   VarParsing.VarParsing.varType.string,          # string, int, or float
0014                   "GlobalTag")
0015 
0016 options.parseArguments()
0017 
0018 #
0019 
0020 process.options = cms.untracked.PSet(
0021     wantSummary = cms.untracked.bool(True),
0022     fileMode = cms.untracked.string("FULLMERGE")
0023     )
0024 
0025 process.load("FWCore.MessageService.MessageLogger_cfi")
0026 
0027 process.MessageLogger.cout.enable = cms.untracked.bool(True)
0028 process.MessageLogger.cout.threshold = cms.untracked.string("WARNING")
0029 process.MessageLogger.cout.default = cms.untracked.PSet(
0030     limit = cms.untracked.int32(10000000)
0031     )
0032 process.MessageLogger.cout.FwkReport = cms.untracked.PSet(
0033     reportEvery = cms.untracked.int32(10000)
0034     )
0035 
0036 process.MessageLogger.cerr.enable = cms.untracked.bool(True)
0037 process.MessageLogger.cerr.threshold = cms.untracked.string("WARNING")
0038 process.MessageLogger.cerr.default = cms.untracked.PSet(
0039     limit = cms.untracked.int32(10000000)
0040     )
0041 process.MessageLogger.cerr.FwkReport = cms.untracked.PSet(
0042     reportEvery = cms.untracked.int32(100000)
0043     )
0044 
0045 #----Remove too verbose PrimaryVertexProducer
0046 
0047 process.MessageLogger.suppressInfo.append("pixelVerticesAdaptive")
0048 process.MessageLogger.suppressInfo.append("pixelVerticesAdaptiveNoBS")
0049 
0050 #----Remove too verbose BeamSpotOnlineProducer
0051 
0052 process.MessageLogger.suppressInfo.append("testBeamSpot")
0053 process.MessageLogger.suppressInfo.append("onlineBeamSpot")
0054 process.MessageLogger.suppressWarning.append("testBeamSpot")
0055 process.MessageLogger.suppressWarning.append("onlineBeamSpot")
0056 
0057 #----Remove too verbose TrackRefitter
0058 
0059 process.MessageLogger.suppressInfo.append("newTracksFromV0")
0060 process.MessageLogger.suppressInfo.append("newTracksFromOtobV0")
0061 
0062 #------------------------------------------------------------------
0063 
0064 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
0065 
0066 process.source = cms.Source("PoolSource",
0067                     fileNames = cms.untracked.vstring(options.inputFiles),
0068 #                    skipBadFiles = cms.untracked.bool(True),
0069                     inputCommands = cms.untracked.vstring("keep *", "drop *_MEtoEDMConverter_*_*")
0070                     )
0071 
0072 #--------------------------------------
0073 process.load("Configuration.StandardSequences.RawToDigi_Data_cff")
0074 process.load("Configuration.StandardSequences.MagneticField_cff")
0075 process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
0076 process.load("Configuration.StandardSequences.Reconstruction_cff")
0077 
0078 process.load("DPGAnalysis.SiStripTools.sipixelclustermultiplicityprod_cfi")
0079 process.load("DPGAnalysis.SiStripTools.sistripclustermultiplicityprod_cfi")
0080 process.seqMultProd = cms.Sequence(process.spclustermultprod+process.ssclustermultprod)
0081 
0082 process.load("DPGAnalysis.SiStripTools.ssclusmultinvestigator_cfi")
0083 process.ssclusmultinvestigator.runHisto = cms.untracked.bool(False)
0084 process.ssclusmultinvestigator.scaleFactor=cms.untracked.int32(2)
0085 
0086 process.load("DPGAnalysis.SiStripTools.spclusmultinvestigator_cfi")
0087 process.spclusmultinvestigator.runHisto = cms.untracked.bool(False)
0088 process.spclusmultinvestigator.scaleFactor=cms.untracked.int32(5)
0089 
0090 process.load("DPGAnalysis.SiStripTools.multiplicitycorr_cfi")
0091 process.multiplicitycorr.correlationConfigurations = cms.VPSet(
0092    cms.PSet(xMultiplicityMap = cms.InputTag("ssclustermultprod"),
0093             xDetSelection = cms.uint32(0), xDetLabel = cms.string("TK"), xBins = cms.uint32(3000), xMax=cms.double(100000), 
0094             yMultiplicityMap = cms.InputTag("spclustermultprod"),
0095             yDetSelection = cms.uint32(0), yDetLabel = cms.string("Pixel"), yBins = cms.uint32(1000), yMax=cms.double(30000),
0096             rBins = cms.uint32(200), scaleFactor = cms.untracked.double(5.),
0097             runHisto=cms.bool(False),runHistoBXProfile=cms.bool(False),runHistoBX=cms.bool(False),runHisto2D=cms.bool(False))
0098    )
0099 
0100 process.seqClusMultInvest = cms.Sequence(process.spclusmultinvestigator + process.ssclusmultinvestigator + process.multiplicitycorr) 
0101 
0102 process.froml1abcHEs = cms.EDProducer("EventWithHistoryProducerFromL1ABC",
0103                                       l1ABCCollection=cms.InputTag("scalersRawToDigi")
0104                                       )
0105 process.load("DPGAnalysis.SiStripTools.apvcyclephaseproducerfroml1ts2011_cfi")
0106 process.load("DPGAnalysis.SiStripTools.eventtimedistribution_cfi")
0107 process.eventtimedistribution.historyProduct = cms.InputTag("froml1abcHEs")
0108 
0109 process.seqEventHistoryReco = cms.Sequence(process.froml1abcHEs + process.APVPhases)
0110 process.seqEventHistory = cms.Sequence(process.eventtimedistribution)
0111 
0112 process.load("DPGAnalysis.SiStripTools.bigeventsdebugger_cfi")
0113 
0114 
0115 process.seqProducers = cms.Sequence(process.seqMultProd
0116                                     + process.seqEventHistoryReco
0117 )
0118 
0119 process.p0 = cms.Path(
0120    process.siPixelDigis +  process.siStripDigis +
0121    process.trackerlocalreco +
0122    process.scalersRawToDigi +
0123    process.seqProducers +
0124    process.seqEventHistory +
0125    process.seqClusMultInvest +
0126    process.bigeventsdebugger
0127    )
0128 
0129 #----GlobalTag ------------------------
0130 
0131 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0132 from Configuration.AlCa.GlobalTag import GlobalTag
0133 process.GlobalTag = GlobalTag(process.GlobalTag, options.globalTag, '')
0134 
0135 #process.GlobalTag.toGet = cms.VPSet(
0136 #   cms.PSet(record = cms.string("SiPixelTemplateDBObjectRcd"),
0137 ##            tag = cms.string("SiPixelTemplateDBObject_38T_v3_mc"),
0138 #            tag = cms.string("SiPixelTemplateDBObject38Tv2_mc"),
0139 #            connect = cms.untracked.string("frontier://FrontierProd/CMS_COND_31X_PIXEL")
0140 #            )
0141 #   )
0142 
0143 
0144 process.TFileService = cms.Service('TFileService',
0145                                    fileName = cms.string('BigEventsDebugger.root')
0146 #                                   fileName = cms.string('TrackerLocal_rereco.root')
0147                                    )
0148 
0149 #print process.dumpPython()