Functions | |
def | getJobID_fromEdmSizeFileName (logfile_name) |
def | getJobID_fromFileName (logfile_name, suffix, givenPath="") |
def | getJobID_fromIgProfLogName (logfile_name) |
def | getJobID_fromMemcheckLogName (logfile_name) |
def | getJobID_fromRootFileName (logfile_name) |
def | getJobID_fromTimeReportLogName (logfile_name) |
def | getRootFileSize (path, candle, step) |
def | read_ConfigurationFromSimulationCandles (path, step, is_pileup) |
def | read_SimulationCandles (path) |
Variables | |
f_candle_and_step_inJobID | |
path | |
simCandlesRules | |
test_root_file | |
universal_candle_step_regs | |
def FileNamesHelper.getJobID_fromEdmSizeFileName | ( | logfile_name | ) |
Returns the candle and STEP out of filename: * the candle might include one optional underscore: >>> getJobID_fromEdmSizeFileName("E_1000_GEN,SIM_EdmSize") ('E_1000', 'GEN,SIM', '', '') * otherwise after candle we have two underscores: >>> getJobID_fromEdmSizeFileName("TTBAR__RAW2DIGI,RECO_EdmSize") ('TTBAR', 'RAW2DIGI,RECO', '', '') * and lastly we have the PILEUP possibility: >>> getJobID_fromEdmSizeFileName("TTBAR__GEN,SIM_PILEUP_EdmSize") ('TTBAR', 'GEN,SIM', 'PILEUP', '')
Definition at line 185 of file FileNamesHelper.py.
References getJobID_fromFileName().
Referenced by parserEdmSize.getEdmReport().
def FileNamesHelper.getJobID_fromFileName | ( | logfile_name, | |
suffix, | |||
givenPath = "" |
|||
) |
Returns the JobID (candle, step, pileup_type, conditions, event_content) out of filename -- if no pile up returns empty string for pileup type * the candle might include one optional underscore: >>> getJobID_fromFileName("PI-_1000_GEN,SIM.root", "\.root") ('PI-_1000', 'GEN,SIM', '', '') * otherwise after candle we have two underscores: >>> getJobID_fromFileName("MINBIAS__GEN,FASTSIM.root", "\.root") ('MINBIAS', 'GEN,FASTSIM', '', '') * and lastly we have the PILEUP possibility: >>> getJobID_fromFileName("TTBAR__DIGI_PILEUP.root", "\.root") ('TTBAR', 'DIGI', 'PILEUP', '')
Definition at line 93 of file FileNamesHelper.py.
References read_ConfigurationFromSimulationCandles(), python.rootplot.root2matplotlib.replace(), and cond::persistency.search().
Referenced by getJobID_fromEdmSizeFileName(), getJobID_fromMemcheckLogName(), getJobID_fromRootFileName(), and getJobID_fromTimeReportLogName().
def FileNamesHelper.getJobID_fromIgProfLogName | ( | logfile_name | ) |
Returns the candle and STEP out of .sql3 filename: everything is given, just have to split it... like: TTbar___GEN,FASTSIM___LowLumiPileUp___MC_37Y_V5___RAWSIM___MEM_LIVE___1.sql3 and correct the conditions!
Definition at line 235 of file FileNamesHelper.py.
References read_ConfigurationFromSimulationCandles(), and pileupCalc.upper.
Referenced by cmsPerfSuiteHarvest.process_igprof_dir().
def FileNamesHelper.getJobID_fromMemcheckLogName | ( | logfile_name | ) |
Returns the candle and STEP out of filename: * otherwise after candle we have two underscores: >>> getJobID_fromTimeReportLogName("test_data/TTBAR__RAW2DIGI,RECO_memcheck_vlgd.xml") ('TTBAR', 'RAW2DIGI,RECO', '', '') * and lastly we have the PILEUP possibility: >>> getJobID_fromTimeReportLogName("TTBAR__DIGI_PILEUP_memcheck_vlgd.xml") ('TTBAR', 'DIGI', 'PILEUP', '')
Definition at line 221 of file FileNamesHelper.py.
References getJobID_fromFileName().
Referenced by cmsPerfSuiteHarvest.process_memcheck_dir().
def FileNamesHelper.getJobID_fromRootFileName | ( | logfile_name | ) |
Returns the candle and STEP out of filename: * the candle might include one optional underscore: >>> getJobID_fromRootFileName("PI-_1000_GEN,SIM.root") ('PI-_1000', 'GEN,SIM', '', '') * otherwise after candle we have two underscores: >>> getJobID_fromRootFileName("MINBIAS__GEN,FASTSIM.root") ('MINBIAS', 'GEN,FASTSIM', '', '') * and lastly we have the PILEUP possibility: >>> getJobID_fromRootFileName("TTBAR__DIGI_PILEUP.root") ('TTBAR', 'DIGI', 'PILEUP', '')
Definition at line 167 of file FileNamesHelper.py.
References getJobID_fromFileName().
Referenced by getRootFileSize().
def FileNamesHelper.getJobID_fromTimeReportLogName | ( | logfile_name | ) |
Returns the candle and STEP out of filename: * the candle might include one optional underscore: >>> getJobID_fromTimeReportLogName("E_1000_GEN,SIM_TimingReport.log") ('E_1000', 'GEN,SIM', '', '') * otherwise after candle we have two underscores: >>> getJobID_fromTimeReportLogName("test_data/TTBAR__RAW2DIGI,RECO_TimingReport.log") ('TTBAR', 'RAW2DIGI,RECO', '', '') * and lastly we have the PILEUP possibility: >>> getJobID_fromTimeReportLogName("TTBAR__DIGI_PILEUP_TimingReport.log") ('TTBAR', 'DIGI', 'PILEUP', '')
Definition at line 203 of file FileNamesHelper.py.
References getJobID_fromFileName().
Referenced by parserTimingReport.manual_run(), parserTimingReport.perf_profile(), and cmsPerfSuiteHarvest.process_timesize_dir().
def FileNamesHelper.getRootFileSize | ( | path, | |
candle, | |||
step | |||
) |
Definition at line 270 of file FileNamesHelper.py.
References f_candle_and_step_inJobID, and getJobID_fromRootFileName().
Referenced by cmsPerfSuiteHarvest.process_timesize_dir().
def FileNamesHelper.read_ConfigurationFromSimulationCandles | ( | path, | |
step, | |||
is_pileup | |||
) |
Definition at line 45 of file FileNamesHelper.py.
References parsingRulesHelper.rulesParser(), split, and digitizers_cfi.strip.
Referenced by getJobID_fromFileName(), getJobID_fromIgProfLogName(), and cmsPerfSuiteHarvest.process_timesize_dir().
def FileNamesHelper.read_SimulationCandles | ( | path | ) |
get the acual file
Definition at line 285 of file FileNamesHelper.py.
Referenced by cmsPerfSuiteHarvest.process_igprof_dir(), cmsPerfSuiteHarvest.process_memcheck_dir(), and cmsPerfSuiteHarvest.process_timesize_dir().
FileNamesHelper.f_candle_and_step_inJobID |
Definition at line 6 of file FileNamesHelper.py.
Referenced by parserEdmSize.getEdmReport(), and getRootFileSize().
FileNamesHelper.path |
Definition at line 306 of file FileNamesHelper.py.
FileNamesHelper.simCandlesRules |
Definition at line 28 of file FileNamesHelper.py.
FileNamesHelper.test_root_file |
Definition at line 19 of file FileNamesHelper.py.
FileNamesHelper.universal_candle_step_regs |
Definition at line 18 of file FileNamesHelper.py.