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


Python GenericValidationData.__init__方法代码示例

本文整理汇总了Python中genericValidation.GenericValidationData.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python GenericValidationData.__init__方法的具体用法?Python GenericValidationData.__init__怎么用?Python GenericValidationData.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在genericValidation.GenericValidationData的用法示例。


在下文中一共展示了GenericValidationData.__init__方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

# 需要导入模块: from genericValidation import GenericValidationData [as 别名]
# 或者: from genericValidation.GenericValidationData import __init__ [as 别名]
 def __init__(self, valName, alignment, config,
              configBaseName  = "TkAlPrimaryVertexValidation", 
              scriptBaseName  = "TkAlPrimaryVertexValidation", 
              crabCfgBaseName = "TkAlPrimaryVertexValidation",
              resultBaseName  = "PrimaryVertexValidation", 
              outputBaseName  = "PrimaryVertexValidation"):
     defaults = {
         "pvvalidationreference": ("/store/caf/user/musich/Alignment/TkAlPrimaryVertexValidation/Reference/PrimaryVertexValidation_test_pvvalidation_mc_design_mc_48bins.root"),
         "ttrhbuilder":"WithAngleAndTemplate",
         "doBPix":"True",
         "doFPix":"True"
         }
     
     mandatories = ["isda","ismc","runboundary","trackcollection","vertexcollection","lumilist","ptCut","etaCut","runControl","numberOfBins"]
     self.configBaseName  = configBaseName
     self.scriptBaseName  = scriptBaseName
     self.crabCfgBaseName = crabCfgBaseName
     self.resultBaseName  = resultBaseName
     self.outputBaseName  = outputBaseName
     self.needParentFiles = False
     GenericValidationData.__init__(self, valName, alignment, config,
                                    "primaryvertex", addDefaults=defaults,
                                    addMandatories=mandatories)
     
     if self.general["pvvalidationreference"].startswith("/store"):
         self.general["pvvalidationreference"] = "root://eoscms//eos/cms" + self.general["pvvalidationreference"]
     if self.NJobs > 1:
         raise AllInOneError("Parallel jobs not implemented for the PrimaryVertex validation!\n"
                             "Please set parallelJobs = 1.")
开发者ID:archiron,项目名称:cmssw,代码行数:31,代码来源:primaryVertexValidation.py

示例2: __init__

# 需要导入模块: from genericValidation import GenericValidationData [as 别名]
# 或者: from genericValidation.GenericValidationData import __init__ [as 别名]
 def __init__(self, valName, alignment, config,
              configBaseName = "TkAlZMuMuValidation", scriptBaseName = "TkAlZMuMuValidation", crabCfgBaseName = "TkAlZMuMuValidation",
              resultBaseName = "ZMuMuValidation", outputBaseName = "ZMuMuValidation"):
     defaults = {
         "zmumureference": ("/store/caf/user/emiglior/Alignment/TkAlDiMuonValidation/Reference/BiasCheck_DYToMuMu_Summer12_TkAlZMuMu_IDEAL.root"),
         }
     deprecateddefaults = {
         "resonance": "",
         "switchONfit": "",
         "rebinphi": "",
         "rebinetadiff": "",
         "rebineta": "",
         "rebinpt": "",
         }
     defaults.update(deprecateddefaults)
     mandatories = ["etamaxneg", "etaminneg", "etamaxpos", "etaminpos"]
     self.configBaseName = configBaseName
     self.scriptBaseName = scriptBaseName
     self.crabCfgBaseName = crabCfgBaseName
     self.resultBaseName = resultBaseName
     self.outputBaseName = outputBaseName
     self.needParentFiles = False
     GenericValidationData.__init__(self, valName, alignment, config,
                                    "zmumu", addDefaults=defaults,
                                    addMandatories=mandatories,
                                    addneedpackages=['MuonAnalysis/MomentumScaleCalibration'])
     if self.general["zmumureference"].startswith("/store"):
         self.general["zmumureference"] = "root://eoscms//eos/cms" + self.general["zmumureference"]
     if self.NJobs > 1:
         raise AllInOneError("Parallel jobs not implemented for the Z->mumu validation!\n"
                             "Please set parallelJobs = 1.")
     for option in deprecateddefaults:
         if self.general[option]:
             raise AllInOneError("The '%s' option has been moved to the [plots:zmumu] section.  Please specify it there."%option)
         del self.general[option]
开发者ID:Andrej-CMS,项目名称:cmssw,代码行数:37,代码来源:zMuMuValidation.py

示例3: __init__

