CMS 3D CMS Logo

Functions | Variables
createJobs Namespace Reference

Functions

def writeAlignCfg (fname, my_vars)
 
def writeGatherCfg (fname, my_vars)
 
def writeValidationCfg (fname, my_vars)
 

Variables

 action
 
 allowTIDTEC = str(not options.notAllowTIDTEC)
 
 args
 
list bsubfile = ["#!/bin/sh", ""]
 
list bsubnames = []
 
 combineME11 = str(not options.notCombineME11)
 
string commandline = " "
 
 copyargs = sys.argv[:]
 
 copyplots
 
string copytrackerdb = ""
 
 createAlignNtuple = notnotoptions.createAlignNtuple
 
 createMapNtuple = notnotoptions.createMapNtuple
 
 cscparams = options.cscparams
 
bool curvatureplots = False
 
 curvatureplots_ingeneral = options.curvatureplots
 
 default
 
 dest
 
 dir_no_ = DIRNAME
 
 director = directory[:-1]
 
 director1 = directory1[:-1]
 
string directory = ""
 
string directory1 = "%s01/"
 after the last iteration (optionally) do diagnostics run More...
 
 DIRNAME = sys.argv[1]
 
 doCleanUp = notoptions.noCleanUp
 
bool doCSC = True
 
bool doDT = True
 
 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
 
 help
 
 INITIALGEOM = sys.argv[3]
 
string INITIALXML = INITIALGEOM+'.xml'
 step 0: convert initial geometry to xml More...
 
 inputdb = INITIALGEOM
 
 inputdbdir = directory[:]
 
 INPUTFILES = sys.argv[4]
 
string inputfiles = " "
 gather.sh runners for njobs More...
 
 iscosmics = str(options.iscosmics)
 
 ITERATIONS = int(sys.argv[2])
 
 json_file = options.json
 
 last_align = None
 
bool mapplots = False
 
 mapplots_ingeneral = options.mapplots
 
 maxDxy = options.maxDxy
 
 maxEvents = options.maxEvents
 
 maxResSlopeY = options.maxResSlopeY
 
 maxTrackerRedChi2 = options.maxTrackerRedChi2
 
 maxTrackP = options.maxTrackP
 
 maxTrackPt = options.maxTrackPt
 
 minAlignmentHits = str(options.minAlignmentHits)
 
 minNCrossedChambers = options.minNCrossedChambers
 
 minTrackerHits = str(options.minTrackerHits)
 
 minTrackP = options.minTrackP
 
 minTrackPt = options.minTrackPt
 
 muonCollectionTag = options.muonCollectionTag
 
 njobs = options.subjobs
 
 options
 
 parser = optparse.OptionParser(usage)
 
 peakNSigma = options.peakNSigma
 
 preFilter = notnotoptions.preFilter
 
 prog = sys.argv[0]
 
 pwd = str(os.getcwd())
 
 queue
 
 residualsModel = options.residualsModel
 
bool segdiffplots = False
 
 segdiffplots_ingeneral = options.segdiffplots
 
 skipEvents = options.skipEvents
 
 station123params = options.station123params
 
 station4params = options.station4params
 
 stepsize = int(math.ceil(1.*len(fileNames)/options.subjobs))
 
bool 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
 
 twoBin = str(options.twoBin)
 
 type
 
string usage
 
 user_mail = options.user_mail
 
 useResiduals = options.useResiduals
 
 validationLabel = options.validationLabel
 
 waiter
 
 weightAlignment = str(options.weightAlignment)
 

Function Documentation

def createJobs.writeAlignCfg (   fname,
  my_vars 
)

Definition at line 439 of file createJobs.py.

References FrontierConditions_GlobalTag_cff.file, and TriggerAnalyzer.write().

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

Definition at line 370 of file createJobs.py.

References FrontierConditions_GlobalTag_cff.file, and TriggerAnalyzer.write().

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

Definition at line 541 of file createJobs.py.

References FrontierConditions_GlobalTag_cff.file, and TriggerAnalyzer.write().

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

Variable Documentation

createJobs.action

Definition at line 40 of file createJobs.py.

createJobs.allowTIDTEC = str(not options.notAllowTIDTEC)

Definition at line 302 of file createJobs.py.

createJobs.args

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

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.

createJobs.copyargs = sys.argv[:]

Definition at line 5 of file createJobs.py.

createJobs.copyplots

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

createJobs.default

Definition at line 31 of file createJobs.py.

createJobs.dest

Definition at line 32 of file createJobs.py.

createJobs.dir_no_ = DIRNAME

Definition at line 669 of file createJobs.py.

createJobs.director = directory[:-1]

Definition at line 667 of file createJobs.py.

createJobs.director1 = directory1[:-1]

Definition at line 741 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 740 of file createJobs.py.

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.

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.

createJobs.help

Definition at line 29 of file createJobs.py.

createJobs.INITIALGEOM = sys.argv[3]

Definition at line 272 of file createJobs.py.

string 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.

createJobs.inputdbdir = directory[:]

Definition at line 661 of file createJobs.py.

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.

createJobs.iscosmics = str(options.iscosmics)

Definition at line 289 of file createJobs.py.

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.

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.

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.

createJobs.njobs = options.subjobs

Definition at line 338 of file createJobs.py.

createJobs.options

Definition at line 275 of file createJobs.py.

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.

createJobs.prog = sys.argv[0]

Definition at line 13 of file createJobs.py.

createJobs.pwd = str(os.getcwd())

Definition at line 347 of file createJobs.py.

createJobs.queue

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

createJobs.stepsize = int(math.ceil(1.*len(fileNames)/options.subjobs))

Definition at line 345 of file createJobs.py.

bool createJobs.SUPER_SPECIAL_XY_AND_DXDZ_ITERATIONS = False

Definition at line 651 of file createJobs.py.

createJobs.theNSigma = options.motionPolicyNSigma

align.sh

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

createJobs.twoBin = str(options.twoBin)

Definition at line 303 of file createJobs.py.

createJobs.type

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.

createJobs.waiter

Definition at line 701 of file createJobs.py.

createJobs.weightAlignment = str(options.weightAlignment)

Definition at line 304 of file createJobs.py.