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.source = cms.Source("PoolSource",
0010     fileNames = cms.untracked.vstring(
0011 
0012 
0013 # MC: New 336_patch3 samples where new tag goes(change the accordingly)
0014 '/store/relval/Summer09/MinBias/GEN-SIM-RECO/STARTUP3X_V8K_900GeV_preproduction_336patch3_withFixes-v1/0007/764C6A63-D905-DF11-9636-0030487CD6DA.root',
0015 '/store/relval/Summer09/MinBias/GEN-SIM-RECO/STARTUP3X_V8K_900GeV_preproduction_336patch3_withFixes-v1/0007/66A9FF26-CF05-DF11-A618-0030487CD6DA.root'
0016 
0017 
0018 #Data 2009
0019 #'/store/express/BeamCommissioning09/ExpressPhysics/FEVT/v2/000/123/906/F253BBE8-4FE5-DE11-866A-0030487A1990.root',
0020 #'/store/express/BeamCommissioning09/ExpressPhysics/FEVT/v2/000/123/906/F0FACD7D-4EE5-DE11-AE94-000423D99394.root',
0021 #'/store/express/BeamCommissioning09/ExpressPhysics/FEVT/v2/000/123/906/F05A2E81-4EE5-DE11-8BF1-000423D94A04.root',
0022 #'/store/express/BeamCommissioning09/ExpressPhysics/FEVT/v2/000/123/906/F054FB7D-4EE5-DE11-A81D-000423D99A8E.root',
0023 #'/store/express/BeamCommissioning09/ExpressPhysics/FEVT/v2/000/123/906/D8CDB1E7-4FE5-DE11-A911-001617C3B6CE.root',
0024 #'/store/express/BeamCommissioning09/ExpressPhysics/FEVT/v2/000/123/906/9088EACA-4DE5-DE11-86AA-000423D9989E.root',
0025 #'/store/express/BeamCommissioning09/ExpressPhysics/FEVT/v2/000/123/906/8A93D9F2-4FE5-DE11-A65C-0030487A18A4.root',
0026 #'/store/express/BeamCommissioning09/ExpressPhysics/FEVT/v2/000/123/906/84FD58F1-4FE5-DE11-A844-003048D2C108.root',
0027 #'/store/express/BeamCommissioning09/ExpressPhysics/FEVT/v2/000/123/906/822EF6CC-4DE5-DE11-9FAD-001D09F23944.root',
0028 #'/store/express/BeamCommissioning09/ExpressPhysics/FEVT/v2/000/123/906/5EDBBE33-4FE5-DE11-8B3A-0030487A1990.root',
0029 #'/store/express/BeamCommissioning09/ExpressPhysics/FEVT/v2/000/123/906/5ECD7759-51E5-DE11-AC54-001D09F2532F.root',
0030 #'/store/express/BeamCommissioning09/ExpressPhysics/FEVT/v2/000/123/906/5A3F66C9-4DE5-DE11-81EC-001617DC1F70.root',
0031 #'/store/express/BeamCommissioning09/ExpressPhysics/FEVT/v2/000/123/906/58DD96E7-4EE5-DE11-9B5C-000423D9863C.root',
0032 #'/store/express/BeamCommissioning09/ExpressPhysics/FEVT/v2/000/123/906/22C04FE6-4EE5-DE11-A174-000423D992A4.root',
0033 #'/store/express/BeamCommissioning09/ExpressPhysics/FEVT/v2/000/123/906/124788C9-4DE5-DE11-9F87-000423D98BE8.root',
0034 #'/store/express/BeamCommissioning09/ExpressPhysics/FEVT/v2/000/123/906/044A4BCB-4DE5-DE11-88CD-000423D951D4.root'
0035 
0036 
0037 # dbs --search --query "find file where dataset = */FEVT and run=123818 and lumi>2 and lumi< 48 " --url=http://cmsdbsprod.cern.ch/cms_dbs_caf_analysis_01/servlet/DBSServlet
0038 
0039     )
0040 )
0041 
0042 
0043 #process.source.lumisToProcess = cms.untracked.VLuminosityBlockRange('123909:16-123909:29')
0044 
0045 process.maxEvents = cms.untracked.PSet(
0046     input = cms.untracked.int32(-1) #1500
0047 )
0048 
0049 process.options = cms.untracked.PSet(
0050     wantSummary = cms.untracked.bool(True)
0051 )
0052 
0053 # this is for filtering on L1 technical trigger bit
0054 process.load('L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskTechTrigConfig_cff')
0055 process.load('HLTrigger/HLTfilters/hltLevel1GTSeed_cfi')
0056 process.hltLevel1GTSeed.L1TechTriggerSeeding = cms.bool(True)
0057 process.hltLevel1GTSeed.L1SeedsLogicalExpression = cms.string('0 AND ( 40 OR 41 )')
0058 
0059 #for 2009 data
0060 #process.p = cms.Path(process.hltLevel1GTSeed + process.d0_phi_analyzer)
0061 
0062 #for MC
0063 process.p = cms.Path(process.d0_phi_analyzer)
0064 
0065 process.MessageLogger.debugModules = ['BeamSpotAnalyzer']
0066 
0067 #######################
0068 
0069 # run over STA muons
0070 #process.d0_phi_analyzer.BeamFitter.TrackCollection = cms.untracked.InputTag('ALCARECOTkAlMinBias') #,'UpdatedAtVtx')
0071 #process.d0_phi_analyzer.BeamFitter.IsMuonCollection = True
0072 
0073 process.d0_phi_analyzer.BSAnalyzerParameters.RunBeamWidthFit = True
0074 
0075 process.d0_phi_analyzer.BeamFitter.MinimumTotalLayers = 11
0076 process.d0_phi_analyzer.BeamFitter.MinimumPixelLayers = 3
0077 process.d0_phi_analyzer.BeamFitter.MaximumNormChi2 = 2
0078 process.d0_phi_analyzer.BeamFitter.MinimumInputTracks = 100
0079 process.d0_phi_analyzer.BeamFitter.MinimumPt = 2.0  #  use 2GeV for 900, 2.36, ~5GeV for 7 TeV, ~10GeV for 10 TeV
0080 process.d0_phi_analyzer.BeamFitter.MaximumImpactParameter = 5.0
0081 #process.d0_phi_analyzer.BeamFitter.TrackAlgorithm =  cms.untracked.vstring()
0082 #process.d0_phi_analyzer.BeamFitter.TrackQuality = cms.untracked.vstring("highPurity")
0083 #process.d0_phi_analyzer.BeamFitter.InputBeamWidth = 0.0400
0084 process.d0_phi_analyzer.BeamFitter.Debug = False 
0085 #########################
0086 process.d0_phi_analyzer.BeamFitter.AsciiFileName = 'BeamFit_test.txt'
0087 process.d0_phi_analyzer.BeamFitter.OutputFileName = 'BeamFit_test.root' #AtVtx10000.root'
0088 process.d0_phi_analyzer.BeamFitter.SaveNtuple = False
0089 
0090 # fit as function of lumi sections
0091 #process.d0_phi_analyzer.BSAnalyzerParameters.fitEveryNLumi = 2
0092 #process.d0_phi_analyzer.BSAnalyzerParameters.resetEveryNLumi = 2