Functions | |
def | checkSteps (steps) |
def | determineNewProfile (step, Profile, SavedProfile) |
def | expandHyphens (step) |
def | getFstOccur (item, list) |
def | getLstIndex (item, list) |
def | getProfileArray (ProfileCode) |
def | getSteps (userSteps) |
def | init_vars () |
def | main (argv=sys.argv) |
def | optionparse () |
def | pythonFragment (step, cmsdriverOptions) |
def | setInputFile (steps, step, acandle, stepIndex, pileup=False, bypasshlt=False) |
def | setOutputFileOption (acandle, endstep) |
def | setupProgramParameters (options, args) |
def | writeCommands (simcandles, Profile, acandle, steps, NumberOfEvents, cmsDriverOptions, bypasshlt, stepIndex=0, pileup=False, userInputFile="") |
def | writeCommandsToReport (simcandles, Candle, Profile, debug, NumberOfEvents, cmsDriverOptions, steps, bypasshlt, userInputFile) |
def | writePrerequisteSteps (simcandles, steps, acandle, NumberOfEvents, cmsDriverOptions, pileup, bypasshlt) |
def | writeReportFileHeader (CMSSW_VERSION, CMSSW_RELEASE_BASE, CMSSW_BASE) |
def | writeStepHead (simcandles, acandle, step) |
def | writeUnprofiledSteps (simcandles, CustomisePythonFragment, cmsDriverOptions, unprofiledSteps, previousOutputFile, acandle, NumberOfEvents, stepIndex, pileup, bypasshlt) |
Variables | |
AfterPileUpSteps | |
AllSteps | |
cmsDriver | |
debug | |
DEF_STEPS | |
hypreg | |
Profiler | |
THIS_PROG_NAME | |
Global variables. More... | |
def cmsRelvalreportInput.checkSteps | ( | steps | ) |
Checks user steps <steps> for order against steps defined in AllSteps list. If they are not, prints a warning and exits. No return value.
Definition at line 77 of file cmsRelvalreportInput.py.
References edm.print(), and split.
Referenced by getSteps().
def cmsRelvalreportInput.determineNewProfile | ( | step, | |
Profile, | |||
SavedProfile | |||
) |
Definition at line 430 of file cmsRelvalreportInput.py.
def cmsRelvalreportInput.expandHyphens | ( | step | ) |
Definition at line 262 of file cmsRelvalreportInput.py.
References ALCARECOTkAlBeamHalo_cff.filter, genParticles_cff.map, edm.print(), and split.
Referenced by writeCommands().
def cmsRelvalreportInput.getFstOccur | ( | item, | |
list | |||
) |
def cmsRelvalreportInput.getLstIndex | ( | item, | |
list | |||
) |
Definition at line 71 of file cmsRelvalreportInput.py.
def cmsRelvalreportInput.getProfileArray | ( | ProfileCode | ) |
Definition at line 378 of file cmsRelvalreportInput.py.
References str.
Referenced by main().
def cmsRelvalreportInput.getSteps | ( | userSteps | ) |
Analyzes the steps in <userSteps> to translate the cmsRelvalreportInput.py --step option into the cmsDriver.py one. Expanding hyphens for combined steps. Handle the exceptional cases of GEN-, GEN-SIM and GEN-FASTSIM (GEN is never profiled by itself). Returns a list of steps <steps>.
Definition at line 111 of file cmsRelvalreportInput.py.
References checkSteps().
Referenced by setupProgramParameters().
def cmsRelvalreportInput.init_vars | ( | ) |
Definition at line 342 of file cmsRelvalreportInput.py.
References edm.print().
Referenced by main().
def cmsRelvalreportInput.main | ( | argv = sys.argv | ) |
Definition at line 948 of file cmsRelvalreportInput.py.
References getProfileArray(), init_vars(), optionparse(), edm.print(), setupProgramParameters(), writeCommandsToReport(), and writeReportFileHeader().
def cmsRelvalreportInput.optionparse | ( | ) |
Definition at line 145 of file cmsRelvalreportInput.py.
References genParticles_cff.map.
Referenced by main().
def cmsRelvalreportInput.pythonFragment | ( | step, | |
cmsdriverOptions | |||
) |
Definition at line 439 of file cmsRelvalreportInput.py.
Referenced by writeCommands(), and writePrerequisteSteps().
def cmsRelvalreportInput.setInputFile | ( | steps, | |
step, | |||
acandle, | |||
stepIndex, | |||
pileup = False , |
|||
bypasshlt = False |
|||
) |
Definition at line 453 of file cmsRelvalreportInput.py.
Referenced by writeCommands(), and writeUnprofiledSteps().
def cmsRelvalreportInput.setOutputFileOption | ( | acandle, | |
endstep | |||
) |
Definition at line 540 of file cmsRelvalreportInput.py.
References writeCommands().
Referenced by writeCommands().
def cmsRelvalreportInput.setupProgramParameters | ( | options, | |
args | |||
) |
Definition at line 301 of file cmsRelvalreportInput.py.
References getSteps(), createfilelist.int, edm.print(), and str.
Referenced by main().
def cmsRelvalreportInput.writeCommands | ( | simcandles, | |
Profile, | |||
acandle, | |||
steps, | |||
NumberOfEvents, | |||
cmsDriverOptions, | |||
bypasshlt, | |||
stepIndex = 0 , |
|||
pileup = False , |
|||
userInputFile = "" |
|||
) |
Definition at line 552 of file cmsRelvalreportInput.py.
References expandHyphens(), ALCARECOTkAlBeamHalo_cff.filter, join(), genParticles_cff.map, edm.print(), pythonFragment(), setInputFile(), setOutputFileOption(), split, writePrerequisteSteps(), writeStepHead(), and writeUnprofiledSteps().
Referenced by setOutputFileOption(), and writeCommandsToReport().
def cmsRelvalreportInput.writeCommandsToReport | ( | simcandles, | |
Candle, | |||
Profile, | |||
debug, | |||
NumberOfEvents, | |||
cmsDriverOptions, | |||
steps, | |||
bypasshlt, | |||
userInputFile | |||
) |
Definition at line 917 of file cmsRelvalreportInput.py.
References edm.print(), and writeCommands().
Referenced by main().
def cmsRelvalreportInput.writePrerequisteSteps | ( | simcandles, | |
steps, | |||
acandle, | |||
NumberOfEvents, | |||
cmsDriverOptions, | |||
pileup, | |||
bypasshlt | |||
) |
Definition at line 527 of file cmsRelvalreportInput.py.
References pythonFragment(), split, and writeUnprofiledSteps().
Referenced by writeCommands().
def cmsRelvalreportInput.writeReportFileHeader | ( | CMSSW_VERSION, | |
CMSSW_RELEASE_BASE, | |||
CMSSW_BASE | |||
) |
Definition at line 361 of file cmsRelvalreportInput.py.
References edm.print().
Referenced by main().
def cmsRelvalreportInput.writeStepHead | ( | simcandles, | |
acandle, | |||
step | |||
) |
Definition at line 424 of file cmsRelvalreportInput.py.
Referenced by writeCommands().
def cmsRelvalreportInput.writeUnprofiledSteps | ( | simcandles, | |
CustomisePythonFragment, | |||
cmsDriverOptions, | |||
unprofiledSteps, | |||
previousOutputFile, | |||
acandle, | |||
NumberOfEvents, | |||
stepIndex, | |||
pileup, | |||
bypasshlt | |||
) |
Definition at line 480 of file cmsRelvalreportInput.py.
References join(), and setInputFile().
Referenced by writeCommands(), and writePrerequisteSteps().
cmsRelvalreportInput.AfterPileUpSteps |
Definition at line 39 of file cmsRelvalreportInput.py.
cmsRelvalreportInput.AllSteps |
Definition at line 38 of file cmsRelvalreportInput.py.
cmsRelvalreportInput.cmsDriver |
Definition at line 34 of file cmsRelvalreportInput.py.
cmsRelvalreportInput.debug |
Definition at line 36 of file cmsRelvalreportInput.py.
cmsRelvalreportInput.DEF_STEPS |
Definition at line 37 of file cmsRelvalreportInput.py.
cmsRelvalreportInput.hypreg |
Definition at line 35 of file cmsRelvalreportInput.py.
cmsRelvalreportInput.Profiler |
Definition at line 45 of file cmsRelvalreportInput.py.
cmsRelvalreportInput.THIS_PROG_NAME |
Global variables.
Definition at line 33 of file cmsRelvalreportInput.py.