# 需要导入模块: from genericValidation import GenericValidationData [as 别名]
# 或者: from genericValidation.GenericValidationData import __init__ [as 别名]
 def __init__(self, valName, alignment, config,
              configBaseName = "TkAlZMuMuValidation", scriptBaseName = "TkAlZMuMuValidation", crabCfgBaseName = "TkAlZMuMuValidation",
              resultBaseName = "ZMuMuValidation", outputBaseName = "ZMuMuValidation"):
     defaults = {
         "zmumureference": ("/store/caf/user/emiglior/Alignment/TkAlDiMuonValidation/Reference/BiasCheck_DYToMuMu_Summer12_TkAlZMuMu_IDEAL.root"),
         "resonance": "Z",
         "switchONfit": "false",
         "rebinphi": "4",
         "rebinetadiff": "2",
         "rebineta": "2",
         "rebinpt": "8",
         }
     mandatories = ["etamaxneg", "etaminneg", "etamaxpos", "etaminpos"]
     self.configBaseName = configBaseName
     self.scriptBaseName = scriptBaseName
     self.crabCfgBaseName = crabCfgBaseName
     self.resultBaseName = resultBaseName
     self.outputBaseName = outputBaseName
     self.needParentFiles = False
     GenericValidationData.__init__(self, valName, alignment, config,
                                    "zmumu", addDefaults=defaults,
                                    addMandatories=mandatories)
     if self.general["zmumureference"].startswith("/store"):
         self.general["zmumureference"] = "root://eoscms//eos/cms" + self.general["zmumureference"]
     if self.NJobs > 1:
         raise AllInOneError("Parallel jobs not implemented for the Z->mumu validation!\n"
                             "Please set parallelJobs = 1.")
开发者ID:kkotov,项目名称:cmssw,代码行数:29,代码来源:zMuMuValidation.py

示例4: __init__

# 需要导入模块: from genericValidation import GenericValidationData [as 别名]
# 或者: from genericValidation.GenericValidationData import __init__ [as 别名]
 def __init__(self, valName, alignment, config, addDefaults = {}, addMandatories = [],
              configBaseName = "TkAlOfflineValidation", scriptBaseName = "TkAlOfflineValidation", crabCfgBaseName = "TkAlOfflineValidation",
              resultBaseName = "AlignmentValidation", outputBaseName = "AlignmentValidation"):
     defaults = {
         "DMRMethod":"median,rmsNorm",
         "DMRMinimum":"30",
         "DMROptions":"",
         "offlineModuleLevelHistsTransient":"False",
         "offlineModuleLevelProfiles":"True",
         "OfflineTreeBaseDir":"TrackHitFilter",
         "SurfaceShapes":"coarse",
         "stripYResiduals":"False",
         }
     mandatories = [ "trackcollection" ]
     defaults.update(addDefaults)
     mandatories += addMandatories
     self.configBaseName = configBaseName
     self.scriptBaseName = scriptBaseName
     self.crabCfgBaseName = crabCfgBaseName
     self.resultBaseName = resultBaseName
     self.outputBaseName = outputBaseName
     self.needParentFiles = False
     GenericValidationData.__init__(self, valName, alignment, config,
                                    "offline", addDefaults=defaults,
                                    addMandatories=mandatories)
开发者ID:aehart,项目名称:cmssw,代码行数:27,代码来源:offlineValidation.py

示例5: __init__

# 需要导入模块: from genericValidation import GenericValidationData [as 别名]
# 或者: from genericValidation.GenericValidationData import __init__ [as 别名]
 def __init__(self, valName, alignment,config):
     defaults = {
         "zmumureference": ("/store/caf/user/emiglior/Alignment/TkAlDiMuonValidation/Reference/BiasCheck_DYToMuMu_Summer12_TkAlZMuMu_IDEAL.root"),
         "resonance": "Z"
         }
     mandatories = ["dataset", "maxevents",
                    "etamaxneg", "etaminneg", "etamaxpos", "etaminpos"]
     GenericValidationData.__init__(self, valName, alignment, config,
                                    "zmumu", addDefaults=defaults,
                                    addMandatories=mandatories)
开发者ID:ajaykumar649,项目名称:GeometryComparitionTools,代码行数:12,代码来源:zMuMuValidation.py

示例6: __init__

# 需要导入模块: from genericValidation import GenericValidationData [as 别名]
# 或者: from genericValidation.GenericValidationData import __init__ [as 别名]
 def __init__(self, valName, alignment, config):
     defaults = {
         "zmumureference": (
             "/afs/cern.ch/cms/CAF/CMSALCA/ALCA_TRACKERALIGN2"
             "/TMP_EM/ZMuMu/data/MC/BiasCheck_DYToMuMu_Summer"
             "11_TkAlZMuMu_IDEAL.root"
         )
     }
     mandatories = ["dataset", "maxevents", "etamaxneg", "etaminneg", "etamaxpos", "etaminpos"]
     GenericValidationData.__init__(
         self, valName, alignment, config, "zmumu", addDefaults=defaults, addMandatories=mandatories
     )
开发者ID:nsahoo,项目名称:cmssw-1,代码行数:14,代码来源:zMuMuValidation.py

示例7: __init__

