Back to home page

Project CMSSW displayed by LXR

 
 

    


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 # Common Stuff for PP and H.I 
0008 #----------------------------
0009 process.load("DQM.Integration.test.inputsource_cfi")
0010 
0011 # HLT Filter
0012 process.load("HLTrigger.special.HLTTriggerTypeFilter_cfi")
0013 # 0=random, 1=physics, 2=calibration, 3=technical
0014 process.hltTriggerTypeFilter.SelectedTriggerType = 1
0015 
0016 process.physicsBitSelector = cms.EDFilter("PhysDecl",
0017                                           applyfilter = cms.untracked.bool(True),
0018                                           debugOn     = cms.untracked.bool(False))
0019 
0020 # L1 Filter
0021 process.load("L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskTechTrigConfig_cff")
0022 process.load("HLTrigger.HLTfilters.hltLevel1GTSeed_cfi")
0023 process.hltLevel1GTSeed.L1TechTriggerSeeding = cms.bool(True)
0024 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)")
0025 
0026 
0027 #----------------------------
0028 # DQM Environment
0029 #----------------------------
0030 process.load("DQM.Integration.test.environment_cfi")
0031 process.dqmEnv.subSystemFolder = "BeamPixel"
0032 
0033 
0034 #----------------------------
0035 # Sub-system Configuration
0036 #----------------------------
0037 ### @@@@@@ Comment when running locally @@@@@@ ###
0038 process.load("DQM.Integration.test.FrontierCondition_GT_cfi")
0039 ### @@@@@@ Comment when running locally @@@@@@ ###
0040 process.load("FWCore.MessageService.MessageLogger_cfi")
0041 process.load("Configuration.StandardSequences.Services_cff")
0042 process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
0043 process.load("Configuration.StandardSequences.MagneticField_AutoFromDBCurrent_cff")
0044 process.load("Configuration.StandardSequences.RawToDigi_Data_cff")
0045 process.load("Configuration.StandardSequences.EndOfProcess_cff")
0046 process.load("Configuration.EventContent.EventContent_cff")
0047 process.load("RecoTracker.TkTrackingRegions.GlobalTrackingRegion_cfi")
0048 process.load("RecoVertex.PrimaryVertexProducer.OfflinePixel3DPrimaryVertices_cfi")
0049 
0050 
0051 
0052 
0053 #----------------------------
0054 # Define common Sequence
0055 #----------------------------
0056 process.dqmmodules = cms.Sequence(process.dqmEnv 
0057                                 + process.dqmSaver)
0058 
0059 
0060 process.phystrigger = cms.Sequence(
0061                          process.hltTriggerTypeFilter
0062                          ### To use the L1 Filter uncomment the following line ###
0063                          #*process.gtDigis
0064                          #*process.hltLevel1GTSeed
0065        )
0066 
0067 
0068 
0069 
0070 #----------------------------
0071 # Proton-Proton Stuff
0072 #----------------------------
0073 if (process.runType.getRunType() == process.runType.pp_run or process.runType.getRunType() == process.runType.cosmic_run):
0074     print "Running pp paths"
0075 
0076     process.EventStreamHttpReader.consumerName = "Beam Pixel DQM Consumer"
0077     process.EventStreamHttpReader.SelectEvents = cms.untracked.PSet(SelectEvents = cms.vstring('HLT_L1*',
0078                                                                                               'HLT_Jet*',
0079                                                                                               'HLT_*Cosmic*',
0080                                                                                               'HLT_HT*',
0081                                                                                               'HLT_MinBias_*',
0082                                                                                               'HLT_Physics*',
0083                                                                                               'HLT_ZeroBias*'))
0084     process.load("Configuration.StandardSequences.Reconstruction_cff") ## pp reco sequence
0085 
0086 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
0087     process.pixelVertexDQM = DQMEDAnalyzer('Vx3DHLTAnalyzer',
0088                                             vertexCollection = cms.InputTag("pixelVertices"),
0089                                             debugMode        = cms.bool(True),
0090                                             nLumiReset       = cms.uint32(1),
0091                                             dataFromFit      = cms.bool(True),
0092                                             minNentries      = cms.uint32(20),
0093                                             # If the histogram has at least "minNentries" then extract Mean and RMS,
0094                                             # or, if we are performing the fit, the number of vertices must be greater
0095                                             # than minNentries otherwise it waits for other nLumiReset
0096                                             xRange           = cms.double(2.0),
0097                                             xStep            = cms.double(0.001),
0098                                             yRange           = cms.double(2.0),
0099                                             yStep            = cms.double(0.001),
0100                                             zRange           = cms.double(30.0),
0101                                             zStep            = cms.double(0.05),
0102                                             VxErrCorr        = cms.double(1.5),
0103                                             fileName         = cms.string("/nfshome0/yumiceva/BeamMonitorDQM/BeamPixelResults.txt"))
0104     if process.dqmSaver.producer.value() is "Playback":
0105        process.pixelVertexDQM.fileName = cms.string("/nfshome0/dqmdev/BeamMonitorDQM/BeamPixelResults.txt")
0106     else:
0107        process.pixelVertexDQM.fileName = cms.string("/nfshome0/dqmpro/BeamMonitorDQM/BeamPixelResults.txt")
0108 
0109     process.pixelVertices.TkFilterParameters.minPt = process.pixelTracks.RegionFactoryPSet.RegionPSet.ptMin
0110 
0111     process.reconstruction_step = cms.Sequence(
0112                                            process.siPixelDigis*
0113                                            process.offlineBeamSpot*
0114                                            process.siPixelClusters*
0115                                            process.siPixelRecHits*
0116                                            process.pixelTracks*
0117                                            process.pixelVertices*
0118                                            process.pixelVertexDQM)
0119 
0120 
0121     process.p = cms.Path(process.phystrigger 
0122                         *process.reconstruction_step 
0123                         *process.dqmmodules)
0124 
0125 
0126 
0127 
0128 
0129