Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:20:59

0001 from __future__ import print_function
0002 #
0003 # This cfg calls MakeAngleLUT which is obsolete and completely unused.
0004 #
0005 
0006 import FWCore.ParameterSet.Config as cms
0007 
0008 process = cms.Process("Whatever")
0009 
0010 #process.load('Configuration.Geometry.GeometryExtended2016Reco_cff')
0011 process.load("Configuration.StandardSequences.GeometryDB_cff")  # load from DB
0012 process.load('Configuration.StandardSequences.MagneticField_cff')
0013 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0014 
0015 from Configuration.AlCa.GlobalTag import GlobalTag
0016 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_mc', '')
0017 print("Using GlobalTag: %s" % process.GlobalTag.globaltag.value())
0018 
0019 # Fake alignment is/should be ideal geometry
0020 # ==========================================
0021 process.load("Alignment.CommonAlignmentProducer.FakeAlignmentSource_cfi")
0022 process.preferFakeAlign = cms.ESPrefer("FakeAlignmentSource")
0023 
0024 process.source = cms.Source("EmptySource")
0025 
0026 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(1))
0027 
0028 process.analyzer1 = cms.EDAnalyzer("MakeAngleLUT",
0029     # Verbosity level
0030     verbosity = cms.untracked.int32(1),
0031 
0032     # Output file
0033     outfile = cms.string("angle.root"),
0034 )
0035 
0036 process.path1 = cms.Path(process.analyzer1)