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.source = cms.Source("EmptySource")
0006 
0007 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(1))
0008 
0009 iVer = 7
0010 iNum = 57
0011 iDen = 64
0012 
0013 process.analyzer1 = cms.EDAnalyzer("MakePtLUT",
0014     # Verbosity level
0015     verbosity = cms.untracked.int32(0),
0016 
0017     # Versioning
0018     PtLUTVersion = cms.int32(iVer),
0019     numerator    = cms.int32(iNum),
0020     denominator  = cms.int32(iDen),
0021 
0022     # Sector processor pt-assignment parameters
0023     spPAParams16 = cms.PSet(
0024         BDTXMLDir       = cms.string('2017_v7'),
0025         ReadPtLUTFile   = cms.bool(False),
0026         FixMode15HighPt = cms.bool(True),
0027         Bug9BitDPhi     = cms.bool(False),
0028         BugMode7CLCT    = cms.bool(False),
0029         BugNegPt        = cms.bool(False),
0030     ),
0031 
0032     # Output file
0033     outfile = cms.string(""),
0034 
0035     # Check addresses
0036     onlyCheck = cms.bool(False),
0037     addressesToCheck = cms.vuint64(),
0038 )
0039 
0040 import os
0041 # out_dir = os.environ.get("CMSSW_BASE") + "/"
0042 out_dir = '/afs/cern.ch/work/a/abrinke1/public/EMTF/PtAssign2017/LUTs/'
0043 
0044 # out_file = out_dir+'2017_05_24/LUT_v6_24May17_part_32_32.dat"
0045 out_file = out_dir+'2017_06_07/LUT_v%02d_07June17_part_%02d_%02d.dat' % ( iVer, iNum, iDen )
0046 
0047 process.analyzer1.outfile = out_file  # make sure the directory exists
0048 
0049 process.path1 = cms.Path(process.analyzer1)