Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:02:25

0001 #!/usr/bin/env python
0002 
0003 from __future__ import print_function
0004 import os
0005 import sys
0006 
0007 SETUPS = ('71212',  '',           ('0T','2T','3T','3_5T','4T')), \
0008          ('90322',  '2pi_scaled', (['3_8T'])), \
0009          ('120812', 'Run1',       (['3_8T'])), \
0010          ('120812', 'Run2',       (['3_8T'])), \
0011          ('130503', 'Run1',       ('3_5T','3_8T')), \
0012          ('130503', 'Run2',       ('3_5T','3_8T')),
0013 
0014 
0015 for SETUP in SETUPS :
0016     SET = SETUP[0]
0017     SUBSET = SETUP[1]
0018     for B_NOM in SETUP[2] : 
0019        print(SET, SUBSET, B_NOM)
0020        sys.stdout.flush()
0021        namespace = {'SET':SET, 'SUBSET':SUBSET, 'B_NOM':B_NOM}
0022        execfile("writeMagFieldConfigDB.py",namespace)
0023        process = namespace.get('process') 
0024        cfgFile = open('run.py','w')       
0025        cfgFile.write( process.dumpPython() )
0026        cfgFile.write( '\n' )
0027        cfgFile.close()
0028        os.system("cmsRun run.py")
0029        del namespace
0030        del process
0031        print("")
0032