Classes | |
class | BinToBin |
class | BinToBin1percent |
class | Chi2 |
class | KS |
class | StatisticalTest |
class | unpickler |
Functions | |
def | ask_ok |
def | code_generator |
def | functor |
def | get_relval_cmssw_version |
def | get_relval_id |
def | get_relval_max_version |
def | get_relval_version |
-------------—— Make files pairs: RelVal utils ---------------—— More... | |
def | get_relvaldata_cmssw_version |
def | get_relvaldata_id |
-----------—— Make files pairs: RelValData utils --------------—— More... | |
def | get_relvaldata_max_version |
def | get_relvaldata_version |
def | getNbins |
def | is_empty |
def | is_relvaldata |
----------------------— Make files pairs -----------------------— More... | |
def | is_sparse |
def | literal2root |
def | logger |
def | make_files_pairs |
def | parse_word |
def | profile2histo |
def | setTDRStyle |
def | test_env |
def | tree |
def | user_info |
def | wget |
Variables | |
int | _log_level = 10 |
tuple | TAG = re.compile(r'[a-zA-Z0-9]') |
theargv = sys.argv | |
def utils.code_generator | ( | kwds | ) |
Code generator function, parse user arguments, load and return appropriate template generator module.
Definition at line 106 of file utils.py.
Referenced by cms.generate(), and main.generator().
def utils.functor | ( | code, | |
kwds, | |||
debug = 0 |
|||
) |
Auto-generate and execute function with given code and configuration For details of compile/exec/eval see http://lucumr.pocoo.org/2011/2/1/exec-in-python/
Definition at line 54 of file utils.py.
References join().
Referenced by pkg.AbstractPkg.write().
def utils.get_relval_cmssw_version | ( | file | ) |
def utils.get_relval_id | ( | file | ) |
Returns unique relval ID (dataset name) for a given file.
Definition at line 544 of file utils.py.
References watchdog.group.
def utils.get_relval_max_version | ( | files | ) |
Returns file with maximum version at a) beggining of the file, e.g. DQM_V000M b) at the end of run, e.g. _run2012-vM. M has to be max.
Definition at line 520 of file utils.py.
References get_relval_version().
def utils.get_relval_version | ( | file | ) |
-------------—— Make files pairs: RelVal utils ---------------——
Returns tuple (CMSSW version, run version) for specified file.
Definition at line 513 of file utils.py.
Referenced by get_relval_max_version().
def utils.get_relvaldata_cmssw_version | ( | file | ) |
def utils.get_relvaldata_id | ( | file | ) |
-----------—— Make files pairs: RelValData utils --------------——
Returns unique relvaldata ID for a given file.
Definition at line 472 of file utils.py.
def utils.get_relvaldata_max_version | ( | files | ) |
Returns file with maximum version at a) beggining of the file, e.g. DQM_V000M b) at the end of run, e.g. _run2012-vM. M has to be max.
Definition at line 500 of file utils.py.
References get_relvaldata_version().
def utils.get_relvaldata_version | ( | file | ) |
Returns tuple (CMSSW version, run version) for specified file.
Definition at line 491 of file utils.py.
Referenced by get_relvaldata_max_version().
def utils.getNbins | ( | h | ) |
Definition at line 89 of file utils.py.
Referenced by utils.Chi2.absval(), utils.BinToBin.do_test(), utils.BinToBin1percent.do_test(), and utils.StatisticalTest.get_rank().
def utils.is_empty | ( | h | ) |
Definition at line 167 of file utils.py.
Referenced by DTSectColl.addTSTheta(), DEcompare< T >.get_ncand(), utils.StatisticalTest.get_rank(), and DEcompare< T >.SortCollections().
def utils.is_relvaldata | ( | files | ) |
----------------------— Make files pairs -----------------------—
Definition at line 557 of file utils.py.
References any().
Referenced by make_files_pairs().
def utils.logger | ( | msg_level, | |
message | |||
) |
Definition at line 561 of file utils.py.
References bitset_utilities.append(), cmsPerfStripChart.dict, cmsRelvalreport.exit, is_relvaldata(), and bookConverter.max.
Referenced by ValidationMatrix.get_filenames_from_pool().
def utils.parse_word | ( | word | ) |
def utils.setTDRStyle | ( | ) |
Definition at line 49 of file utils.py.
References HILowLumiHLTOfflineSource_cfi.dirname, and plotscripts.tdrStyle.
Referenced by BTagPerformanceAnalyzerOnData.bookHistograms(), BTagPerformanceAnalyzerMC.bookHistograms(), BTagPerformanceHarvester.dqmEndJob(), LRHelpFunctions.LRHelpFunctions(), EffPurFromHistos2D.plot(), EffPurFromHistos.plot(), FlavourHistograms< T >.plot(), FlavourHistograms2D< T, G >.plot(), SoftLeptonTagPlotter.psPlot(), IPTagPlotter< Container, Base >.psPlot(), TrackCountingTagPlotter.psPlot(), TrackProbabilityTagPlotter.psPlot(), JetTagPlotter.psPlot(), and RecoBTag.tdrGrid().
def utils.test_env | ( | tdir, | |
tmpl | |||
) |
Test user environment, look-up if user has run cmsenv, otherwise provide meaningful error message back to the user.
Definition at line 37 of file utils.py.
Referenced by main.generator().
def utils.wget | ( | url | ) |
Fetch the WHOLE file, not in bunches... To be optimised.
Definition at line 447 of file utils.py.
References SiPixelLorentzAngle_cfi.read.