Variables | |
list | f_candle_and_step_inJobID = lambdacandle,step,x:x[0] |
string | path = "/home/vidma/Desktop/CERN_code/cmssw/data/CMSSW_3_2_0_--usersteps=GEN-SIM,DIGI_lxbuild106.cern.ch_relval/relval/CMSSW_3_2_0/workGENSIMDIGI/TTbar_PU_TimeSize" |
tuple | simCandlesRules |
tuple | test_root_file = re.compile(".root$", re.IGNORECASE) |
dictionary | 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(), and split.
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().
Definition at line 6 of file FileNamesHelper.py.
Referenced by parserEdmSize.getEdmReport(), and getRootFileSize().
string FileNamesHelper.path = "/home/vidma/Desktop/CERN_code/cmssw/data/CMSSW_3_2_0_--usersteps=GEN-SIM,DIGI_lxbuild106.cern.ch_relval/relval/CMSSW_3_2_0/workGENSIMDIGI/TTbar_PU_TimeSize" |
Definition at line 306 of file FileNamesHelper.py.
tuple FileNamesHelper.simCandlesRules |
Definition at line 28 of file FileNamesHelper.py.
tuple FileNamesHelper.test_root_file = re.compile(".root$", re.IGNORECASE) |
Definition at line 19 of file FileNamesHelper.py.
dictionary FileNamesHelper.universal_candle_step_regs = {} |
Definition at line 18 of file FileNamesHelper.py.