Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("BeamPixel")
0004 
0005 
0006 #----------------------------
0007 # Common for PP and HI running
0008 #----------------------------
0009 ### @@@@@@ Comment when running locally @@@@@@ ###
0010 process.load("DQM.Integration.test.inputsource_cfi")
0011 process.EventStreamHttpReader.consumerName = "Beam Pixel DQM Consumer"
0012 
0013 
0014 #----------------------------
0015 # HLT Filter
0016 process.load("HLTrigger.special.HLTTriggerTypeFilter_cfi")
0017 # 0=random, 1=physics, 2=calibration, 3=technical
0018 process.hltTriggerTypeFilter.SelectedTriggerType = 1
0019 process.physicsBitSelector = cms.EDFilter("PhysDecl",
0020                                           applyfilter = cms.untracked.bool(True),
0021                                           debugOn     = cms.untracked.bool(False))
0022 # L1 Filter
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 # DQM Environment
0031 #----------------------------
0032 process.load("DQM.Integration.test.environment_cfi")
0033 ### @@@@@@ Un-comment when running locally @@@@@@ ###
0034 #process.DQM.collectorHost = ''
0035 ### @@@@@@ Un-comment when running locally @@@@@@ ###
0036 process.dqmEnv.subSystemFolder = "BeamPixel"
0037 
0038 
0039 #----------------------------
0040 # Sub-system Configuration
0041 #----------------------------
0042 ### @@@@@@ Comment when running locally @@@@@@ ###
0043 process.load("DQM.Integration.test.FrontierCondition_GT_cfi")
0044 ### @@@@@@ Comment when running locally @@@@@@ ###
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 # Define Sequence
0059 #----------------------------
0060 process.dqmmodules = cms.Sequence(process.dqmEnv 
0061                                 + process.dqmSaver)
0062 
0063 
0064 process.phystrigger = cms.Sequence(
0065                                     process.hltTriggerTypeFilter
0066                                     ### To use the L1 Filter uncomment the following line ###
0067                                     #  *process.gtDigis*process.hltLevel1GTSeed
0068                               )
0069 
0070 
0071 
0072 #----------------------------
0073 # Proton-Proton Running Stuff
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     # pixelVertexDQM Configuration
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                                             # If the histogram has at least "minNentries" then extract Mean and RMS,
0100                                             # or, if we are performing the fit, the number of vertices must be greater
0101                                             # than minNentries otherwise it waits for other nLumiReset
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 
0131 #--------------------------------------------------
0132 # Heavy Ion Specific Part
0133 #--------------------------------------------------
0134 
0135 if (process.runType.getRunType() == process.runType.hi_run):
0136     
0137     print "Running HI "
0138     process.castorDigis.InputLabel = cms.InputTag("rawDataRepacker")
0139     process.csctfDigis.producer = cms.InputTag("rawDataRepacker")
0140     process.dttfDigis.DTTF_FED_Source = cms.InputTag("rawDataRepacker")
0141     process.ecalDigis.InputLabel = cms.InputTag("rawDataRepacker")
0142     process.ecalPreshowerDigis.sourceTag = cms.InputTag("rawDataRepacker")
0143     process.gctDigis.inputLabel = cms.InputTag("rawDataRepacker")
0144     process.gtDigis.DaqGtInputTag = cms.InputTag("rawDataRepacker")
0145     process.gtEvmDigis.EvmGtInputTag = cms.InputTag("rawDataRepacker")
0146     process.hcalDigis.InputLabel = cms.InputTag("rawDataRepacker")
0147     process.muonCSCDigis.InputObjects = cms.InputTag("rawDataRepacker")
0148     process.muonDTDigis.inputLabel = cms.InputTag("rawDataRepacker")
0149     process.muonRPCDigis.InputLabel = cms.InputTag("rawDataRepacker")
0150     process.scalersRawToDigi.scalersInputTag = cms.InputTag("rawDataRepacker")
0151     process.siPixelDigis.InputLabel = cms.InputTag("rawDataRepacker")
0152     process.siStripDigis.ProductLabel = cms.InputTag("rawDataRepacker")
0153 
0154 
0155     process.load("Configuration.StandardSequences.ReconstructionHeavyIons_cff") ## HI sequences
0156 
0157     process.EventStreamHttpReader.consumerName = "Beam Pixel DQM Consumer"
0158     process.EventStreamHttpReader.SelectEvents =  cms.untracked.PSet(
0159              SelectEvents = cms.vstring( 'HLT_HI*')
0160                 )
0161 
0162     #----------------------------
0163     # pixelVertexDQM Configuration
0164     #----------------------------
0165     process.pixelVertexDQM = DQMEDAnalyzer('Vx3DHLTAnalyzer',
0166                                             vertexCollection = cms.InputTag("hiSelectedVertex"),
0167                                             debugMode        = cms.bool(True),
0168                                             nLumiReset       = cms.uint32(1),
0169                                             dataFromFit      = cms.bool(True),
0170                                             minNentries      = cms.uint32(20),
0171                                             # If the histogram has at least "minNentries" then extract Mean and RMS,
0172                                             # or, if we are performing the fit, the number of vertices must be greater
0173                                             # than minNentries otherwise it waits for other nLumiReset
0174                                             xRange           = cms.double(2.0),
0175                                             xStep            = cms.double(0.001),
0176                                             yRange           = cms.double(2.0),
0177                                             yStep            = cms.double(0.001),
0178                                             zRange           = cms.double(30.0),
0179                                             zStep            = cms.double(0.05),
0180                                             VxErrCorr        = cms.double(1.5),
0181                                             fileName         = cms.string("/nfshome0/yumiceva/BeamMonitorDQM/BeamPixelResults.txt"))
0182     if process.dqmSaver.producer.value() is "Playback":
0183        process.pixelVertexDQM.fileName = cms.string("/nfshome0/dqmdev/BeamMonitorDQM/BeamPixelResults.txt")
0184     else:
0185        process.pixelVertexDQM.fileName = cms.string("/nfshome0/dqmpro/BeamMonitorDQM/BeamPixelResults.txt")
0186 
0187 
0188     #----------------------------
0189     # Pixel-Tracks Configuration
0190     #----------------------------
0191     #process.PixelTrackReconstructionBlock.RegionFactoryPSet.ComponentName = "GlobalRegionProducer"
0192 
0193 
0194     #----------------------------
0195     # Pixel-Vertices Configuration
0196     #----------------------------
0197     process.reconstruction_step = cms.Sequence(
0198                                            process.siPixelDigis*
0199                                            process.offlineBeamSpot*
0200                                            process.siPixelClusters*
0201                                            process.siPixelRecHits*
0202                                            process.offlineBeamSpot*
0203                                            process.hiPixelVertices*
0204                                            process.pixelVertexDQM)
0205 
0206     #----------------------------
0207     # Define Path
0208     #----------------------------
0209     
0210     process.p = cms.Path(process.phystrigger 
0211                          *process.reconstruction_step 
0212                          *process.dqmmodules)
0213