File indexing completed on 2024-04-06 12:00:01
0001 import FWCore.ParameterSet.Config as cms
0002 import FWCore.ParameterSet.VarParsing as VarParsing
0003
0004 process = cms.Process("TopologyAnalysis")
0005 options = VarParsing.VarParsing("analysis")
0006
0007 options.register ('globalTag',
0008 "auto:run2_data",
0009 VarParsing.VarParsing.multiplicity.singleton,
0010 VarParsing.VarParsing.varType.string,
0011 "GlobalTag")
0012
0013 options.register ('runNumber',
0014 1,
0015 VarParsing.VarParsing.multiplicity.singleton,
0016 VarParsing.VarParsing.varType.int,
0017 "run number")
0018
0019 options.parseArguments()
0020
0021
0022
0023
0024 process.load("FWCore.MessageService.MessageLogger_cfi")
0025 process.MessageLogger.cerr.FwkReport.reportEvery = 1
0026
0027
0028
0029
0030 process.load("Configuration.StandardSequences.Services_cff")
0031
0032 if 'phase2' in options.globalTag:
0033 process.load("Configuration.Geometry.GeometryExtended2026D98_cff")
0034 process.load("Configuration.Geometry.GeometryExtended2026D98Reco_cff")
0035 else:
0036 process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
0037
0038
0039
0040
0041 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0042 from Configuration.AlCa.GlobalTag import GlobalTag
0043 process.GlobalTag = GlobalTag(process.GlobalTag, options.globalTag, '')
0044
0045
0046
0047
0048 process.source = cms.Source("EmptySource",
0049 firstRun = cms.untracked.uint32(options.runNumber),
0050 numberEventsInRun = cms.untracked.uint32(1),
0051 )
0052
0053 process.maxEvents = cms.untracked.PSet(
0054 input = cms.untracked.int32(1)
0055 )
0056
0057
0058
0059
0060 process.myanalysis = cms.EDAnalyzer("StandaloneTrackerTopologyTest")
0061
0062
0063
0064
0065 process.p1 = cms.Path(process.myanalysis)
0066