Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 import FWCore.ParameterSet.VarParsing as VarParsing
0003 
0004 process = cms.Process("OverlapProblemALCAZmumu")
0005 
0006 #prepare options
0007 
0008 options = VarParsing.VarParsing()
0009 
0010 options.register ('globalTag',
0011                   "DONOTEXIST",
0012                   VarParsing.VarParsing.multiplicity.singleton, # singleton or list
0013                   VarParsing.VarParsing.varType.string,          # string, int, or float
0014                   "GlobalTag")
0015 #options.globalTag = "DONOTEXIST::All"
0016 
0017 options.parseArguments()
0018 
0019 #
0020 process.load("DPGAnalysis.SiStripTools.processOptions_cff")
0021 process.load("DPGAnalysis.SiStripTools.MessageLogger_cff")
0022 
0023 #process.MessageLogger.cout.threshold = cms.untracked.string("DEBUG")
0024 #process.MessageLogger.debugModules = cms.untracked.vstring("overlapproblemanalyzer")
0025 
0026 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
0027 
0028 process.load("DPGAnalysis.SiStripTools.poolSource_cff")
0029 
0030 process.source.fileNames = cms.untracked.vstring(
0031 #    "rfio:/castor/cern.ch/user/v/venturia/SingleMuPt15_tec5_GEN_SIM_RECODEBUG_default.root")
0032 #    "rfio:/castor/cern.ch/user/v/venturia/SingleMuPt15_tec5_GEN_SIM_RECODEBUG_1500um.root")
0033     "rfio:/castor/cern.ch/cms/store/mc/Fall10/DYToMuMu_M-20_TuneZ2_7TeV-pythia6/ALCARECO/START38_V12_TkAlZMuMu-v1/0001/86BB9127-E5D9-DF11-A995-00215E2222E0.root")    
0034 
0035 process.load("Configuration.StandardSequences.MagneticField_cff")
0036 process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
0037 process.load("SimTracker.TrackAssociatorProducers.trackAssociatorByHits_cfi")
0038 
0039 process.load("DPGAnalysis.SiStripTools.tkAlTrackRefitSequence_cff")
0040 process.refittedTracks.src = cms.InputTag("ALCARECOTkAlZMuMu")
0041 
0042 
0043 process.offlineBeamSpot = cms.EDProducer("BeamSpotProducer")
0044 
0045 process.load("DPGAnalysis.SiStripTools.overlapproblemtsosanalyzer_cfi")
0046 process.overlapproblemtsoshitfiltered = process.overlapproblemtsosanalyzer.clone(trajTrackAssoCollection = cms.InputTag("HitFilteredTracks"))
0047 process.overlapproblemtsosats = process.overlapproblemtsosanalyzer.clone(trajTrackAssoCollection = cms.InputTag("refittedATSTracks"))
0048 
0049 process.overlapproblemtsosall = process.overlapproblemtsosanalyzer.clone(onlyValidRecHit = cms.bool(False))
0050 process.overlapproblemtsoshitfilteredall = process.overlapproblemtsoshitfiltered.clone(onlyValidRecHit = cms.bool(False))
0051 process.overlapproblemtsosatsall = process.overlapproblemtsosats.clone(onlyValidRecHit = cms.bool(False))
0052 
0053 
0054 process.p0 = cms.Path(process.offlineBeamSpot 
0055                       + process.seqTrackRefitting
0056                       + process.trackAssociatorByHits
0057                       + process.overlapproblemtsosanalyzer + process.overlapproblemtsoshitfiltered + process.overlapproblemtsosats
0058                       + process.overlapproblemtsosall + process.overlapproblemtsoshitfilteredall + process.overlapproblemtsosatsall 
0059                       )
0060 
0061 #----GlobalTag ------------------------
0062 
0063 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0064 from Configuration.AlCa.GlobalTag import GlobalTag
0065 process.GlobalTag = GlobalTag(process.GlobalTag, options.globalTag, '')
0066 
0067 
0068 process.TFileService = cms.Service('TFileService',
0069                                    fileName = cms.string('OverlapProblem_ALCAZmumu_multi.root')
0070                                    )
0071