Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:28:07

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("d0phi")
0004 # initialize MessageLogger
0005 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0006 
0007 process.load("RecoVertex.BeamSpotProducer.d0_phi_analyzer_cff")
0008 
0009 process.load("INPUT_FILE")
0010 
0011 process.source.lumisToProcess = cms.untracked.VLuminosityBlockRange('LUMIRANGE')
0012 process.maxEvents = cms.untracked.PSet(
0013     input = cms.untracked.int32(-1) #1500
0014 )
0015 process.p = cms.Path(process.d0_phi_analyzer)
0016 process.MessageLogger.debugModules = ['BeamSpotAnalyzer']
0017 
0018 #--------------------------
0019 # Filters
0020 #--------------------------
0021 # HLT Filter
0022 process.load("HLTrigger.special.HLTTriggerTypeFilter_cfi")
0023 # 0=random, 1=physics, 2=calibration, 3=technical
0024 process.hltTriggerTypeFilter.SelectedTriggerType = 1
0025 
0026 # L1 Trigger Bit Selection (bit 40 and 41 for BSC trigger)
0027 process.load('L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskTechTrigConfig_cff')
0028 process.load('HLTrigger/HLTfilters/hltLevel1GTSeed_cfi')
0029 process.hltLevel1GTSeed.L1TechTriggerSeeding = cms.bool(True)
0030 process.hltLevel1GTSeed.L1SeedsLogicalExpression = cms.string('0 AND (40 OR 41)')
0031 #######################
0032 
0033 # run over STA muons
0034 #process.d0_phi_analyzer.BeamFitter.TrackCollection = cms.untracked.InputTag('ALCARECOTkAlMinBias') #,'UpdatedAtVtx')
0035 #process.d0_phi_analyzer.BeamFitter.IsMuonCollection = True
0036 
0037 process.d0_phi_analyzer.BeamFitter.MinimumTotalLayers = 6
0038 process.d0_phi_analyzer.BeamFitter.MinimumPixelLayers = -1
0039 process.d0_phi_analyzer.BeamFitter.MaximumNormChi2 = 10
0040 process.d0_phi_analyzer.BeamFitter.MinimumInputTracks = 2
0041 process.d0_phi_analyzer.BeamFitter.MinimumPt = 1.0
0042 process.d0_phi_analyzer.BeamFitter.MaximumImpactParameter = 1.0
0043 process.d0_phi_analyzer.BeamFitter.TrackAlgorithm =  cms.untracked.vstring()
0044 process.d0_phi_analyzer.BeamFitter.InputBeamWidth = 0.0400
0045 process.d0_phi_analyzer.BeamFitter.Debug = True
0046 #########################
0047 process.d0_phi_analyzer.BeamFitter.AsciiFileName = 'ASCIIFILE'
0048 process.d0_phi_analyzer.BeamFitter.OutputFileName = 'OUTPUTFILE'
0049 process.d0_phi_analyzer.BeamFitter.SaveNtuple = True
0050 process.d0_phi_analyzer.BeamFitter.SaveFitResults = True
0051 
0052 process.p = cms.Path(process.hltLevel1GTSeed*process.d0_phi_analyzer)
0053 #process.p = cms.Path(process.d0_phi_analyzer)
0054 
0055 # fit as function of lumi sections
0056 #process.d0_phi_analyzer.BSAnalyzerParameters.fitEveryNLumi = 2
0057 #process.d0_phi_analyzer.BSAnalyzerParameters.resetEveryNLumi = 10