Classes | |
class | ConfigBuilder |
class | Options |
Functions | |
def | availableFileOptions |
def | dumpPython |
def | findName |
def | getConfigsForScenario |
def | installFilteredStream |
def | installPromptReco |
Variables | |
string | __source__ = "$Source: /cvs_server/repositories/CMSSW/CMSSW/Configuration/PyReleaseValidation/python/ConfigBuilder.py,v $" |
dictionary | __triggerTable |
string | __version__ = "$Revision: 1.99.2.8 $" |
tuple | defaultOptions = Options() |
dictionary | pileupMap |
promptReco = installPromptReco |
def ConfigBuilder::availableFileOptions | ( | nameTemplate, | ||
path = "Configuration/StandardSequences" | ||||
) |
returns existing filenames given a name template
Definition at line 42 of file ConfigBuilder.py.
00042 : 00043 """returns existing filenames given a name template""" 00044 pass 00045 00046 class ConfigBuilder(object):
def ConfigBuilder::dumpPython | ( | process, | ||
name | ||||
) |
Definition at line 29 of file ConfigBuilder.py.
00029 : 00030 theObject = getattr(process,name) 00031 if isinstance(theObject,cms.Path) or isinstance(theObject,cms.EndPath) or isinstance(theObject,cms.Sequence): 00032 return "process."+name+" = " + theObject.dumpPython("process") 00033 elif isinstance(theObject,_Module): 00034 return "process."+name+" = " + theObject.dumpPython() 00035 00036 def findName(object,dictionary):
def ConfigBuilder::findName | ( | object, | ||
dictionary | ||||
) |
Definition at line 37 of file ConfigBuilder.py.
00037 : 00038 for name, item in dictionary.iteritems(): 00039 if item == object: 00040 return name 00041 def availableFileOptions(nameTemplate, path="Configuration/StandardSequences" ):
def ConfigBuilder::getConfigsForScenario | ( | sequence = None |
) |
Retrieves the list of files needed to run a given trigger menu. If no trigger or an invalid trigger is given, use the default one.
Definition at line 40 of file ConfigBuilder.py.
00040 : 00041 """ 00042 Retrieves the list of files needed to run a given trigger menu. 00043 If no trigger or an invalid trigger is given, use the default one. 00044 """ 00045 # default trigger, used if none is 00046 default = 'L1Menu_2008MC_2E30:Unprescaled' 00047 00048 if not sequence: 00049 # no trigger was specified, use the default one 00050 trigger = default 00051 else: 00052 # check if a prescale was specified, and default to 'Unprescaled' if none was given 00053 args = re.split(r'[,:]', sequence) 00054 sequence = ':'.join(args) 00055 if len(args) == 1: 00056 args.append('Unprescaled') 00057 trigger = ':'.join(args) 00058 00059 # check if the specified trigger (augmented with the prescale) is valid 00060 if trigger not in __triggerTable: 00061 print 'An unsupported trigger has been requested: %s' % sequence 00062 print 'The default one will be used instead: %s' % default 00063 print 'The supported triggers are:' 00064 for key in __triggerTable.iterkeys(): 00065 print '\t%s' % key 00066 print 00067 trigger = default 00068 00069 return __triggerTable[trigger] 00070
def ConfigBuilder::installFilteredStream | ( | process, | ||
schedule, | ||||
streamName, | ||||
definitionFile = "Configuration/StandardSequences/AlCaRecoStreams_cff" | ||||
) |
Definition at line 687 of file ConfigBuilder.py.
00687 : 00688 00689 definitionModule = __import__(definitionFile) 00690 process.extend(definitionModule) 00691 stream = getattr(definitionModule,streamName) 00692 output = cms.OutputModule("PoolOutputModule") 00693 output.SelectEvents = stream.selectEvents 00694 output.outputCommands = stream.content 00695 output.dataset = cms.untracked.PSet( dataTier = stream.dataTier) 00696 setattr(process,streamName,output) 00697 for path in stream.paths: 00698 schedule.append(path) 00699 00700 def installPromptReco(process, recoOutputModule, aodOutputModule = None):
def ConfigBuilder::installPromptReco | ( | process, | ||
recoOutputModule, | ||||
aodOutputModule = None | ||||
) |
_promptReco_ Method to install the standard PromptReco configuration into a basic process containing source and output modules. process is the CMS Process instance to be populated recoOutputModule is the output module used to write the RECO data tier aodOutputModule is the output module used to write the AOD data tier, if this is not none, any AOD sequences should be added.
Definition at line 701 of file ConfigBuilder.py.
00701 : 00702 """ 00703 _promptReco_ 00704 00705 Method to install the standard PromptReco configuration into 00706 a basic process containing source and output modules. 00707 00708 process is the CMS Process instance to be populated 00709 00710 recoOutputModule is the output module used to write the 00711 RECO data tier 00712 00713 aodOutputModule is the output module used to write 00714 the AOD data tier, if this is not none, any AOD sequences 00715 should be added. 00716 """ 00717 cb = ConfigBuilder(defaultOptions, process = process) 00718 cb._options.step = 'RAW2DIGI,RECO' 00719 cb.addStandardSequences() 00720 cb.addConditions() 00721 process.load(cb.EVTCONTDefault) 00722 recoOutputModule.eventContent = process.RECOEventContent 00723 if aodOutputModule != None: 00724 aodOutputModule.eventContent = process.AODEventContent 00725 return process 00726 00727 promptReco = installPromptReco
string ConfigBuilder::__source__ = "$Source: /cvs_server/repositories/CMSSW/CMSSW/Configuration/PyReleaseValidation/python/ConfigBuilder.py,v $" [static] |
Definition at line 4 of file ConfigBuilder.py.
dictionary ConfigBuilder::__triggerTable [static] |
Definition at line 2 of file ConfigBuilder.py.
string ConfigBuilder::__version__ = "$Revision: 1.99.2.8 $" [static] |
Definition at line 3 of file ConfigBuilder.py.
tuple ConfigBuilder::defaultOptions = Options() [static] |
Definition at line 14 of file ConfigBuilder.py.
dictionary ConfigBuilder::pileupMap [static] |
Initial value:
{'LowLumiPileUp': 7.1, 'NoPileUp': 0, 'InitialPileUp': 3.8, 'HighLumiPileUp': 25.4 }
Definition at line 22 of file ConfigBuilder.py.
ConfigBuilder::promptReco = installPromptReco [static] |
Definition at line 728 of file ConfigBuilder.py.