File indexing completed on 2024-04-06 12:06:53
0001 import FWCore.ParameterSet.Config as cms
0002
0003 process = cms.Process("BeamPixel")
0004
0005
0006
0007
0008
0009
0010 process.load("DQM.Integration.test.inputsource_cfi")
0011 process.EventStreamHttpReader.consumerName = "Beam Pixel DQM Consumer"
0012
0013
0014
0015
0016 process.load("HLTrigger.special.HLTTriggerTypeFilter_cfi")
0017
0018 process.hltTriggerTypeFilter.SelectedTriggerType = 1
0019 process.physicsBitSelector = cms.EDFilter("PhysDecl",
0020 applyfilter = cms.untracked.bool(True),
0021 debugOn = cms.untracked.bool(False))
0022
0023 process.load("L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskTechTrigConfig_cff")
0024 process.load("HLTrigger.HLTfilters.hltLevel1GTSeed_cfi")
0025 process.hltLevel1GTSeed.L1TechTriggerSeeding = cms.bool(True)
0026 process.hltLevel1GTSeed.L1SeedsLogicalExpression = cms.string("0 AND (40 OR 41) AND NOT (36 OR 37 OR 38 OR 39) AND (NOT 42 OR 43) AND (42 OR NOT 43)")
0027
0028
0029
0030
0031
0032 process.load("DQM.Integration.test.environment_cfi")
0033
0034
0035
0036 process.dqmEnv.subSystemFolder = "BeamPixel"
0037
0038
0039
0040
0041
0042
0043 process.load("DQM.Integration.test.FrontierCondition_GT_cfi")
0044
0045 process.load("FWCore.MessageService.MessageLogger_cfi")
0046 process.load("Configuration.StandardSequences.Services_cff")
0047 process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
0048 process.load("Configuration.StandardSequences.MagneticField_AutoFromDBCurrent_cff")
0049 process.load("Configuration.StandardSequences.RawToDigi_Data_cff")
0050 process.load("Configuration.StandardSequences.EndOfProcess_cff")
0051 process.load("Configuration.EventContent.EventContent_cff")
0052 process.load("RecoTracker.TkTrackingRegions.GlobalTrackingRegion_cfi")
0053 process.load("RecoVertex.PrimaryVertexProducer.OfflinePixel3DPrimaryVertices_cfi")
0054
0055
0056
0057
0058
0059
0060 process.dqmmodules = cms.Sequence(process.dqmEnv
0061 + process.dqmSaver)
0062
0063
0064 process.phystrigger = cms.Sequence(
0065 process.hltTriggerTypeFilter
0066
0067
0068 )
0069
0070
0071
0072
0073
0074
0075
0076 if (process.runType.getRunType() == process.runType.pp_run or process.runType.getRunType() == process.runType.cosmic_run):
0077 print "Running pp "
0078
0079 process.EventStreamHttpReader.SelectEvents = cms.untracked.PSet(SelectEvents = cms.vstring('HLT_L1*',
0080 'HLT_Jet*',
0081 'HLT_*Cosmic*',
0082 'HLT_HT*',
0083 'HLT_MinBias_*',
0084 'HLT_Physics*',
0085 'HLT_ZeroBias*'))
0086
0087 process.load("Configuration.StandardSequences.Reconstruction_cff")
0088
0089
0090
0091
0092 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
0093 process.pixelVertexDQM = DQMEDAnalyzer('Vx3DHLTAnalyzer',
0094 vertexCollection = cms.InputTag("pixelVertices"),
0095 debugMode = cms.bool(True),
0096 nLumiReset = cms.uint32(1),
0097 dataFromFit = cms.bool(True),
0098 minNentries = cms.uint32(20),
0099
0100
0101
0102 xRange = cms.double(2.0),
0103 xStep = cms.double(0.001),
0104 yRange = cms.double(2.0),
0105 yStep = cms.double(0.001),
0106 zRange = cms.double(30.0),
0107 zStep = cms.double(0.05),
0108 VxErrCorr = cms.double(1.5),
0109 fileName = cms.string("/nfshome0/yumiceva/BeamMonitorDQM/BeamPixelResults.txt"))
0110 if process.dqmSaver.producer.value() is "Playback":
0111 process.pixelVertexDQM.fileName = cms.string("/nfshome0/dqmdev/BeamMonitorDQM/BeamPixelResults.txt")
0112 else:
0113 process.pixelVertexDQM.fileName = cms.string("/nfshome0/dqmpro/BeamMonitorDQM/BeamPixelResults.txt")
0114
0115 process.pixelVertices.TkFilterParameters.minPt = process.pixelTracks.RegionFactoryPSet.RegionPSet.ptMin
0116
0117
0118 process.reconstruction_step = cms.Sequence(
0119 process.siPixelDigis*
0120 process.offlineBeamSpot*
0121 process.siPixelClusters*
0122 process.siPixelRecHits*
0123 process.pixelTracks*
0124 process.pixelVertices*
0125 process.pixelVertexDQM)
0126
0127 process.p = cms.Path(process.phystrigger
0128 * process.reconstruction_step
0129 * process.dqmmodules)
0130