CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions | Variables
createJobs Namespace Reference

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 More...
 
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 = INITIALGEOM+'.xml'
 step 0: convert initial geometry to xml More...
 
 inputdb = INITIALGEOM
 
list inputdbdir = directory[:]
 
list INPUTFILES = sys.argv[4]
 
string inputfiles = " "
 gather.sh runners for njobs More...
 
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 More...
 
 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)
 

Function Documentation

def createJobs.writeAlignCfg (   fname,
  my_vars 
)

Definition at line 439 of file createJobs.py.

References mergeVDriftHistosByStation.file, and TablePrint.write.

440 def writeAlignCfg(fname, my_vars):
441  file("%salign.sh" % directory, "w").write("""#!/bin/sh
442 # %(commandline)s
443 
444 export ALIGNMENT_CAFDIR=`pwd`
445 
446 cd %(pwd)s
447 eval `scramv1 run -sh`
448 export ALIGNMENT_AFSDIR=`pwd`
449 export ALIGNMENT_INPUTDB=%(inputdb)s
450 export ALIGNMENT_ITERATION=%(iteration)d
451 export ALIGNMENT_GLOBALTAG=%(globaltag)s
452 export ALIGNMENT_TRACKERCONNECT=%(trackerconnect)s
453 export ALIGNMENT_TRACKERALIGNMENT=%(trackeralignment)s
454 export ALIGNMENT_TRACKERAPECONNECT=%(trackerAPEconnect)s
455 export ALIGNMENT_TRACKERAPE=%(trackerAPE)s
456 export ALIGNMENT_TRACKERBOWSCONNECT=%(trackerBowsconnect)s
457 export ALIGNMENT_TRACKERBOWS=%(trackerBows)s
458 export ALIGNMENT_GPRCDCONNECT=%(gprcdconnect)s
459 export ALIGNMENT_GPRCD=%(gprcd)s
460 export ALIGNMENT_ISCOSMICS=%(iscosmics)s
461 export ALIGNMENT_STATION123PARAMS=%(station123params)s
462 export ALIGNMENT_STATION4PARAMS=%(station4params)s
463 export ALIGNMENT_CSCPARAMS=%(cscparams)s
464 export ALIGNMENT_MINTRACKPT=%(minTrackPt)s
465 export ALIGNMENT_MAXTRACKPT=%(maxTrackPt)s
466 export ALIGNMENT_MINTRACKP=%(minTrackP)s
467 export ALIGNMENT_MAXTRACKP=%(maxTrackP)s
468 export ALIGNMENT_MINTRACKERHITS=%(minTrackerHits)s
469 export ALIGNMENT_MAXTRACKERREDCHI2=%(maxTrackerRedChi2)s
470 export ALIGNMENT_ALLOWTIDTEC=%(allowTIDTEC)s
471 export ALIGNMENT_TWOBIN=%(twoBin)s
472 export ALIGNMENT_WEIGHTALIGNMENT=%(weightAlignment)s
473 export ALIGNMENT_MINALIGNMENTHITS=%(minAlignmentHits)s
474 export ALIGNMENT_COMBINEME11=%(combineME11)s
475 export ALIGNMENT_MAXRESSLOPEY=%(maxResSlopeY)s
476 export ALIGNMENT_CLEANUP=%(doCleanUp)s
477 export ALIGNMENT_CREATEALIGNNTUPLE=%(createAlignNtuple)s
478 export ALIGNMENT_RESIDUALSMODEL=%(residualsModel)s
479 export ALIGNMENT_PEAKNSIGMA=%(peakNSigma)s
480 export ALIGNMENT_USERESIDUALS=%(useResiduals)s
481 
482 cp -f %(directory)salign_cfg.py %(inputdbdir)s%(inputdb)s %(directory)s*.tmp %(copytrackerdb)s $ALIGNMENT_CAFDIR/
483 
484 export ALIGNMENT_PLOTTINGTMP=`ls %(directory)splotting0*.root 2> /dev/null`
485 
486 # if it's 1st or last iteration, combine _plotting.root files into one:
487 if [ \"$ALIGNMENT_ITERATION\" != \"111\" ] || [ \"$ALIGNMENT_ITERATION\" == \"%(ITERATIONS)s\" ]; then
488  #nfiles=$(ls %(directory)splotting0*.root 2> /dev/null | wc -l)
489  if [ \"zzz$ALIGNMENT_PLOTTINGTMP\" != \"zzz\" ]; then
490  hadd -f1 %(directory)s%(director)s_plotting.root %(directory)splotting0*.root
491  #if [ $? == 0 ] && [ \"$ALIGNMENT_CLEANUP\" == \"True\" ]; then rm %(directory)splotting0*.root; fi
492  fi
493 fi
494 
495 if [ \"$ALIGNMENT_CLEANUP\" == \"True\" ] && [ \"zzz$ALIGNMENT_PLOTTINGTMP\" != \"zzz\" ]; then
496  rm $ALIGNMENT_PLOTTINGTMP
497 fi
498 
499 cd $ALIGNMENT_CAFDIR/
500 export ALIGNMENT_ALIGNMENTTMP=`ls alignment*.tmp 2> /dev/null`
501 ls -l
502 
503 cmsRun align_cfg.py
504 cp -f MuonAlignmentFromReference_report.py $ALIGNMENT_AFSDIR/%(directory)s%(director)s_report.py
505 cp -f MuonAlignmentFromReference_outputdb.db $ALIGNMENT_AFSDIR/%(directory)s%(director)s.db
506 cp -f MuonAlignmentFromReference_plotting.root $ALIGNMENT_AFSDIR/%(directory)s%(director)s.root
507 
508 cd $ALIGNMENT_AFSDIR
509 ./Alignment/MuonAlignmentAlgorithms/scripts/convertSQLiteXML.py %(directory)s%(director)s.db %(directory)s%(director)s.xml --noLayers --gprcdconnect $ALIGNMENT_GPRCDCONNECT --gprcd $ALIGNMENT_GPRCD
510 
511 export ALIGNMENT_ALIGNMENTTMP=`ls %(directory)salignment*.tmp 2> /dev/null`
512 if [ \"$ALIGNMENT_CLEANUP\" == \"True\" ] && [ \"zzz$ALIGNMENT_ALIGNMENTTMP\" != \"zzz\" ]; then
513  rm $ALIGNMENT_ALIGNMENTTMP
514  echo " "
515 fi
516 
517 # if it's not 1st or last iteration, do some clean up:
518 if [ \"$ALIGNMENT_ITERATION\" != \"1\" ] && [ \"$ALIGNMENT_ITERATION\" != \"%(ITERATIONS)s\" ]; then
519  if [ \"$ALIGNMENT_CLEANUP\" == \"True\" ] && [ -e %(directory)s%(director)s.root ]; then
520  rm %(directory)s%(director)s.root
521  fi
522 fi
523 
524 # if it's last iteration, apply chamber motion policy
525 if [ \"$ALIGNMENT_ITERATION\" == \"%(ITERATIONS)s\" ]; then
526  # convert this iteration's geometry into detailed xml
527  ./Alignment/MuonAlignmentAlgorithms/scripts/convertSQLiteXML.py %(directory)s%(director)s.db %(directory)s%(director)s_extra.xml --gprcdconnect $ALIGNMENT_GPRCDCONNECT --gprcd $ALIGNMENT_GPRCD
528  # perform motion policy
529  ./Alignment/MuonAlignmentAlgorithms/scripts/motionPolicyChamber.py \
530  %(INITIALXML)s %(directory)s%(director)s_extra.xml \
531  %(directory)s%(director)s_report.py \
532  %(directory)s%(director)s_final.xml \
533  --nsigma %(theNSigma)s
534  # convert the resulting xml into the final sqlite geometry
535  ./Alignment/MuonAlignmentAlgorithms/scripts/convertSQLiteXML.py %(directory)s%(director)s_final.xml %(directory)s%(director)s_final.db --gprcdconnect $ALIGNMENT_GPRCDCONNECT --gprcd $ALIGNMENT_GPRCD
536 fi
537 
538 """ % my_vars)
def writeAlignCfg
Definition: createJobs.py:439
def createJobs.writeGatherCfg (   fname,
  my_vars 
)

