Beispiel #1
0
from JetTagTools.JetTagToolsConf import Analysis__LikelihoodTool
myBTagLikelihoodToolBU = Analysis__LikelihoodTool(
    name="myBTagLikelihoodToolBU",
    allLhVariables=lhVariablesForAnalysis,
    useTheseLhVariables=lhVariablesForAnalysis,
    OutputLevel=BTaggingFlags.OutputLevel)
ToolSvc += myBTagLikelihoodToolBU
if BTaggingFlags.OutputLevel < 3:
    print myBTagLikelihoodToolBU

from JetTagTools.JetTagToolsConf import Analysis__SecVtxTag
BUSecVtxTagTool = Analysis__SecVtxTag(
    name="SecVtxTagBU",
    Runmodus=BTaggingFlags.Runmodus,
    VertexFindingMode="BU",
    OutputLevel=BTaggingFlags.OutputLevel,
    #VertexFitterTool  = BTagVxFastFitterTool,
    TrackToVertexTool=BTagTrackToVertexTool,
    LikelihoodTool=myBTagLikelihoodToolBU,
    useVariables=lhVariablesForAnalysis)
# make sure to create all histos when in ref mode
if BTaggingFlags.Runmodus == 'reference':
    BUSecVtxTagTool.useVariables = [
        "vtxmassBU", "vtxmultBU", "vtxdistBU", "vtxenergyFractionBU",
        "vtxNGTVtxBU"
    ]

ToolSvc += BUSecVtxTagTool
if BTaggingFlags.OutputLevel < 3:
    print BUSecVtxTagTool
from JetTagTools.JetTagToolsConf import Analysis__LikelihoodTool
myBTagLikelihoodToolTD = Analysis__LikelihoodTool(
    name="myBTagLikelihoodToolTD",
    allLhVariables=lhVariablesForAnalysis,
    useTheseLhVariables=lhVariablesForAnalysis,
    OutputLevel=BTaggingFlags.OutputLevel)
ToolSvc += myBTagLikelihoodToolTD
if BTaggingFlags.OutputLevel < 3:
    print myBTagLikelihoodToolTD

from JetTagTools.JetTagToolsConf import Analysis__SecVtxTag
TDSecVtxTagTool = Analysis__SecVtxTag(
    name="SecVtxTagTD",
    Runmodus=BTaggingFlags.Runmodus,
    VertexFindingMode="TD",
    OutputLevel=BTaggingFlags.OutputLevel,
    #VertexFitterTool  = BTagVxFastFitterTool,
    TrackToVertexTool=BTagTrackToVertexTool,
    LikelihoodTool=myBTagLikelihoodToolTD,
    useVariables=lhVariablesForAnalysis)
# make sure to create all histos when in ref mode
if BTaggingFlags.Runmodus == 'reference':
    TDSecVtxTagTool.useVariables = [
        "vtxprobTD", "vtxmassTD", "vtxmultTD", "vtxdistTD",
        "vtxenergyFractionTD"
    ]

ToolSvc += TDSecVtxTagTool
if BTaggingFlags.OutputLevel < 3:
    print TDSecVtxTagTool
myBTagLikelihoodToolTD = Analysis__LikelihoodTool(
    name="myBTagLikelihoodToolTD",
    allLhVariables=lhVariablesForAnalysis,
    useTheseLhVariables=lhVariablesForAnalysis,
    OutputLevel=BTaggingFlags.OutputLevel,
)
ToolSvc += myBTagLikelihoodToolTD
if BTaggingFlags.OutputLevel < 3:
    print myBTagLikelihoodToolTD

from JetTagTools.JetTagToolsConf import Analysis__SecVtxTag

TDSecVtxTagTool = Analysis__SecVtxTag(
    name="SecVtxTagTD",
    Runmodus=BTaggingFlags.Runmodus,
    VertexFindingMode="TD",
    OutputLevel=BTaggingFlags.OutputLevel,
    # VertexFitterTool  = BTagVxFastFitterTool,
    TrackToVertexTool=BTagTrackToVertexTool,
    LikelihoodTool=myBTagLikelihoodToolTD,
    useVariables=lhVariablesForAnalysis,
)
# make sure to create all histos when in ref mode
if BTaggingFlags.Runmodus == "reference":
    TDSecVtxTagTool.useVariables = ["vtxprobTD", "vtxmassTD", "vtxmultTD", "vtxdistTD", "vtxenergyFractionTD"]

ToolSvc += TDSecVtxTagTool
if BTaggingFlags.OutputLevel < 3:
    print TDSecVtxTagTool
from JetTagTools.JetTagToolsConf import Analysis__LikelihoodTool
myBTagLikelihoodToolBU = Analysis__LikelihoodTool(
                                                  name                = "myBTagLikelihoodToolBU",
                                                  allLhVariables      = lhVariablesForAnalysis,
                                                  useTheseLhVariables = lhVariablesForAnalysis,
                                                  OutputLevel = BTaggingFlags.OutputLevel
                                                 )
ToolSvc += myBTagLikelihoodToolBU
if BTaggingFlags.OutputLevel < 3:
  print myBTagLikelihoodToolBU

from JetTagTools.JetTagToolsConf import Analysis__SecVtxTag
BUSecVtxTagTool = Analysis__SecVtxTag( 
                                      name = "SecVtxTagBU",
                                      Runmodus = BTaggingFlags.Runmodus,
                                      VertexFindingMode = "BU",
                                      OutputLevel     = BTaggingFlags.OutputLevel,
                                      #VertexFitterTool  = BTagVxFastFitterTool,
                                      TrackToVertexTool = BTagTrackToVertexTool,
                                      LikelihoodTool    = myBTagLikelihoodToolBU,
                                      useVariables      = lhVariablesForAnalysis
                                     )
# make sure to create all histos when in ref mode
if BTaggingFlags.Runmodus == 'reference':
  BUSecVtxTagTool.useVariables = [ "vtxmassBU", "vtxmultBU", "vtxdistBU", "vtxenergyFractionBU", "vtxNGTVtxBU" ]

ToolSvc += BUSecVtxTagTool
if BTaggingFlags.OutputLevel < 3:
  print BUSecVtxTagTool