# 需要导入模块: from genericValidation import GenericValidationData [as 别名]
# 或者: from genericValidation.GenericValidationData import __init__ [as 别名]
 def __init__(self, valName, alignment, config,
              configBaseName = "TkAlTrackSplitting", scriptBaseName = "TkAlTrackSplitting", crabCfgBaseName = "TkAlTrackSplitting",
              resultBaseName = "TrackSplitting", outputBaseName = "TrackSplitting"):
     mandatories = ["trackcollection"]
     self.configBaseName = configBaseName
     self.scriptBaseName = scriptBaseName
     self.crabCfgBaseName = crabCfgBaseName
     self.resultBaseName = resultBaseName
     self.outputBaseName = outputBaseName
     self.needParentFiles = False
     GenericValidationData.__init__(self, valName, alignment, config,
                                    "split", addMandatories = mandatories)
开发者ID:tj710,项目名称:TTEmulator,代码行数:14,代码来源:trackSplittingValidation.py

示例8: __init__

# 需要导入模块: from genericValidation import GenericValidationData [as 别名]
# 或者: from genericValidation.GenericValidationData import __init__ [as 别名]
 def __init__(self, valName, alignment,config):
     defaults = {
         "DMRMethod":"median,rmsNorm",
         "DMRMinimum":"30",
         "DMROptions":"",
         "offlineModuleLevelHistsTransient":"False",
         "offlineModuleLevelProfiles":"False",
         "OfflineTreeBaseDir":"TrackHitFilter",
         "SurfaceShapes":"none"
         }
     mandatories = [ "dataset", "maxevents", "trackcollection" ]
     GenericValidationData.__init__(self, valName, alignment, config,
                                    "offline", addDefaults=defaults,
                                    addMandatories=mandatories)
开发者ID:HeinerTholen,项目名称:cmssw,代码行数:16,代码来源:offlineValidation.py

示例9: __init__

# 需要导入模块: from genericValidation import GenericValidationData [as 别名]
# 或者: from genericValidation.GenericValidationData import __init__ [as 别名]
 def __init__(self, valName, alignment, config,
              configBaseName = "TkAlMcValidate", scriptBaseName = "TkAlMcValidate", crabCfgBaseName = "TkAlMcValidate",
              resultBaseName = "McValidation", outputBaseName = "McValidation"):
     self.configBaseName = configBaseName
     self.scriptBaseName = scriptBaseName
     self.crabCfgBaseName = crabCfgBaseName
     self.resultBaseName = resultBaseName
     self.outputBaseName = outputBaseName
     self.needParentFiles = True
     GenericValidationData.__init__(self, valName, alignment, config,
                                    "mcValidate")
     if self.NJobs > 1:
         raise AllInOneError("Parallel jobs not implemented for the MC validation!\n"
                             "Please set parallelJobs = 1.")
开发者ID:Andrej-CMS,项目名称:cmssw,代码行数:16,代码来源:monteCarloValidation.py

示例10: __init__

# 需要导入模块: from genericValidation import GenericValidationData [as 别名]
# 或者: from genericValidation.GenericValidationData import __init__ [as 别名]
 def __init__(self, valName, alignment, config,
              configBaseName = "TkAlTrackSplitting", scriptBaseName = "TkAlTrackSplitting", crabCfgBaseName = "TkAlTrackSplitting",
              resultBaseName = "TrackSplitting", outputBaseName = "TrackSplitting"):
     mandatories = ["trackcollection"]
     defaults = {"subdetector": "BPIX"}
     self.configBaseName = configBaseName
     self.scriptBaseName = scriptBaseName
     self.crabCfgBaseName = crabCfgBaseName
     self.resultBaseName = resultBaseName
     self.outputBaseName = outputBaseName
     self.needParentFiles = False
     GenericValidationData.__init__(self, valName, alignment, config,
                                    "split", addMandatories = mandatories, addDefaults = defaults)
     validsubdets = self.validsubdets()
     if self.general["subdetector"] not in validsubdets:
         raise AllInOneError("'%s' is not a valid subdetector!\n" % self.general["subdetector"] + "The options are: " + ", ".join(validsubdets))
开发者ID:DesyTau,项目名称:cmssw,代码行数:18,代码来源:trackSplittingValidation.py

示例11: __init__

# 需要导入模块: from genericValidation import GenericValidationData [as 别名]
# 或者: from genericValidation.GenericValidationData import __init__ [as 别名]
 def __init__(self, valName, alignment, config):
     mandatories = [ "dataset", "maxevents" ]
     GenericValidationData.__init__(self, valName, alignment, config,
                                    "mcValidate", addMandatories=mandatories)
开发者ID:12345ieee,项目名称:cmg-cmssw,代码行数:6,代码来源:monteCarloValidation.py

示例12: __init__

# 需要导入模块: from genericValidation import GenericValidationData [as 别名]
# 或者: from genericValidation.GenericValidationData import __init__ [as 别名]
 def __init__(self, valName, alignment, config):
     mandatories = ["trackcollection", "maxevents", "dataset"]
     GenericValidationData.__init__(self, valName, alignment, config,
                                    "split", addMandatories = mandatories)
开发者ID:ajaykumar649,项目名称:GeometryComparitionTools,代码行数:6,代码来源:trackSplittingValidation.py


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