Definition at line 370 of file createJobs.py.

References mergeVDriftHistosByStation.file, and TablePrint.write.

371 def writeGatherCfg(fname, my_vars):
372  file(fname, "w").write("""#/bin/sh
373 # %(commandline)s
374 
375 export ALIGNMENT_CAFDIR=`pwd`
376 
377 cd %(pwd)s
378 eval `scramv1 run -sh`
379 export ALIGNMENT_AFSDIR=`pwd`
380 
381 export ALIGNMENT_INPUTFILES='%(inputfiles)s'
382 export ALIGNMENT_ITERATION=%(iteration)d
383 export ALIGNMENT_JOBNUMBER=%(jobnumber)d
384 export ALIGNMENT_MAPPLOTS=%(mapplots)s
385 export ALIGNMENT_SEGDIFFPLOTS=%(segdiffplots)s
386 export ALIGNMENT_CURVATUREPLOTS=%(curvatureplots)s
387 export ALIGNMENT_GLOBALTAG=%(globaltag)s
388 export ALIGNMENT_INPUTDB=%(inputdb)s
389 export ALIGNMENT_TRACKERCONNECT=%(trackerconnect)s
390 export ALIGNMENT_TRACKERALIGNMENT=%(trackeralignment)s
391 export ALIGNMENT_TRACKERAPECONNECT=%(trackerAPEconnect)s
392 export ALIGNMENT_TRACKERAPE=%(trackerAPE)s
393 export ALIGNMENT_TRACKERBOWSCONNECT=%(trackerBowsconnect)s
394 export ALIGNMENT_TRACKERBOWS=%(trackerBows)s
395 export ALIGNMENT_GPRCDCONNECT=%(gprcdconnect)s
396 export ALIGNMENT_GPRCD=%(gprcd)s
397 export ALIGNMENT_ISCOSMICS=%(iscosmics)s
398 export ALIGNMENT_STATION123PARAMS=%(station123params)s
399 export ALIGNMENT_STATION4PARAMS=%(station4params)s
400 export ALIGNMENT_CSCPARAMS=%(cscparams)s
401 export ALIGNMENT_MUONCOLLECTIONTAG=%(muonCollectionTag)s
402 export ALIGNMENT_MINTRACKPT=%(minTrackPt)s
403 export ALIGNMENT_MAXTRACKPT=%(maxTrackPt)s
404 export ALIGNMENT_MINTRACKP=%(minTrackP)s
405 export ALIGNMENT_MAXTRACKP=%(maxTrackP)s
406 export ALIGNMENT_MAXDXY=%(maxDxy)s
407 export ALIGNMENT_MINTRACKERHITS=%(minTrackerHits)s
408 export ALIGNMENT_MAXTRACKERREDCHI2=%(maxTrackerRedChi2)s
409 export ALIGNMENT_MINNCROSSEDCHAMBERS=%(minNCrossedChambers)s
410 export ALIGNMENT_ALLOWTIDTEC=%(allowTIDTEC)s
411 export ALIGNMENT_TWOBIN=%(twoBin)s
412 export ALIGNMENT_WEIGHTALIGNMENT=%(weightAlignment)s
413 export ALIGNMENT_MINALIGNMENTHITS=%(minAlignmentHits)s
414 export ALIGNMENT_COMBINEME11=%(combineME11)s
415 export ALIGNMENT_MAXEVENTS=%(maxEvents)s
416 export ALIGNMENT_SKIPEVENTS=%(skipEvents)s
417 export ALIGNMENT_MAXRESSLOPEY=%(maxResSlopeY)s
418 export ALIGNMENT_DO_DT=%(doDT)s
419 export ALIGNMENT_DO_CSC=%(doCSC)s
420 export ALIGNMENT_JSON=%(json_file)s
421 export ALIGNMENT_CREATEMAPNTUPLE=%(createMapNtuple)s
422 #export ALIGNMENT_CREATEALIGNNTUPLE=%(createAlignNtuple)s
423 export ALIGNMENT_PREFILTER=%(preFilter)s
424 
425 
426 if [ \"zzz$ALIGNMENT_JSON\" != \"zzz\" ]; then
427  cp -f $ALIGNMENT_JSON $ALIGNMENT_CAFDIR/
428 fi
429 
430 cp -f %(directory)sgather_cfg.py %(inputdbdir)s%(inputdb)s %(copytrackerdb)s $ALIGNMENT_CAFDIR/
431 cd $ALIGNMENT_CAFDIR/
432 ls -l
433 cmsRun gather_cfg.py
434 ls -l
435 cp -f *.tmp %(copyplots)s $ALIGNMENT_AFSDIR/%(directory)s
436 """ % my_vars)
def writeGatherCfg
Definition: createJobs.py:370
def createJobs.writeValidationCfg (   fname,
  my_vars 
)

