Variables | |
list | AfterPileUpSteps = [] |
list | AllSteps = ["GEN,SIM", "DIGI", "L1", "DIGI2RAW", "HLT", "RAW2DIGI","RECO"] |
string | cmsDriver = 'cmsDriver.py' |
debug = False | |
list | DEF_STEPS = ['GEN,SIM', 'DIGI'] |
tuple | hypreg = re.compile('-') |
dictionary | Profiler |
tuple | THIS_PROG_NAME = os.path.basename(sys.argv[0]) |
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 75 of file cmsRelvalreportInput.py.
References split.
Referenced by getSteps().
def cmsRelvalreportInput.determineNewProfile | ( | step, | |
Profile, | |||
SavedProfile | |||
) |
Definition at line 428 of file cmsRelvalreportInput.py.
def cmsRelvalreportInput.expandHyphens | ( | step | ) |
Definition at line 260 of file cmsRelvalreportInput.py.
References alcazmumu_cfi.filter, python.multivaluedict.map(), and split.
Referenced by writeCommands().
def cmsRelvalreportInput.getFstOccur | ( | item, | |
list | |||
) |
Definition at line 66 of file cmsRelvalreportInput.py.
References alcazmumu_cfi.filter.
def cmsRelvalreportInput.getLstIndex | ( | item, | |
list | |||
) |
Definition at line 69 of file cmsRelvalreportInput.py.
def cmsRelvalreportInput.getProfileArray | ( | ProfileCode | ) |
Definition at line 376 of file cmsRelvalreportInput.py.
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 109 of file cmsRelvalreportInput.py.
References checkSteps().
Referenced by setupProgramParameters().
def cmsRelvalreportInput.init_vars | ( | ) |
Definition at line 340 of file cmsRelvalreportInput.py.
Referenced by main().
def cmsRelvalreportInput.main | ( | argv = sys.argv | ) |
Definition at line 946 of file cmsRelvalreportInput.py.
References getProfileArray(), init_vars(), optionparse(), setupProgramParameters(), writeCommandsToReport(), and writeReportFileHeader().
def cmsRelvalreportInput.optionparse | ( | ) |
Definition at line 143 of file cmsRelvalreportInput.py.
References python.multivaluedict.map().
Referenced by main().
def cmsRelvalreportInput.pythonFragment | ( | step, | |
cmsdriverOptions | |||
) |
Definition at line 437 of file cmsRelvalreportInput.py.
Referenced by writeCommands(), and writePrerequisteSteps().
def cmsRelvalreportInput.setInputFile | ( | steps, | |
step, | |||
acandle, | |||
stepIndex, | |||
pileup = False , |
|||
bypasshlt = False |
|||
) |
Definition at line 451 of file cmsRelvalreportInput.py.
Referenced by writeCommands(), and writeUnprofiledSteps().
def cmsRelvalreportInput.setOutputFileOption | ( | acandle, | |
endstep | |||
) |
Definition at line 538 of file cmsRelvalreportInput.py.
References writeCommands().
Referenced by writeCommands().
def cmsRelvalreportInput.setupProgramParameters | ( | options, | |
args | |||
) |
Definition at line 299 of file cmsRelvalreportInput.py.
References getSteps().
Referenced by main().
def cmsRelvalreportInput.writeCommands | ( | simcandles, | |
Profile, | |||
acandle, | |||
steps, | |||
NumberOfEvents, | |||
cmsDriverOptions, | |||
bypasshlt, | |||
stepIndex = 0 , |
|||
pileup = False , |
|||
userInputFile = "" |
|||
) |
Definition at line 550 of file cmsRelvalreportInput.py.
References expandHyphens(), alcazmumu_cfi.filter, join(), python.multivaluedict.map(), 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 915 of file cmsRelvalreportInput.py.
References writeCommands().
Referenced by main().
def cmsRelvalreportInput.writePrerequisteSteps | ( | simcandles, | |
steps, | |||
acandle, | |||
NumberOfEvents, | |||
cmsDriverOptions, | |||
pileup, | |||
bypasshlt | |||
) |
Definition at line 525 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 359 of file cmsRelvalreportInput.py.
Referenced by main().
def cmsRelvalreportInput.writeStepHead | ( | simcandles, | |
acandle, | |||
step | |||
) |
def cmsRelvalreportInput.writeUnprofiledSteps | ( | simcandles, | |
CustomisePythonFragment, | |||
cmsDriverOptions, | |||
unprofiledSteps, | |||
previousOutputFile, | |||
acandle, | |||
NumberOfEvents, | |||
stepIndex, | |||
pileup, | |||
bypasshlt | |||
) |
Definition at line 478 of file cmsRelvalreportInput.py.
References join(), and setInputFile().
Referenced by writeCommands(), and writePrerequisteSteps().
list cmsRelvalreportInput.AfterPileUpSteps = [] |
Definition at line 37 of file cmsRelvalreportInput.py.
list cmsRelvalreportInput.AllSteps = ["GEN,SIM", "DIGI", "L1", "DIGI2RAW", "HLT", "RAW2DIGI","RECO"] |
Definition at line 36 of file cmsRelvalreportInput.py.
string cmsRelvalreportInput.cmsDriver = 'cmsDriver.py' |
Definition at line 32 of file cmsRelvalreportInput.py.
cmsRelvalreportInput.debug = False |
Definition at line 34 of file cmsRelvalreportInput.py.
list cmsRelvalreportInput.DEF_STEPS = ['GEN,SIM', 'DIGI'] |
Definition at line 35 of file cmsRelvalreportInput.py.
tuple cmsRelvalreportInput.hypreg = re.compile('-') |
Definition at line 33 of file cmsRelvalreportInput.py.
dictionary cmsRelvalreportInput.Profiler |
Definition at line 43 of file cmsRelvalreportInput.py.
tuple cmsRelvalreportInput.THIS_PROG_NAME = os.path.basename(sys.argv[0]) |
Global variables.
Definition at line 31 of file cmsRelvalreportInput.py.