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("analysis")
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.source = cms.Source("PoolSource",
0029                             fileNames = cms.untracked.vstring(options.inputFiles),
0030                             #                    skipBadFiles = cms.untracked.bool(True),
0031                             inputCommands = cms.untracked.vstring("keep *", "drop *_MEtoEDMConverter_*_*")
0032                             )
0033 
0034 process.load("Configuration.StandardSequences.MagneticField_cff")
0035 process.load("Configuration.StandardSequences.GeometryDB_cff")
0036 process.load("SimTracker.TrackAssociatorProducers.trackAssociatorByHits_cfi")
0037 
0038 
0039 process.load("DPGAnalysis.SiStripTools.tkAlTrackRefitSequence_cff")
0040 process.refittedTracks.src = cms.InputTag("generalTracks")
0041 
0042 process.load("DPGAnalysis.SiStripTools.overlapproblemtsosanalyzer_cfi")
0043 process.overlapproblemtsoshitfiltered = process.overlapproblemtsosanalyzer.clone(trajTrackAssoCollection = cms.InputTag("HitFilteredTracks"))
0044 process.overlapproblemtsosats = process.overlapproblemtsosanalyzer.clone(trajTrackAssoCollection = cms.InputTag("refittedATSTracks"))
0045 
0046 process.overlapproblemtsosall = process.overlapproblemtsosanalyzer.clone(onlyValidRecHit = cms.bool(False))
0047 process.overlapproblemtsoshitfilteredall = process.overlapproblemtsoshitfiltered.clone(onlyValidRecHit = cms.bool(False))
0048 process.overlapproblemtsosatsall = process.overlapproblemtsosats.clone(onlyValidRecHit = cms.bool(False))
0049 
0050 process.load("DPGAnalysis.SiStripTools.overlapproblemtpanalyzer_cfi")
0051 
0052 
0053 process.p0 = cms.Path( process.seqTrackRefitting
0054                       + process.trackAssociatorByHits
0055                       + process.overlapproblemtsosanalyzer + process.overlapproblemtsoshitfiltered + process.overlapproblemtsosats
0056                       + process.overlapproblemtsosall + process.overlapproblemtsoshitfilteredall + process.overlapproblemtsosatsall 
0057                       + process.overlapproblemtpanalyzer
0058                       )
0059 
0060 #----GlobalTag ------------------------
0061 
0062 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0063 from Configuration.AlCa.GlobalTag import GlobalTag
0064 process.GlobalTag = GlobalTag(process.GlobalTag, options.globalTag, '')
0065 
0066 
0067 process.TFileService = cms.Service('TFileService',
0068                                    fileName = cms.string('OverlapProblem.root')
0069                                    )
0070