Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-03-14 23:57:21

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("DQM")
0004 process.load("DQMServices.Core.DQM_cfg")
0005 
0006 process.load("DQM.BeamMonitor.BeamMonitor_cff")
0007 process.load("DQM.BeamMonitor.BeamMonitorBx_cff")
0008 process.load("DQM.BeamMonitor.BeamConditionsMonitor_cff")
0009 
0010 process.load('Configuration/StandardSequences/GeometryExtended_cff')
0011 process.load('Configuration/StandardSequences/MagneticField_AutoFromDBCurrent_cff')
0012 process.load("Configuration.StandardSequences.RawToDigi_Data_cff") ## For Real Data
0013 #process.load("Configuration.StandardSequences.MagneticField_38T_cff")
0014 process.load("Configuration.StandardSequences.Reconstruction_cff")
0015 process.load("DQMServices.Components.DQMEnvironment_cfi")
0016 
0017 process.maxEvents = cms.untracked.PSet(
0018     input = cms.untracked.int32(-1)
0019 )
0020 
0021 process.source = cms.Source(
0022     "PoolSource",
0023     fileNames = cms.untracked.vstring(
0024         'file:/data1/heavyion/0662E9D1-D070-DF11-8329-001E68865F6D.root',
0025         'file:/data1/heavyion/06B2AC18-8170-DF11-A5E0-001E6878F716.root',
0026         'file:/data1/heavyion/0A61729E-8270-DF11-A629-00E081300BDA.root',
0027         'file:/data1/heavyion/0C0A25E3-8070-DF11-BF64-001E688629B3.root',
0028         'file:/data1/heavyion/246A161A-8170-DF11-A8B1-001E6849D384.root',
0029         'file:/data1/heavyion/3679ED40-8070-DF11-8A80-001E6865A59A.root',
0030         'file:/data1/heavyion/409BE308-BD71-DF11-8494-00188B7ABC14.root',
0031         'file:/data1/heavyion/445EF2FD-7F70-DF11-BF0A-00188B7ABC0E.root',
0032         'file:/data1/heavyion/4CB4830C-8270-DF11-B4A7-001E6849D21C.root',
0033         'file:/data1/heavyion/54A93027-3A71-DF11-8B43-00E081300BDA.root',
0034         'file:/data1/heavyion/580BCF18-8170-DF11-B39A-001E6878F716.root',
0035         'file:/data1/heavyion/5AA1030A-8270-DF11-9DB8-00188B7AC862.root',
0036         'file:/data1/heavyion/5E068F91-9770-DF11-92D9-001E6878FA76.root',
0037         'file:/data1/heavyion/5E5DF809-8270-DF11-86F2-00188B7ACD60.root',
0038         'file:/data1/heavyion/72A5783E-8070-DF11-ACBC-00E08130DD28.root',
0039         'file:/data1/heavyion/865B5019-8170-DF11-ADF2-001E6878FB3A.root',
0040         'file:/data1/heavyion/8EA97318-8170-DF11-8C7E-00E0813006F4.root',
0041         'file:/data1/heavyion/9086C3E5-7F70-DF11-94B7-0026B95C2418.root',
0042         'file:/data1/heavyion/AEA8BE40-8070-DF11-B89F-0026B95BCAC3.root',
0043         'file:/data1/heavyion/B48E08CF-7F70-DF11-BDEE-00E081300BDA.root',
0044         'file:/data1/heavyion/B69BA9EF-8170-DF11-9D35-001E68659F36.root',
0045         'file:/data1/heavyion/C2F8E48F-9770-DF11-97F0-00E0813000C2.root',
0046         'file:/data1/heavyion/EACFBC1A-8170-DF11-996D-001E68865F71.root',
0047         'file:/data1/heavyion/FA3B59E5-7F70-DF11-BC81-001E68862AE3.root',
0048         'file:/data1/heavyion/FC6349FD-7F70-DF11-AE96-00188B7ACD5D.root',
0049     )
0050 )
0051 
0052 # this is for filtering on L1 technical trigger bit - not enabled for MC?
0053 process.load('L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskTechTrigConfig_cff')
0054 process.load('HLTrigger/HLTfilters/hltLevel1GTSeed_cfi')
0055 process.hltLevel1GTSeed.L1TechTriggerSeeding = cms.bool(True)
0056 process.hltLevel1GTSeed.L1SeedsLogicalExpression = cms.string('0 AND ( 40 OR 41 )')
0057 
0058 # Select pp-like events based on the pixel cluster multiplicity
0059 import  HLTrigger.special.hltPixelActivityFilter_cfi
0060 process.HLTPixelActivityFilterForOnlineBeamspot = HLTrigger.special.hltPixelActivityFilter_cfi.hltPixelActivityFilter.clone()
0061 process.HLTPixelActivityFilterForOnlineBeamspot.maxClusters = cms.uint32(200)
0062 process.HLTPixelActivityFilterForOnlineBeamspot.inputTag  = 'siPixelClusters'
0063 
0064 # remove beam scraping events
0065 process.noScraping= cms.EDFilter("FilterOutScraping",
0066     applyfilter = cms.untracked.bool(True),
0067     debugOn = cms.untracked.bool(False), ## Or 'True' to get some per-event info
0068     numtrack = cms.untracked.uint32(10),
0069     thresh = cms.untracked.double(0.20)
0070 )
0071 
0072 # Beamspot DQM options
0073 #process.dqmBeamMonitor.Debug = True
0074 #process.dqmBeamMonitor.BeamFitter.Debug = True
0075 process.dqmBeamMonitor.BeamFitter.WriteAscii = True
0076 process.dqmBeamMonitor.BeamFitter.AsciiFileName = 'BeamFitResults.txt'
0077 #process.dqmBeamMonitor.BeamFitter.WriteDIPAscii = True
0078 process.dqmBeamMonitor.BeamFitter.DIPFileName = 'BeamFitResults.txt'
0079 #process.dqmBeamMonitor.BeamFitter.SaveFitResults = True
0080 process.dqmBeamMonitor.BeamFitter.OutputFileName = 'BeamFitResults.root'
0081 #process.dqmBeamMonitor.resetEveryNLumi = 10
0082 #process.dqmBeamMonitor.resetPVEveryNLumi = 5
0083 #process.dqmBeamMonitorBx.Debug = True
0084 
0085 #process.dqmBeamMonitorBx.BeamFitter.Debug = True
0086 process.dqmBeamMonitorBx.BeamFitter.WriteAscii = True
0087 process.dqmBeamMonitorBx.BeamFitter.AsciiFileName = 'BeamFitResultsBx.txt'
0088 
0089 # EK - I don't know what htis does...?
0090 ### TKStatus
0091 process.dqmTKStatus = cms.EDAnalyzer(
0092     "TKStatus",
0093     BeamFitter = cms.PSet(
0094         DIPFileName = process.dqmBeamMonitor.BeamFitter.DIPFileName
0095     )
0096 )
0097 
0098 #--------------------------
0099 # Filters
0100 #--------------------------
0101 # HLT Filter
0102 process.load("HLTrigger.special.HLTTriggerTypeFilter_cfi")
0103 # 0=random, 1=physics, 2=calibration, 3=technical
0104 process.hltTriggerTypeFilter.SelectedTriggerType = 1
0105 
0106 # L1 Trigger Bit Selection (bit 40 and 41 for BSC trigger)
0107 process.load('L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskTechTrigConfig_cff')
0108 process.load('HLTrigger/HLTfilters/hltLevel1GTSeed_cfi')
0109 process.hltLevel1GTSeed.L1TechTriggerSeeding = cms.bool(True)
0110 process.hltLevel1GTSeed.L1SeedsLogicalExpression = cms.string('40 OR 41')
0111 
0112 process.phystrigger = cms.Sequence(
0113     process.hltTriggerTypeFilter*
0114     process.gtDigis*
0115     process.hltLevel1GTSeed)
0116 
0117 process.pretracking_step = cms.Sequence(
0118     process.siPixelDigis*
0119     process.siStripDigis*
0120     process.trackerlocalreco*
0121     process.offlineBeamSpot
0122 )
0123 
0124 process.RecoForDQM_FirstStep = cms.Sequence(
0125     process.pretracking_step*
0126     process.recopixelvertexing*
0127     process.firstStep)
0128 
0129 # Needed, as the event content is different!
0130 process.dqmBeamMonitor.BeamFitter.TrackCollection = cms.untracked.InputTag('hiGeneralTracks')
0131 
0132 process.pp = cms.Path(
0133     process.onlineMetaDataDigis*
0134     process.dqmTKStatus*
0135     process.HLTPixelActivityFilterForOnlineBeamspot *
0136     # Turn off trigger for MC
0137     #process.hltLevel1GTSeed*
0138     #process.phystrigger*
0139     #process.pretracking_step*
0140     #process.RecoForDQM_FirstStep*
0141     process.dqmBeamMonitor+
0142     #process.dqmBeamMonitorBx+
0143     process.dqmEnv+
0144     process.dqmSaver)
0145 
0146 # Setup DQM store parameters.
0147 process.DQMStore.verbose = 0
0148 #process.DQM.collectorHost = 'cmslpc17.fnal.gov'
0149 process.DQM.collectorHost = 'localhost'
0150 process.DQM.collectorPort = 9190
0151 process.dqmSaver.dirName = '.'
0152 process.dqmSaver.producer = 'Playback'
0153 process.dqmSaver.convention = 'Online'
0154 process.dqmEnv.subSystemFolder = 'BeamMonitor'
0155 process.dqmSaver.saveByRun = 1
0156 process.dqmSaver.saveAtJobEnd = True
0157 
0158 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0159 process.GlobalTag.globaltag = 'MC_36Y_V7A::All'
0160 
0161 process.options = cms.untracked.PSet(
0162     wantSummary = cms.untracked.bool(True)
0163     )
0164 
0165 process.schedule = cms.Schedule(process.pp)
0166