Classes | |
class | MatrixReader |
class | MatrixRunner |
class | WorkFlow |
class | WorkFlowRunner |
Functions | |
def | runAll |
def | runData |
def | runOnly |
def | runSelected |
def | showRaw |
def | usage |
Variables | |
tuple | current = WorkFlowRunner(wf) |
if testList: # if we only run a selection, run only 5 events instead of 10 wf.cmdStep1 = wf.cmdStep1.replace('-n 10', '-n 5') | |
data = None | |
input = None | |
string | msg = "ERROR retrieving info from thread: " |
int | nfail1 = 0 |
int | nfail2 = 0 |
int | nfail3 = 0 |
int | nfail4 = 0 |
int | np = 4 |
int | npass = 0 |
int | npass1 = 0 |
int | npass2 = 0 |
int | npass3 = 0 |
int | npass4 = 0 |
only = None | |
raw = False | |
tuple | ret = showRaw(useInput=input) |
tuple | runall_report = open(runall_report_name,'w') |
string | runall_report_name = 'runall-report-step123-.log' |
sel = None | |
show = False |
def runTheMatrix_dev::runAll | ( | testList = None , |
|
nThreads = 4 , |
|||
show = False , |
|||
useInput = None |
|||
) |
Definition at line 712 of file runTheMatrix_dev.py.
00713 : 00714 00715 mrd = MatrixReader() 00716 mrd.prepare(useInput) 00717 00718 ret = 0 00719 00720 if show: 00721 mrd.show() 00722 print "nThreads = ",nThreads 00723 else: 00724 mRunnerHi = MatrixRunner(mrd.workFlows, nThreads) 00725 ret = mRunnerHi.runTests() 00726 00727 return ret 00728 00729 00730 # --------------------------------------------------------------------------------
def runTheMatrix_dev::runData | ( | testList, | |
nThreads = 4 , |
|||
show = False , |
|||
useInput = None |
|||
) |
Definition at line 689 of file runTheMatrix_dev.py.
00690 : 00691 00692 mrd = MatrixReader() 00693 mrd.prepare(useInput) 00694 00695 ret = 0 00696 if show: 00697 if not testList or testList == ['all']: 00698 mrd.show() 00699 else: 00700 mrd.show([float(x) for x in testList]) 00701 print 'selected items:', testList 00702 else: 00703 mRunnerHi = MatrixRunner(mrd.workFlows, nThreads) 00704 if not testList or testList == ['all']: 00705 ret = mRunnerHi.runTests() 00706 else: 00707 ret = mRunnerHi.runTests(testList) 00708 00709 return ret 00710 00711 # --------------------------------------------------------------------------------
def runTheMatrix_dev::runOnly | ( | only, | |
show, | |||
nThreads = 4 , |
|||
useInput = None |
|||
) |
Definition at line 731 of file runTheMatrix_dev.py.
def runTheMatrix_dev::runSelected | ( | testList, | |
nThreads = 4 , |
|||
show = False , |
|||
useInput = None |
|||
) |
Definition at line 659 of file runTheMatrix_dev.py.
00660 : 00661 00662 stdList = ['5.2', # SingleMu10 FastSim 00663 '7', # Cosmics+RECOCOS+ALCACOS 00664 '8', # BeamHalo+RECOCOS+ALCABH 00665 '25', # TTbar+RECO2+ALCATT2 STARTUP 00666 ] 00667 hiStatList = [ 00668 '121', # TTbar_Tauola 00669 '123.3', # TTBar FastSim 00670 ] 00671 00672 mrd = MatrixReader() 00673 mrd.prepare(useInput) 00674 00675 if testList == []: 00676 testList = stdList+hiStatList 00677 00678 ret = 0 00679 if show: 00680 mrd.show([float(x) for x in testList]) 00681 print 'selected items:', testList 00682 else: 00683 mRunnerHi = MatrixRunner(mrd.workFlows, nThreads) 00684 ret = mRunnerHi.runTests(testList) 00685 00686 return ret 00687 00688 # ================================================================================
def runTheMatrix_dev::showRaw | ( | useInput = None | ) |
Definition at line 650 of file runTheMatrix_dev.py.
def runTheMatrix_dev::usage | ( | ) |
Definition at line 741 of file runTheMatrix_dev.py.
00742 : 00743 print "Usage:", sys.argv[0], ' [options] ' 00744 print """ 00745 Where options is one of the following: 00746 -d, --data <list> comma-separated list of workflows to use from the realdata file. 00747 <list> can be "all" to select all data workflows 00748 -l, --list <list> comma-separated list of workflows to use from the cmsDriver*.txt files 00749 -j, --nproc <n> run <n> processes in parallel (default: 4 procs) 00750 -s, --selected run a subset of 8 workflows (usually in the CustomIB) 00751 -n, -q, --show show the (selected) workflows 00752 -i, --useInput <list> will use data input (if defined) for the step1 instead of step1. <list> can be "all" for this option 00753 -r, --raw in combination with --show will create the old style cmsDriver_*_hlt.txt file (in the working dir) 00754 00755 <list>s should be put in single- or double-quotes to avoid confusion with/by the shell 00756 """ 00757 00758 # ================================================================================
tuple runTheMatrix_dev::current = WorkFlowRunner(wf) |
if testList: # if we only run a selection, run only 5 events instead of 10 wf.cmdStep1 = wf.cmdStep1.replace('-n 10', '-n 5')
Definition at line 593 of file runTheMatrix_dev.py.
tuple runTheMatrix_dev::data = None |
Definition at line 776 of file runTheMatrix_dev.py.
tuple runTheMatrix_dev::input = None |
Definition at line 773 of file runTheMatrix_dev.py.
string runTheMatrix_dev::msg = "ERROR retrieving info from thread: " |
Definition at line 627 of file runTheMatrix_dev.py.
int runTheMatrix_dev::nfail1 = 0 |
Definition at line 603 of file runTheMatrix_dev.py.
int runTheMatrix_dev::nfail2 = 0 |
Definition at line 604 of file runTheMatrix_dev.py.
int runTheMatrix_dev::nfail3 = 0 |
Definition at line 605 of file runTheMatrix_dev.py.
int runTheMatrix_dev::nfail4 = 0 |
Definition at line 606 of file runTheMatrix_dev.py.
tuple runTheMatrix_dev::np = 4 |
Definition at line 771 of file runTheMatrix_dev.py.
int runTheMatrix_dev::npass = 0 |
Definition at line 607 of file runTheMatrix_dev.py.
int runTheMatrix_dev::npass1 = 0 |
Definition at line 608 of file runTheMatrix_dev.py.
int runTheMatrix_dev::npass2 = 0 |
Definition at line 609 of file runTheMatrix_dev.py.
int runTheMatrix_dev::npass3 = 0 |
Definition at line 610 of file runTheMatrix_dev.py.
int runTheMatrix_dev::npass4 = 0 |
Definition at line 611 of file runTheMatrix_dev.py.
list runTheMatrix_dev::only = None |
Definition at line 775 of file runTheMatrix_dev.py.
runTheMatrix_dev::raw = False |
Definition at line 777 of file runTheMatrix_dev.py.
Referenced by EESelectiveReadoutTask::analyze(), SiStripCommissioningSource::analyze(), L1GtPatternGenerator::analyze(), L1TdeECAL::analyze(), EBSelectiveReadoutTask::analyze(), EcalTrigPrimAnalyzerMIPs::analyze(), HcalTBWriter::analyze(), EcalSelectiveReadoutValidation::analyzeDataVolume(), BeamSpotOnline::BeamSpotOnline(), DcsStatus::DcsStatus(), DEutils< T >::DEDigi(), TowerBlockFormatter::DigiToRaw(), DEutils< T >::is_empty(), CastorTriggerPrimitiveDigi::isSOI(), L1TriggerScalers::L1TriggerScalers(), Level1TriggerScalers::Level1TriggerScalers(), LumiScalers::LumiScalers(), L1EmulBias::ModifyCollection(), CaloDigiCollectionSorter::CaloDigiSortByMaxBin< T >::operator()(), L1GctTwosComplement< nBits >::operator+(), triggerExpression::Parser< Iterator >::Parser(), DEutils< T >::print(), SiPixelRecHitQuality::Packing::probabilityQ(), SiPixelRecHitQuality::Packing::probabilityXY(), EcalCompactTrigPrimProducer::produce(), L1GlobalTriggerEvmRawToDigi::produce(), L1RCTTPGProvider::produce(), HcalDigiToRaw::produce(), CastorDigiToRaw::produce(), L1GlobalTriggerRawToDigi::produce(), ScalersRawToDigi::produce(), edm::DataMixingEMDigiWorker::putEM(), RPCPackingModule::rawData(), HcalTriggerPrimitiveAlgo::runFEFormatError(), EcalFenixLinearizer::setParameters(), EcalFenixAmplitudeFilter::setParameters(), SiPixelRecHitQuality::Packing::setProbabilityQ(), SiPixelRecHitQuality::Packing::setProbabilityXY(), L1GctTwosComplement< nBits >::setValue(), CastorTriggerPrimitiveDigi::SOI_tpchannel(), CastorTriggerPrimitiveDigi::SOI_tpdata(), CastorTriggerPrimitiveDigi::tpchannel(), CastorTriggerPrimitiveDigi::tpdata(), GctFormatTranslateMCLegacy::writeAllRctCaloRegionBlock(), and evf::FUShmBuffer::writeErrorEventData().
tuple runTheMatrix_dev::ret = showRaw(useInput=input) |
Definition at line 800 of file runTheMatrix_dev.py.
tuple runTheMatrix_dev::runall_report = open(runall_report_name,'w') |
Definition at line 639 of file runTheMatrix_dev.py.
string runTheMatrix_dev::runall_report_name = 'runall-report-step123-.log' |
Definition at line 638 of file runTheMatrix_dev.py.
tuple runTheMatrix_dev::sel = None |
Definition at line 772 of file runTheMatrix_dev.py.
runTheMatrix_dev::show = False |
Definition at line 774 of file runTheMatrix_dev.py.