Definition at line 541 of file createJobs.py.

References mergeVDriftHistosByStation.file, and TablePrint.write.

542 def writeValidationCfg(fname, my_vars):
543  file(fname, "w").write("""#!/bin/sh
544 # %(commandline)s
545 
546 export ALIGNMENT_CAFDIR=`pwd`
547 mkdir files
548 mkdir out
549 
550 cd %(pwd)s
551 eval `scramv1 run -sh`
552 ALIGNMENT_AFSDIR=`pwd`
553 ALIGNMENT_ITERATION=%(iteration)d
554 ALIGNMENT_MAPPLOTS=None
555 ALIGNMENT_SEGDIFFPLOTS=None
556 ALIGNMENT_CURVATUREPLOTS=None
557 ALIGNMENT_EXTRAPLOTS=%(extraPlots)s
558 export ALIGNMENT_GPRCDCONNECT=%(gprcdconnect)s
559 export ALIGNMENT_GPRCD=%(gprcd)s
560 export ALIGNMENT_DO_DT=%(doDT)s
561 export ALIGNMENT_DO_CSC=%(doCSC)s
562 
563 
564 # copy the scripts to CAFDIR
565 cd Alignment/MuonAlignmentAlgorithms/scripts/
566 cp -f plotscripts.py $ALIGNMENT_CAFDIR/
567 cp -f mutypes.py $ALIGNMENT_CAFDIR/
568 cp -f alignmentValidation.py $ALIGNMENT_CAFDIR/
569 cp -f phiedges_fitfunctions.C $ALIGNMENT_CAFDIR/
570 cp -f createTree.py $ALIGNMENT_CAFDIR/
571 cp -f signConventions.py $ALIGNMENT_CAFDIR/
572 cp -f convertSQLiteXML.py $ALIGNMENT_CAFDIR/
573 cp -f wrapperExtraPlots.sh $ALIGNMENT_CAFDIR/
574 cd -
575 cp Alignment/MuonAlignmentAlgorithms/test/browser/tree* $ALIGNMENT_CAFDIR/out/
576 
577 # copy the results to CAFDIR
578 cp -f %(directory1)s%(director1)s_report.py $ALIGNMENT_CAFDIR/files/
579 cp -f %(directory)s%(director)s_report.py $ALIGNMENT_CAFDIR/files/
580 cp -f %(directory1)s%(director1)s.root $ALIGNMENT_CAFDIR/files/
581 cp -f %(directory)s%(director)s.root $ALIGNMENT_CAFDIR/files/
582 if [ -e %(directory1)s%(director1)s_plotting.root ] && [ -e %(directory)s%(director)s_plotting.root ]; then
583  cp -f %(directory1)s%(director1)s_plotting.root $ALIGNMENT_CAFDIR/files/
584  cp -f %(directory)s%(director)s_plotting.root $ALIGNMENT_CAFDIR/files/
585  ALIGNMENT_MAPPLOTS=%(mapplots)s
586  ALIGNMENT_SEGDIFFPLOTS=%(segdiffplots)s
587  ALIGNMENT_CURVATUREPLOTS=%(curvatureplots)s
588 fi
589 
590 dtcsc=""
591 if [ $ALIGNMENT_DO_DT == \"True\" ]; then
592  dtcsc="--dt"
593 fi
594 if [ $ALIGNMENT_DO_CSC == \"True\" ]; then
595  dtcsc="${dtcsc} --csc"
596 fi
597 
598 
599 cd $ALIGNMENT_CAFDIR/
600 echo \" ### Start running ###\"
601 date
602 
603 # do fits and median plots first
604 ./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
605 
606 if [ $ALIGNMENT_MAPPLOTS == \"True\" ]; then
607  ./alignmentValidation.py -l %(validationLabel)s -i $ALIGNMENT_CAFDIR --i1 files --iN files --i1prefix %(director1)s --iNprefix %(director)s -o $ALIGNMENT_CAFDIR/out $dtcsc --map
608 fi
609 
610 if [ $ALIGNMENT_SEGDIFFPLOTS == \"True\" ]; then
611  ./alignmentValidation.py -l %(validationLabel)s -i $ALIGNMENT_CAFDIR --i1 files --iN files --i1prefix %(director1)s --iNprefix %(director)s -o $ALIGNMENT_CAFDIR/out $dtcsc --segdiff
612 fi
613 
614 if [ $ALIGNMENT_CURVATUREPLOTS == \"True\" ]; then
615  ./alignmentValidation.py -l %(validationLabel)s -i $ALIGNMENT_CAFDIR --i1 files --iN files --i1prefix %(director1)s --iNprefix %(director)s -o $ALIGNMENT_CAFDIR/out $dtcsc --curvature
616 fi
617 
618 if [ $ALIGNMENT_EXTRAPLOTS == \"True\" ]; then
619  if [ \"zzz%(copytrackerdb)s\" != \"zzz\" ]; then
620  cp -f $ALIGNMENT_AFSDIR/%(copytrackerdb)s $ALIGNMENT_CAFDIR/
621  fi
622  cp $ALIGNMENT_AFSDIR/inertGlobalPositionRcd.db .
623  ./convertSQLiteXML.py $ALIGNMENT_AFSDIR/%(INITIALGEOM)s g0.xml --noLayers --gprcdconnect $ALIGNMENT_GPRCDCONNECT --gprcd $ALIGNMENT_GPRCD
624  ./wrapperExtraPlots.sh -n $ALIGNMENT_ITERATION -i $ALIGNMENT_AFSDIR -0 g0.xml -z -w %(station123params)s %(dir_no_)s
625  mkdir out/extra
626  cd %(dir_no_)s
627  mv MB ../out/extra/
628  mv ME ../out/extra/
629  cd -
630 fi
631 
632 # run simple diagnostic
633 ./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
634 
635 # fill the tree browser structure:
636 ./createTree.py -i $ALIGNMENT_CAFDIR/out
637 
638 timestamp=`date \"+%%y-%%m-%%d %%H:%%M:%%S\"`
639 echo \"%(validationLabel)s.plots (${timestamp})\" > out/label.txt
640 
641 ls -l out/
642 timestamp=`date +%%Y%%m%%d%%H%%M%%S`
643 tar czf %(validationLabel)s_${timestamp}.tgz out
644 cp -f %(validationLabel)s_${timestamp}.tgz $ALIGNMENT_AFSDIR/
645 
646 """ % my_vars)
647 
def writeValidationCfg
Definition: createJobs.py:541

