Functions | |
def | writeAlignCfg |
def | writeGatherCfg |
def | writeValidationCfg |
Variables | |
string | action = "store_true" |
tuple | allowTIDTEC = str(not options.notAllowTIDTEC) |
list | bsubfile = ["#!/bin/sh", ""] |
list | bsubnames = [] |
tuple | combineME11 = str(not options.notCombineME11) |
string | commandline = " " |
list | copyargs = sys.argv[:] |
string | copytrackerdb = "" |
createAlignNtuple = notnotoptions.createAlignNtuple | |
createMapNtuple = notnotoptions.createMapNtuple | |
cscparams = options.cscparams | |
curvatureplots = False | |
curvatureplots_ingeneral = options.curvatureplots | |
int | default = 50 |
string | dest = "subjobs" |
dir_no_ = DIRNAME | |
list | director = directory[:-1] |
list | director1 = directory1[:-1] |
string | directory = "" |
string | directory1 = "%s01/" |
after the last iteration (optionally) do diagnostics run | |
list | DIRNAME = sys.argv[1] |
doCleanUp = notoptions.noCleanUp | |
doCSC = True | |
doDT = True | |
tuple | exit_code = os.system("./Alignment/MuonAlignmentAlgorithms/scripts/convertSQLiteXML.py %s %s --gprcdconnect %s --gprcd %s" % (INITIALGEOM,INITIALXML,gprcdconnect,gprcd)) |
extraPlots = options.extraPlots | |
list | fileNames = [] |
list | fileNamesBlocks = [] |
string | gather_fileName = "%sgather%03d.sh" |
globaltag = options.globaltag | |
gprcd = options.gprcd | |
gprcdconnect = options.gprcdconnect | |
string | help = "approximate number of \"gather\" subjobs" |
list | INITIALGEOM = sys.argv[3] |
string | INITIALXML = '.xml' |
step 0: convert initial geometry to xml | |
inputdb = INITIALGEOM | |
list | inputdbdir = directory[:] |
string | inputfiles = " " |
gather.sh runners for njobs | |
list | INPUTFILES = sys.argv[4] |
tuple | iscosmics = str(options.iscosmics) |
tuple | ITERATIONS = int(sys.argv[2]) |
json_file = options.json | |
last_align = None | |
mapplots = False | |
mapplots_ingeneral = options.mapplots | |
maxDxy = options.maxDxy | |
maxEvents = options.maxEvents | |
maxResSlopeY = options.maxResSlopeY | |
maxTrackerRedChi2 = options.maxTrackerRedChi2 | |
maxTrackP = options.maxTrackP | |
maxTrackPt = options.maxTrackPt | |
tuple | minAlignmentHits = str(options.minAlignmentHits) |
minNCrossedChambers = options.minNCrossedChambers | |
tuple | minTrackerHits = str(options.minTrackerHits) |
minTrackP = options.minTrackP | |
minTrackPt = options.minTrackPt | |
muonCollectionTag = options.muonCollectionTag | |
njobs = options.subjobs | |
tuple | parser = optparse.OptionParser(usage) |
peakNSigma = options.peakNSigma | |
preFilter = notnotoptions.preFilter | |
list | prog = sys.argv[0] |
tuple | pwd = str(os.getcwdu()) |
residualsModel = options.residualsModel | |
segdiffplots = False | |
segdiffplots_ingeneral = options.segdiffplots | |
skipEvents = options.skipEvents | |
station123params = options.station123params | |
station4params = options.station4params | |
tuple | stepsize = int(math.ceil(1.*len(fileNames)/options.subjobs)) |
SUPER_SPECIAL_XY_AND_DXDZ_ITERATIONS = False | |
theNSigma = options.motionPolicyNSigma | |
tmp = station123params,station123params,useResiduals | |
align.sh | |
trackeralignment = options.trackeralignment | |
trackerAPE = options.trackerAPE | |
trackerAPEconnect = options.trackerAPEconnect | |
trackerBows = options.trackerBows | |
trackerBowsconnect = options.trackerBowsconnect | |
trackerconnect = options.trackerconnect | |
tuple | twoBin = str(options.twoBin) |
string | type = "int" |
string | usage |
user_mail = options.user_mail | |
useResiduals = options.useResiduals | |
validationLabel = options.validationLabel | |
tuple | weightAlignment = str(options.weightAlignment) |
def createJobs::writeAlignCfg | ( | fname, | |
my_vars | |||
) |
Definition at line 439 of file createJobs.py.
00440 : 00441 file("%salign.sh" % directory, "w").write("""#!/bin/sh 00442 # %(commandline)s 00443 00444 export ALIGNMENT_CAFDIR=`pwd` 00445 00446 cd %(pwd)s 00447 eval `scramv1 run -sh` 00448 export ALIGNMENT_AFSDIR=`pwd` 00449 export ALIGNMENT_INPUTDB=%(inputdb)s 00450 export ALIGNMENT_ITERATION=%(iteration)d 00451 export ALIGNMENT_GLOBALTAG=%(globaltag)s 00452 export ALIGNMENT_TRACKERCONNECT=%(trackerconnect)s 00453 export ALIGNMENT_TRACKERALIGNMENT=%(trackeralignment)s 00454 export ALIGNMENT_TRACKERAPECONNECT=%(trackerAPEconnect)s 00455 export ALIGNMENT_TRACKERAPE=%(trackerAPE)s 00456 export ALIGNMENT_TRACKERBOWSCONNECT=%(trackerBowsconnect)s 00457 export ALIGNMENT_TRACKERBOWS=%(trackerBows)s 00458 export ALIGNMENT_GPRCDCONNECT=%(gprcdconnect)s 00459 export ALIGNMENT_GPRCD=%(gprcd)s 00460 export ALIGNMENT_ISCOSMICS=%(iscosmics)s 00461 export ALIGNMENT_STATION123PARAMS=%(station123params)s 00462 export ALIGNMENT_STATION4PARAMS=%(station4params)s 00463 export ALIGNMENT_CSCPARAMS=%(cscparams)s 00464 export ALIGNMENT_MINTRACKPT=%(minTrackPt)s 00465 export ALIGNMENT_MAXTRACKPT=%(maxTrackPt)s 00466 export ALIGNMENT_MINTRACKP=%(minTrackP)s 00467 export ALIGNMENT_MAXTRACKP=%(maxTrackP)s 00468 export ALIGNMENT_MINTRACKERHITS=%(minTrackerHits)s 00469 export ALIGNMENT_MAXTRACKERREDCHI2=%(maxTrackerRedChi2)s 00470 export ALIGNMENT_ALLOWTIDTEC=%(allowTIDTEC)s 00471 export ALIGNMENT_TWOBIN=%(twoBin)s 00472 export ALIGNMENT_WEIGHTALIGNMENT=%(weightAlignment)s 00473 export ALIGNMENT_MINALIGNMENTHITS=%(minAlignmentHits)s 00474 export ALIGNMENT_COMBINEME11=%(combineME11)s 00475 export ALIGNMENT_MAXRESSLOPEY=%(maxResSlopeY)s 00476 export ALIGNMENT_CLEANUP=%(doCleanUp)s 00477 export ALIGNMENT_CREATEALIGNNTUPLE=%(createAlignNtuple)s 00478 export ALIGNMENT_RESIDUALSMODEL=%(residualsModel)s 00479 export ALIGNMENT_PEAKNSIGMA=%(peakNSigma)s 00480 export ALIGNMENT_USERESIDUALS=%(useResiduals)s 00481 00482 cp -f %(directory)salign_cfg.py %(inputdbdir)s%(inputdb)s %(directory)s*.tmp %(copytrackerdb)s $ALIGNMENT_CAFDIR/ 00483 00484 export ALIGNMENT_PLOTTINGTMP=`ls %(directory)splotting0*.root 2> /dev/null` 00485 00486 # if it's 1st or last iteration, combine _plotting.root files into one: 00487 if [ \"$ALIGNMENT_ITERATION\" != \"111\" ] || [ \"$ALIGNMENT_ITERATION\" == \"%(ITERATIONS)s\" ]; then 00488 #nfiles=$(ls %(directory)splotting0*.root 2> /dev/null | wc -l) 00489 if [ \"zzz$ALIGNMENT_PLOTTINGTMP\" != \"zzz\" ]; then 00490 hadd -f1 %(directory)s%(director)s_plotting.root %(directory)splotting0*.root 00491 #if [ $? == 0 ] && [ \"$ALIGNMENT_CLEANUP\" == \"True\" ]; then rm %(directory)splotting0*.root; fi 00492 fi 00493 fi 00494 00495 if [ \"$ALIGNMENT_CLEANUP\" == \"True\" ] && [ \"zzz$ALIGNMENT_PLOTTINGTMP\" != \"zzz\" ]; then 00496 rm $ALIGNMENT_PLOTTINGTMP 00497 fi 00498 00499 cd $ALIGNMENT_CAFDIR/ 00500 export ALIGNMENT_ALIGNMENTTMP=`ls alignment*.tmp 2> /dev/null` 00501 ls -l 00502 00503 cmsRun align_cfg.py 00504 cp -f MuonAlignmentFromReference_report.py $ALIGNMENT_AFSDIR/%(directory)s%(director)s_report.py 00505 cp -f MuonAlignmentFromReference_outputdb.db $ALIGNMENT_AFSDIR/%(directory)s%(director)s.db 00506 cp -f MuonAlignmentFromReference_plotting.root $ALIGNMENT_AFSDIR/%(directory)s%(director)s.root 00507 00508 cd $ALIGNMENT_AFSDIR 00509 ./Alignment/MuonAlignmentAlgorithms/scripts/convertSQLiteXML.py %(directory)s%(director)s.db %(directory)s%(director)s.xml --noLayers --gprcdconnect $ALIGNMENT_GPRCDCONNECT --gprcd $ALIGNMENT_GPRCD 00510 00511 export ALIGNMENT_ALIGNMENTTMP=`ls %(directory)salignment*.tmp 2> /dev/null` 00512 if [ \"$ALIGNMENT_CLEANUP\" == \"True\" ] && [ \"zzz$ALIGNMENT_ALIGNMENTTMP\" != \"zzz\" ]; then 00513 rm $ALIGNMENT_ALIGNMENTTMP 00514 echo " " 00515 fi 00516 00517 # if it's not 1st or last iteration, do some clean up: 00518 if [ \"$ALIGNMENT_ITERATION\" != \"1\" ] && [ \"$ALIGNMENT_ITERATION\" != \"%(ITERATIONS)s\" ]; then 00519 if [ \"$ALIGNMENT_CLEANUP\" == \"True\" ] && [ -e %(directory)s%(director)s.root ]; then 00520 rm %(directory)s%(director)s.root 00521 fi 00522 fi 00523 00524 # if it's last iteration, apply chamber motion policy 00525 if [ \"$ALIGNMENT_ITERATION\" == \"%(ITERATIONS)s\" ]; then 00526 # convert this iteration's geometry into detailed xml 00527 ./Alignment/MuonAlignmentAlgorithms/scripts/convertSQLiteXML.py %(directory)s%(director)s.db %(directory)s%(director)s_extra.xml --gprcdconnect $ALIGNMENT_GPRCDCONNECT --gprcd $ALIGNMENT_GPRCD 00528 # perform motion policy 00529 ./Alignment/MuonAlignmentAlgorithms/scripts/motionPolicyChamber.py \ 00530 %(INITIALXML)s %(directory)s%(director)s_extra.xml \ 00531 %(directory)s%(director)s_report.py \ 00532 %(directory)s%(director)s_final.xml \ 00533 --nsigma %(theNSigma)s 00534 # convert the resulting xml into the final sqlite geometry 00535 ./Alignment/MuonAlignmentAlgorithms/scripts/convertSQLiteXML.py %(directory)s%(director)s_final.xml %(directory)s%(director)s_final.db --gprcdconnect $ALIGNMENT_GPRCDCONNECT --gprcd $ALIGNMENT_GPRCD 00536 fi 00537 00538 """ % my_vars)
def createJobs::writeGatherCfg | ( | fname, | |
my_vars | |||
) |
Definition at line 370 of file createJobs.py.
00371 : 00372 file(fname, "w").write("""#/bin/sh 00373 # %(commandline)s 00374 00375 export ALIGNMENT_CAFDIR=`pwd` 00376 00377 cd %(pwd)s 00378 eval `scramv1 run -sh` 00379 export ALIGNMENT_AFSDIR=`pwd` 00380 00381 export ALIGNMENT_INPUTFILES='%(inputfiles)s' 00382 export ALIGNMENT_ITERATION=%(iteration)d 00383 export ALIGNMENT_JOBNUMBER=%(jobnumber)d 00384 export ALIGNMENT_MAPPLOTS=%(mapplots)s 00385 export ALIGNMENT_SEGDIFFPLOTS=%(segdiffplots)s 00386 export ALIGNMENT_CURVATUREPLOTS=%(curvatureplots)s 00387 export ALIGNMENT_GLOBALTAG=%(globaltag)s 00388 export ALIGNMENT_INPUTDB=%(inputdb)s 00389 export ALIGNMENT_TRACKERCONNECT=%(trackerconnect)s 00390 export ALIGNMENT_TRACKERALIGNMENT=%(trackeralignment)s 00391 export ALIGNMENT_TRACKERAPECONNECT=%(trackerAPEconnect)s 00392 export ALIGNMENT_TRACKERAPE=%(trackerAPE)s 00393 export ALIGNMENT_TRACKERBOWSCONNECT=%(trackerBowsconnect)s 00394 export ALIGNMENT_TRACKERBOWS=%(trackerBows)s 00395 export ALIGNMENT_GPRCDCONNECT=%(gprcdconnect)s 00396 export ALIGNMENT_GPRCD=%(gprcd)s 00397 export ALIGNMENT_ISCOSMICS=%(iscosmics)s 00398 export ALIGNMENT_STATION123PARAMS=%(station123params)s 00399 export ALIGNMENT_STATION4PARAMS=%(station4params)s 00400 export ALIGNMENT_CSCPARAMS=%(cscparams)s 00401 export ALIGNMENT_MUONCOLLECTIONTAG=%(muonCollectionTag)s 00402 export ALIGNMENT_MINTRACKPT=%(minTrackPt)s 00403 export ALIGNMENT_MAXTRACKPT=%(maxTrackPt)s 00404 export ALIGNMENT_MINTRACKP=%(minTrackP)s 00405 export ALIGNMENT_MAXTRACKP=%(maxTrackP)s 00406 export ALIGNMENT_MAXDXY=%(maxDxy)s 00407 export ALIGNMENT_MINTRACKERHITS=%(minTrackerHits)s 00408 export ALIGNMENT_MAXTRACKERREDCHI2=%(maxTrackerRedChi2)s 00409 export ALIGNMENT_MINNCROSSEDCHAMBERS=%(minNCrossedChambers)s 00410 export ALIGNMENT_ALLOWTIDTEC=%(allowTIDTEC)s 00411 export ALIGNMENT_TWOBIN=%(twoBin)s 00412 export ALIGNMENT_WEIGHTALIGNMENT=%(weightAlignment)s 00413 export ALIGNMENT_MINALIGNMENTHITS=%(minAlignmentHits)s 00414 export ALIGNMENT_COMBINEME11=%(combineME11)s 00415 export ALIGNMENT_MAXEVENTS=%(maxEvents)s 00416 export ALIGNMENT_SKIPEVENTS=%(skipEvents)s 00417 export ALIGNMENT_MAXRESSLOPEY=%(maxResSlopeY)s 00418 export ALIGNMENT_DO_DT=%(doDT)s 00419 export ALIGNMENT_DO_CSC=%(doCSC)s 00420 export ALIGNMENT_JSON=%(json_file)s 00421 export ALIGNMENT_CREATEMAPNTUPLE=%(createMapNtuple)s 00422 #export ALIGNMENT_CREATEALIGNNTUPLE=%(createAlignNtuple)s 00423 export ALIGNMENT_PREFILTER=%(preFilter)s 00424 00425 00426 if [ \"zzz$ALIGNMENT_JSON\" != \"zzz\" ]; then 00427 cp -f $ALIGNMENT_JSON $ALIGNMENT_CAFDIR/ 00428 fi 00429 00430 cp -f %(directory)sgather_cfg.py %(inputdbdir)s%(inputdb)s %(copytrackerdb)s $ALIGNMENT_CAFDIR/ 00431 cd $ALIGNMENT_CAFDIR/ 00432 ls -l 00433 cmsRun gather_cfg.py 00434 ls -l 00435 cp -f *.tmp %(copyplots)s $ALIGNMENT_AFSDIR/%(directory)s 00436 """ % my_vars)
def createJobs::writeValidationCfg | ( | fname, | |
my_vars | |||
) |
Definition at line 541 of file createJobs.py.
00542 : 00543 file(fname, "w").write("""#!/bin/sh 00544 # %(commandline)s 00545 00546 export ALIGNMENT_CAFDIR=`pwd` 00547 mkdir files 00548 mkdir out 00549 00550 cd %(pwd)s 00551 eval `scramv1 run -sh` 00552 ALIGNMENT_AFSDIR=`pwd` 00553 ALIGNMENT_ITERATION=%(iteration)d 00554 ALIGNMENT_MAPPLOTS=None 00555 ALIGNMENT_SEGDIFFPLOTS=None 00556 ALIGNMENT_CURVATUREPLOTS=None 00557 ALIGNMENT_EXTRAPLOTS=%(extraPlots)s 00558 export ALIGNMENT_GPRCDCONNECT=%(gprcdconnect)s 00559 export ALIGNMENT_GPRCD=%(gprcd)s 00560 export ALIGNMENT_DO_DT=%(doDT)s 00561 export ALIGNMENT_DO_CSC=%(doCSC)s 00562 00563 00564 # copy the scripts to CAFDIR 00565 cd Alignment/MuonAlignmentAlgorithms/scripts/ 00566 cp -f plotscripts.py $ALIGNMENT_CAFDIR/ 00567 cp -f mutypes.py $ALIGNMENT_CAFDIR/ 00568 cp -f alignmentValidation.py $ALIGNMENT_CAFDIR/ 00569 cp -f phiedges_fitfunctions.C $ALIGNMENT_CAFDIR/ 00570 cp -f createTree.py $ALIGNMENT_CAFDIR/ 00571 cp -f signConventions.py $ALIGNMENT_CAFDIR/ 00572 cp -f convertSQLiteXML.py $ALIGNMENT_CAFDIR/ 00573 cp -f wrapperExtraPlots.sh $ALIGNMENT_CAFDIR/ 00574 cd - 00575 cp Alignment/MuonAlignmentAlgorithms/test/browser/tree* $ALIGNMENT_CAFDIR/out/ 00576 00577 # copy the results to CAFDIR 00578 cp -f %(directory1)s%(director1)s_report.py $ALIGNMENT_CAFDIR/files/ 00579 cp -f %(directory)s%(director)s_report.py $ALIGNMENT_CAFDIR/files/ 00580 cp -f %(directory1)s%(director1)s.root $ALIGNMENT_CAFDIR/files/ 00581 cp -f %(directory)s%(director)s.root $ALIGNMENT_CAFDIR/files/ 00582 if [ -e %(directory1)s%(director1)s_plotting.root ] && [ -e %(directory)s%(director)s_plotting.root ]; then 00583 cp -f %(directory1)s%(director1)s_plotting.root $ALIGNMENT_CAFDIR/files/ 00584 cp -f %(directory)s%(director)s_plotting.root $ALIGNMENT_CAFDIR/files/ 00585 ALIGNMENT_MAPPLOTS=%(mapplots)s 00586 ALIGNMENT_SEGDIFFPLOTS=%(segdiffplots)s 00587 ALIGNMENT_CURVATUREPLOTS=%(curvatureplots)s 00588 fi 00589 00590 dtcsc="" 00591 if [ $ALIGNMENT_DO_DT == \"True\" ]; then 00592 dtcsc="--dt" 00593 fi 00594 if [ $ALIGNMENT_DO_CSC == \"True\" ]; then 00595 dtcsc="${dtcsc} --csc" 00596 fi 00597 00598 00599 cd $ALIGNMENT_CAFDIR/ 00600 echo \" ### Start running ###\" 00601 date 00602 00603 # do fits and median plots first 00604 ./alignmentValidation.py -l %(validationLabel)s -i $ALIGNMENT_CAFDIR --i1 files --iN files --i1prefix %(director1)s --iNprefix %(director)s -o $ALIGNMENT_CAFDIR/out --createDirSructure --dt --csc --fit --median 00605 00606 if [ $ALIGNMENT_MAPPLOTS == \"True\" ]; then 00607 ./alignmentValidation.py -l %(validationLabel)s -i $ALIGNMENT_CAFDIR --i1 files --iN files --i1prefix %(director1)s --iNprefix %(director)s -o $ALIGNMENT_CAFDIR/out $dtcsc --map 00608 fi 00609 00610 if [ $ALIGNMENT_SEGDIFFPLOTS == \"True\" ]; then 00611 ./alignmentValidation.py -l %(validationLabel)s -i $ALIGNMENT_CAFDIR --i1 files --iN files --i1prefix %(director1)s --iNprefix %(director)s -o $ALIGNMENT_CAFDIR/out $dtcsc --segdiff 00612 fi 00613 00614 if [ $ALIGNMENT_CURVATUREPLOTS == \"True\" ]; then 00615 ./alignmentValidation.py -l %(validationLabel)s -i $ALIGNMENT_CAFDIR --i1 files --iN files --i1prefix %(director1)s --iNprefix %(director)s -o $ALIGNMENT_CAFDIR/out $dtcsc --curvature 00616 fi 00617 00618 if [ $ALIGNMENT_EXTRAPLOTS == \"True\" ]; then 00619 if [ \"zzz%(copytrackerdb)s\" != \"zzz\" ]; then 00620 cp -f $ALIGNMENT_AFSDIR/%(copytrackerdb)s $ALIGNMENT_CAFDIR/ 00621 fi 00622 cp $ALIGNMENT_AFSDIR/inertGlobalPositionRcd.db . 00623 ./convertSQLiteXML.py $ALIGNMENT_AFSDIR/%(INITIALGEOM)s g0.xml --noLayers --gprcdconnect $ALIGNMENT_GPRCDCONNECT --gprcd $ALIGNMENT_GPRCD 00624 ./wrapperExtraPlots.sh -n $ALIGNMENT_ITERATION -i $ALIGNMENT_AFSDIR -0 g0.xml -z -w %(station123params)s %(dir_no_)s 00625 mkdir out/extra 00626 cd %(dir_no_)s 00627 mv MB ../out/extra/ 00628 mv ME ../out/extra/ 00629 cd - 00630 fi 00631 00632 # run simple diagnostic 00633 ./alignmentValidation.py -l %(validationLabel)s -i $ALIGNMENT_CAFDIR --i1 files --iN files --i1prefix %(director1)s --iNprefix %(director)s -o $ALIGNMENT_CAFDIR/out --dt --csc --diagnostic 00634 00635 # fill the tree browser structure: 00636 ./createTree.py -i $ALIGNMENT_CAFDIR/out 00637 00638 timestamp=`date \"+%%y-%%m-%%d %%H:%%M:%%S\"` 00639 echo \"%(validationLabel)s.plots (${timestamp})\" > out/label.txt 00640 00641 ls -l out/ 00642 timestamp=`date +%%Y%%m%%d%%H%%M%%S` 00643 tar czf %(validationLabel)s_${timestamp}.tgz out 00644 cp -f %(validationLabel)s_${timestamp}.tgz $ALIGNMENT_AFSDIR/ 00645 00646 """ % my_vars) 00647
string createJobs::action = "store_true" |
Definition at line 40 of file createJobs.py.
tuple createJobs::allowTIDTEC = str(not options.notAllowTIDTEC) |
Definition at line 302 of file createJobs.py.
list createJobs::bsubfile = ["#!/bin/sh", ""] |
Definition at line 653 of file createJobs.py.
list createJobs::bsubnames = [] |
Definition at line 654 of file createJobs.py.
tuple createJobs::combineME11 = str(not options.notCombineME11) |
Definition at line 306 of file createJobs.py.
string createJobs::commandline = " " |
Definition at line 11 of file createJobs.py.
list createJobs::copyargs = sys.argv[:] |
Definition at line 5 of file createJobs.py.
string createJobs::copytrackerdb = "" |
Definition at line 349 of file createJobs.py.
createJobs::createAlignNtuple = notnotoptions.createAlignNtuple |
Definition at line 323 of file createJobs.py.
createJobs::createMapNtuple = notnotoptions.createMapNtuple |
Definition at line 322 of file createJobs.py.
createJobs::cscparams = options.cscparams |
Definition at line 292 of file createJobs.py.
createJobs::curvatureplots = False |
Definition at line 682 of file createJobs.py.
createJobs::curvatureplots_ingeneral = options.curvatureplots |
Definition at line 279 of file createJobs.py.
string createJobs::default = 50 |
Definition at line 31 of file createJobs.py.
string createJobs::dest = "subjobs" |
Definition at line 32 of file createJobs.py.
Definition at line 669 of file createJobs.py.
list createJobs::director = directory[:-1] |
Definition at line 667 of file createJobs.py.
list createJobs::director1 = directory1[:-1] |
Definition at line 742 of file createJobs.py.
string createJobs::directory = "" |
Definition at line 656 of file createJobs.py.
string createJobs::directory1 = "%s01/" |
after the last iteration (optionally) do diagnostics run
Definition at line 741 of file createJobs.py.
list createJobs::DIRNAME = sys.argv[1] |
Definition at line 270 of file createJobs.py.
createJobs::doCleanUp = notoptions.noCleanUp |
Definition at line 321 of file createJobs.py.
createJobs::doCSC = True |
Definition at line 325 of file createJobs.py.
createJobs::doDT = True |
Definition at line 327 of file createJobs.py.
tuple createJobs::exit_code = os.system("./Alignment/MuonAlignmentAlgorithms/scripts/convertSQLiteXML.py %s %s --gprcdconnect %s --gprcd %s" % (INITIALGEOM,INITIALXML,gprcdconnect,gprcd)) |
Definition at line 363 of file createJobs.py.
createJobs::extraPlots = options.extraPlots |
Definition at line 315 of file createJobs.py.
list createJobs::fileNames = [] |
Definition at line 335 of file createJobs.py.
list createJobs::fileNamesBlocks = [] |
Definition at line 336 of file createJobs.py.
string createJobs::gather_fileName = "%sgather%03d.sh" |
Definition at line 696 of file createJobs.py.
createJobs::globaltag = options.globaltag |
Definition at line 280 of file createJobs.py.
createJobs::gprcd = options.gprcd |
Definition at line 288 of file createJobs.py.
createJobs::gprcdconnect = options.gprcdconnect |
Definition at line 287 of file createJobs.py.
string createJobs::help = "approximate number of \"gather\" subjobs" |
Definition at line 29 of file createJobs.py.
list createJobs::INITIALGEOM = sys.argv[3] |
Definition at line 272 of file createJobs.py.
list createJobs::INITIALXML = '.xml' |
step 0: convert initial geometry to xml
Definition at line 358 of file createJobs.py.
string createJobs::inputdb = INITIALGEOM |
Definition at line 660 of file createJobs.py.
list createJobs::inputdbdir = directory[:] |
Definition at line 661 of file createJobs.py.
string createJobs::inputfiles = " " |
gather.sh runners for njobs
Definition at line 688 of file createJobs.py.
list createJobs::INPUTFILES = sys.argv[4] |
Definition at line 273 of file createJobs.py.
tuple createJobs::iscosmics = str(options.iscosmics) |
Definition at line 289 of file createJobs.py.
tuple createJobs::ITERATIONS = int(sys.argv[2]) |
Definition at line 271 of file createJobs.py.
createJobs::json_file = options.json |
Definition at line 333 of file createJobs.py.
string createJobs::last_align = None |
Definition at line 655 of file createJobs.py.
createJobs::mapplots = False |
Definition at line 678 of file createJobs.py.
createJobs::mapplots_ingeneral = options.mapplots |
Definition at line 277 of file createJobs.py.
createJobs::maxDxy = options.maxDxy |
Definition at line 298 of file createJobs.py.
createJobs::maxEvents = options.maxEvents |
Definition at line 307 of file createJobs.py.
createJobs::maxResSlopeY = options.maxResSlopeY |
Definition at line 310 of file createJobs.py.
createJobs::maxTrackerRedChi2 = options.maxTrackerRedChi2 |
Definition at line 300 of file createJobs.py.
createJobs::maxTrackP = options.maxTrackP |
Definition at line 297 of file createJobs.py.
createJobs::maxTrackPt = options.maxTrackPt |
Definition at line 295 of file createJobs.py.
tuple createJobs::minAlignmentHits = str(options.minAlignmentHits) |
Definition at line 305 of file createJobs.py.
createJobs::minNCrossedChambers = options.minNCrossedChambers |
Definition at line 301 of file createJobs.py.
tuple createJobs::minTrackerHits = str(options.minTrackerHits) |
Definition at line 299 of file createJobs.py.
createJobs::minTrackP = options.minTrackP |
Definition at line 296 of file createJobs.py.
createJobs::minTrackPt = options.minTrackPt |
Definition at line 294 of file createJobs.py.
createJobs::muonCollectionTag = options.muonCollectionTag |
Definition at line 293 of file createJobs.py.
tuple createJobs::njobs = options.subjobs |
Definition at line 338 of file createJobs.py.
tuple createJobs::parser = optparse.OptionParser(usage) |
Definition at line 27 of file createJobs.py.
createJobs::peakNSigma = options.peakNSigma |
Definition at line 313 of file createJobs.py.
createJobs::preFilter = notnotoptions.preFilter |
Definition at line 314 of file createJobs.py.
list createJobs::prog = sys.argv[0] |
Definition at line 13 of file createJobs.py.
tuple createJobs::pwd = str(os.getcwdu()) |
Definition at line 347 of file createJobs.py.
createJobs::residualsModel = options.residualsModel |
Definition at line 312 of file createJobs.py.
createJobs::segdiffplots = False |
Definition at line 680 of file createJobs.py.
createJobs::segdiffplots_ingeneral = options.segdiffplots |
Definition at line 278 of file createJobs.py.
createJobs::skipEvents = options.skipEvents |
Definition at line 308 of file createJobs.py.
createJobs::station123params = options.station123params |
Definition at line 290 of file createJobs.py.
createJobs::station4params = options.station4params |
Definition at line 291 of file createJobs.py.
tuple createJobs::stepsize = int(math.ceil(1.*len(fileNames)/options.subjobs)) |
Definition at line 345 of file createJobs.py.
Definition at line 651 of file createJobs.py.
createJobs::theNSigma = options.motionPolicyNSigma |
Definition at line 311 of file createJobs.py.
Referenced by DTChamberEfficiency::DTChamberEfficiency().
align.sh
Definition at line 715 of file createJobs.py.
createJobs::trackeralignment = options.trackeralignment |
Definition at line 282 of file createJobs.py.
createJobs::trackerAPE = options.trackerAPE |
Definition at line 284 of file createJobs.py.
createJobs::trackerAPEconnect = options.trackerAPEconnect |
Definition at line 283 of file createJobs.py.
createJobs::trackerBows = options.trackerBows |
Definition at line 286 of file createJobs.py.
createJobs::trackerBowsconnect = options.trackerBowsconnect |
Definition at line 285 of file createJobs.py.
createJobs::trackerconnect = options.trackerconnect |
Definition at line 281 of file createJobs.py.
tuple createJobs::twoBin = str(options.twoBin) |
Definition at line 303 of file createJobs.py.
string createJobs::type = "int" |
Definition at line 30 of file createJobs.py.
string createJobs::usage |
00001 """./%(prog)s DIRNAME ITERATIONS INITIALGEOM INPUTFILES [options] 00002 00003 Creates (overwrites) a directory for each of the iterations and creates (overwrites) 00004 submitJobs.sh with the submission sequence and dependencies. 00005 00006 DIRNAME directories will be named DIRNAME01, DIRNAME02, etc. 00007 ITERATIONS number of iterations 00008 INITIALGEOM SQLite file containing muon geometry with tag names 00009 DTAlignmentRcd, DTAlignmentErrorRcd, CSCAlignmentRcd, CSCAlignmentErrorRcd 00010 INPUTFILES Python file defining 'fileNames', a list of input files as 00011 strings (create with findQualityFiles.py)"""
Definition at line 15 of file createJobs.py.
createJobs::user_mail = options.user_mail |
Definition at line 276 of file createJobs.py.
createJobs::useResiduals = options.useResiduals |
Definition at line 316 of file createJobs.py.
createJobs::validationLabel = options.validationLabel |
Definition at line 309 of file createJobs.py.
tuple createJobs::weightAlignment = str(options.weightAlignment) |
Definition at line 304 of file createJobs.py.