本文整理汇总了Python中genericValidation.GenericValidationData.getRepMap方法的典型用法代码示例。如果您正苦于以下问题:Python GenericValidationData.getRepMap方法的具体用法?Python GenericValidationData.getRepMap怎么用?Python GenericValidationData.getRepMap使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类genericValidation.GenericValidationData
的用法示例。
在下文中一共展示了GenericValidationData.getRepMap方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: createScript
# 需要导入模块: from genericValidation import GenericValidationData [as 别名]
# 或者: from genericValidation.GenericValidationData import getRepMap [as 别名]
def createScript(self, path, scriptBaseName = "TkAlOfflineValidation"):
# A separate script is created for each parallel jobs.
# Since only one cfg is saved a bit ugly solution is needed in the loop.
returnValue = []
numJobs = int( self.general["parallelJobs"] )
for index in range(numJobs):
scriptName = "%s.%s.%s_%s.sh"%(scriptBaseName, self.name,
self.alignmentToValidate.name,
str(index))
repMap = GenericValidationData.getRepMap(self)
repMap["nIndex"]=""
repMap["nIndex"]=str(index)
repMap["CommandLine"]=""
for cfg in self.configFiles:
# The ugly solution here is to change the name for each parallel job
cfgtemp = cfg.replace(str(numJobs-1)+"_cfg.py",
str(index)+"_cfg.py")
repMap["CommandLine"]+= repMap["CommandLineTemplate"]%{"cfgFile":cfgtemp,
"postProcess":""
}
scripts = {scriptName: replaceByMap(configTemplates.parallelScriptTemplate,
repMap ) }
returnValue.extend(GenericValidationData.createScript(self,
scripts,
path) )
return returnValue
示例2: getRepMap
# 需要导入模块: from genericValidation import GenericValidationData [as 别名]
# 或者: from genericValidation.GenericValidationData import getRepMap [as 别名]
def getRepMap(self, alignment = None):
repMap = GenericValidationData.getRepMap(self, alignment)
repMap.update({
"nEvents": self.general["maxevents"],
"outputFile": replaceByMap( (".oO[workdir]Oo./AlignmentValidation_"
+ self.name +
"_.oO[name]Oo..root"), repMap ),
"resultFile": replaceByMap( (".oO[datadir]Oo./AlignmentValidation_"
+ self.name +
"_.oO[name]Oo..root"), repMap ),
"TrackSelectionTemplate": configTemplates.TrackSelectionTemplate,
"LorentzAngleTemplate": configTemplates.LorentzAngleTemplate,
"offlineValidationMode": "Standalone",
"offlineValidationFileOutput":
configTemplates.offlineStandaloneFileOutputTemplate,
"TrackCollection": self.general["trackcollection"]
})
repMap["outputFile"] = os.path.expandvars( repMap["outputFile"] )
repMap["outputFile"] = os.path.abspath( repMap["outputFile"] )
repMap["resultFile"] = os.path.expandvars( repMap["resultFile"] )
repMap["resultFile"] = os.path.abspath( repMap["resultFile"] )
if self.jobmode.split( ',' )[0] == "crab":
repMap["outputFile"] = os.path.basename( repMap["outputFile"] )
repMap["resultFile"] = os.path.basename( repMap["resultFile"] )
return repMap
示例3: getRepMap
# 需要导入模块: from genericValidation import GenericValidationData [as 别名]
# 或者: from genericValidation.GenericValidationData import getRepMap [as 别名]
def getRepMap( self, alignment = None ):
repMap = GenericValidationData.getRepMap(self, alignment)
repMap.update({
"nEvents": self.general["maxevents"]
})
repMap["outputFile"] = os.path.expandvars( repMap["outputFile"] )
repMap["resultFile"] = os.path.expandvars( repMap["resultFile"] )
return repMap
示例4: getRepMap
# 需要导入模块: from genericValidation import GenericValidationData [as 别名]
# 或者: from genericValidation.GenericValidationData import getRepMap [as 别名]
def getRepMap(self, alignment = None):
repMap = GenericValidationData.getRepMap(self, alignment)
repMap.update({
"nEvents": self.general["maxevents"],
# "outputFile": "zmumuHisto.root"
"outputFile": ("0_zmumuHisto.root"
",genSimRecoPlots.root"
",FitParameters.txt")
})
return repMap
示例5: getRepMap
# 需要导入模块: from genericValidation import GenericValidationData [as 别名]
# 或者: from genericValidation.GenericValidationData import getRepMap [as 别名]
def getRepMap( self, alignment = None ):
repMap = GenericValidationData.getRepMap(self)
repMap.update({
"nEvents": self.general["maxevents"],
"TrackCollection": self.general["trackcollection"]
})
# repMap["outputFile"] = os.path.abspath( repMap["outputFile"] )
# if self.jobmode.split( ',' )[0] == "crab":
# repMap["outputFile"] = os.path.basename( repMap["outputFile"] )
return repMap
示例6: getRepMap
# 需要导入模块: from genericValidation import GenericValidationData [as 别名]
# 或者: from genericValidation.GenericValidationData import getRepMap [as 别名]
def getRepMap(self, alignment = None):
repMap = GenericValidationData.getRepMap(self, alignment)
repMap.update({
"nEvents": self.general["maxevents"],
"TrackSelectionTemplate": configTemplates.TrackSelectionTemplate,
"LorentzAngleTemplate": configTemplates.LorentzAngleTemplate,
"offlineValidationMode": "Standalone",
"offlineValidationFileOutput": configTemplates.offlineFileOutputTemplate,
"TrackCollection": self.general["trackcollection"],
})
return repMap
示例7: getRepMap
# 需要导入模块: from genericValidation import GenericValidationData [as 别名]
# 或者: from genericValidation.GenericValidationData import getRepMap [as 别名]
def getRepMap( self, alignment = None ):
repMap = GenericValidationData.getRepMap(self, alignment)
repMap.update({
"outputFile": replaceByMap((".oO[workdir]Oo./McValidation_"
+ self.name +
"_.oO[name]Oo..root"), repMap ),
"nEvents": self.general["maxevents"]
})
repMap["outputFile"] = os.path.expandvars( repMap["outputFile"] )
repMap["outputFile"] = os.path.abspath( repMap["outputFile"] )
if self.jobmode.split( ',' )[0] == "crab":
repMap["outputFile"] = os.path.basename( repMap["outputFile"] )
return repMap
示例8: getRepMap
# 需要导入模块: from genericValidation import GenericValidationData [as 别名]
# 或者: from genericValidation.GenericValidationData import getRepMap [as 别名]
def getRepMap(self, alignment = None):
if alignment == None:
alignment = self.alignmentToValidate
repMap = GenericValidationData.getRepMap(self, alignment)
repMap.update({
"nEvents": self.general["maxevents"],
"outputFile": ("0_zmumuHisto.root"
",genSimRecoPlots.root"
",FitParameters.txt"),
"eosdir": os.path.join(self.general["eosdir"], "%s/%s/%s" % (self.outputBaseName, self.name, alignment.name)),
"workingdir": ".oO[datadir]Oo./%s/%s/%s" % (self.outputBaseName, self.name, alignment.name),
"plotsdir": ".oO[datadir]Oo./%s/%s/%s/plots" % (self.outputBaseName, self.name, alignment.name),
})
return repMap
示例9: getRepMap
# 需要导入模块: from genericValidation import GenericValidationData [as 别名]
# 或者: from genericValidation.GenericValidationData import getRepMap [as 别名]
def getRepMap( self, alignment = None ):
repMap = GenericValidationData.getRepMap(self, alignment)
repMap.update({
"resultFile": replaceByMap(("/store/caf/user/$USER/.oO[eosdir]Oo."
"/McValidation_"
+ self.name +
"_.oO[name]Oo..root"), repMap ),
"outputFile": replaceByMap(("McValidation_"
+ self.name +
"_.oO[name]Oo..root"), repMap ),
"nEvents": self.general["maxevents"]
})
repMap["outputFile"] = os.path.expandvars( repMap["outputFile"] )
repMap["resultFile"] = os.path.expandvars( repMap["resultFile"] )
return repMap
示例10: getRepMap
# 需要导入模块: from genericValidation import GenericValidationData [as 别名]
# 或者: from genericValidation.GenericValidationData import getRepMap [as 别名]
def getRepMap(self, alignment = None):
if alignment == None:
alignment = self.alignmentToValidate
repMap = GenericValidationData.getRepMap(self, alignment)
repMap.update({
"nEvents": self.general["maxevents"],
"TrackCollection": self.general["trackcollection"],
"VertexCollection": self.general["vertexcollection"],
"eosdir": os.path.join(self.general["eosdir"]),
#"eosdir": os.path.join(self.general["eosdir"], "%s/%s/%s" % (self.outputBaseName, self.name, alignment.name)),
"workingdir": ".oO[datadir]Oo./%s/%s/%s" % (self.outputBaseName, self.name, alignment.name),
"plotsdir": ".oO[datadir]Oo./%s/%s/%s/plots" % (self.outputBaseName, self.name, alignment.name),
})
return repMap
示例11: getRepMap
# 需要导入模块: from genericValidation import GenericValidationData [as 别名]
# 或者: from genericValidation.GenericValidationData import getRepMap [as 别名]
def getRepMap( self, alignment = None ):
repMap = GenericValidationData.getRepMap(self)
if repMap["subdetector"] == "none":
subdetselection = ""
else:
subdetselection = "process.AlignmentTrackSelector.minHitsPerSubDet.in.oO[subdetector]Oo. = 2"
repMap.update({
"nEvents": self.general["maxevents"],
"TrackCollection": self.general["trackcollection"],
"subdetselection": subdetselection,
})
# repMap["outputFile"] = os.path.abspath( repMap["outputFile"] )
# if self.jobmode.split( ',' )[0] == "crab":
# repMap["outputFile"] = os.path.basename( repMap["outputFile"] )
return repMap
示例12: getRepMap
# 需要导入模块: from genericValidation import GenericValidationData [as 别名]
# 或者: from genericValidation.GenericValidationData import getRepMap [as 别名]
def getRepMap(self, alignment = None):
repMap = GenericValidationData.getRepMap(self, alignment)
repMap.update({
"nEvents": self.general["maxevents"],
"outputFile": replaceByMap( ("AlignmentValidation_"
+ self.name +
"_.oO[name]Oo..root"), repMap ),
"resultFile": replaceByMap( ("/store/caf/user/$USER/.oO[eosdir]Oo."
"/AlignmentValidation_"
+ self.name +
"_.oO[name]Oo..root"), repMap ),
"TrackSelectionTemplate": configTemplates.TrackSelectionTemplate,
"LorentzAngleTemplate": configTemplates.LorentzAngleTemplate,
"offlineValidationMode": "Standalone",
"offlineValidationFileOutput":
configTemplates.offlineStandaloneFileOutputTemplate,
"TrackCollection": self.general["trackcollection"]
})
repMap["outputFile"] = os.path.expandvars( repMap["outputFile"] )
repMap["resultFile"] = os.path.expandvars( repMap["resultFile"] )
return repMap
示例13: getRepMap
# 需要导入模块: from genericValidation import GenericValidationData [as 别名]
# 或者: from genericValidation.GenericValidationData import getRepMap [as 别名]
def getRepMap( self, alignment = None ):
repMap = GenericValidationData.getRepMap(self)
repMap.update({
"resultFile": replaceByMap( ("/store/caf/user/$USER/.oO[eosdir]Oo."
"/TrackSplitting_"
+ self.name +
"_.oO[name]Oo..root"),
repMap ),
"outputFile": replaceByMap( ("TrackSplitting_"
+ self.name +
"_.oO[name]Oo..root"),
repMap ),
"nEvents": self.general["maxevents"],
"TrackCollection": self.general["trackcollection"]
})
repMap["outputFile"] = os.path.expandvars( repMap["outputFile"] )
repMap["resultFile"] = os.path.expandvars( repMap["resultFile"] )
# repMap["outputFile"] = os.path.abspath( repMap["outputFile"] )
# if self.jobmode.split( ',' )[0] == "crab":
# repMap["outputFile"] = os.path.basename( repMap["outputFile"] )
return repMap