Variable Documentation

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.

createJobs.dir_no_ = DIRNAME

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 = INITIALGEOM+'.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.

list createJobs.INPUTFILES = sys.argv[4]

Definition at line 273 of file createJobs.py.

string createJobs.inputfiles = " "

gather.sh runners for njobs

Definition at line 688 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.

createJobs.SUPER_SPECIAL_XY_AND_DXDZ_ITERATIONS = False

Definition at line 651 of file createJobs.py.

createJobs.theNSigma = options.motionPolicyNSigma

Definition at line 311 of file createJobs.py.

Referenced by DTChamberEfficiency.DTChamberEfficiency().

createJobs.tmp = station123params,station123params,useResiduals

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
Initial value:
1 = """./%(prog)s DIRNAME ITERATIONS INITIALGEOM INPUTFILES [options]
2 
3 Creates (overwrites) a directory for each of the iterations and creates (overwrites)
4 submitJobs.sh with the submission sequence and dependencies.
5 
6 DIRNAME directories will be named DIRNAME01, DIRNAME02, etc.
7 ITERATIONS number of iterations
8 INITIALGEOM SQLite file containing muon geometry with tag names
9  DTAlignmentRcd, DTAlignmentErrorExtendedRcd, CSCAlignmentRcd, CSCAlignmentErrorExtendedRcd
10 INPUTFILES Python file defining 'fileNames', a list of input files as
11  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.