Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("Whatever")
0004 
0005 process.load("Configuration.StandardSequences.GeometryDB_cff")  # load from DB
0006 process.load('Configuration.StandardSequences.MagneticField_cff')
0007 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0008 
0009 from Configuration.AlCa.GlobalTag import GlobalTag
0010 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_mc', '')
0011 print "Using GlobalTag: %s" % process.GlobalTag.globaltag.value()
0012 
0013 # Fake alignment is/should be ideal geometry
0014 # ==========================================
0015 process.load("Alignment.CommonAlignmentProducer.FakeAlignmentSource_cfi")
0016 process.preferFakeAlign = cms.ESPrefer("FakeAlignmentSource")
0017 
0018 process.source = cms.Source("EmptySource")
0019 
0020 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(1))
0021 
0022 process.analyzer1 = cms.EDAnalyzer("MakeCoordLUT",
0023     # Verbosity level
0024     verbosity = cms.untracked.int32(1),
0025 
0026     # Output diectory
0027     outdir = cms.string("./pc_luts/firmware_MC/"),
0028 
0029     # Produce "validate.root" to validate the LUTs
0030     please_validate = cms.bool(True),
0031 )
0032 
0033 process.path1 = cms.Path(process.analyzer1)