当前位置: 首页>>代码示例>>Python>>正文


Python GenericValidationData.getRepMap方法代码示例

本文整理汇总了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
开发者ID:aashaqshah,项目名称:cmssw-1,代码行数:28,代码来源:offlineValidation.py

示例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
开发者ID:aashaqshah,项目名称:cmssw-1,代码行数:27,代码来源:offlineValidation.py

示例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
开发者ID:Andrej-CMS,项目名称:cmssw,代码行数:10,代码来源:monteCarloValidation.py

示例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
开发者ID:ajaykumar649,项目名称:GeometryComparitionTools,代码行数:12,代码来源:zMuMuValidation.py

示例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
开发者ID:tj710,项目名称:TTEmulator,代码行数:12,代码来源:trackSplittingValidation.py

示例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
开发者ID:DesyTau,项目名称:cmssw,代码行数:14,代码来源:offlineValidation.py

示例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
开发者ID:aashaqshah,项目名称:cmssw-1,代码行数:15,代码来源:monteCarloValidation.py

示例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
开发者ID:delgadoandrea,项目名称:cmssw,代码行数:16,代码来源:zMuMuValidation.py

示例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
开发者ID:12345ieee,项目名称:cmg-cmssw,代码行数:17,代码来源:monteCarloValidation.py

示例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
开发者ID:Andrej-CMS,项目名称:cmssw,代码行数:17,代码来源:primaryVertexValidation.py

示例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
开发者ID:Andrej-CMS,项目名称:cmssw,代码行数:17,代码来源:trackSplittingValidation.py

示例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
开发者ID:HeinerTholen,项目名称:cmssw,代码行数:23,代码来源:offlineValidation.py

示例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
开发者ID:ajaykumar649,项目名称:GeometryComparitionTools,代码行数:23,代码来源:trackSplittingValidation.py


注:本文中的genericValidation.GenericValidationData.getRepMap方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。