Ejemplo n.º 1
0
def recEventCleaningTool(name='EventCleaningTool'):
    """
    Arguments:
      name                  - set the name of the master tool.
    """
    # Configure the master tool
    ecTool = EventCleaningTool(name)

    return ecTool
Ejemplo n.º 2
0
def eventCleanLoose_xAODColl(jetalg='AntiKt4EMTopo',
                             sequence=DerivationFrameworkJob):
    from JetSelectorTools.JetSelectorToolsConf import ECUtils__EventCleaningTool as EventCleaningTool
    from JetSelectorTools.JetSelectorToolsConf import EventCleaningTestAlg
    jetcleaningtoolname = "EventCleaningTool_Loose"
    prefix = "DFCommonJets_"
    ecToolLoose = EventCleaningTool('EventCleaningTool_Loose',
                                    CleaningLevel='LooseBad')
    ecToolLoose.JetCleanPrefix = prefix
    ecToolLoose.JetCleaningTool = getJetCleaningTool("LooseBad")
    algCleanLoose = EventCleaningTestAlg('EventCleaningTestAlg_Loose',
                                         EventCleaningTool=ecToolLoose,
                                         JetCollectionName="AntiKt4EMTopoJets",
                                         EventCleanPrefix=prefix)
    sequence += algCleanLoose
Ejemplo n.º 3
0
def eventCleanTight_xAODColl(jetalg='AntiKt4EMTopo',
                             sequence=DerivationFrameworkJob):
    from JetSelectorTools.JetSelectorToolsConf import ECUtils__EventCleaningTool as EventCleaningTool
    from JetSelectorTools.JetSelectorToolsConf import EventCleaningTestAlg
    jetcleaningtoolname = "EventCleaningTool_Tight"
    prefix = "DFCommonJets_"
    ecToolTight = EventCleaningTool('EventCleaningTool_Tight',
                                    CleaningLevel='TightBad')
    ecToolTight.JetCleanPrefix = prefix
    ecToolTight.JetCleaningTool = getJetCleaningTool("TightBad")
    algCleanTight = EventCleaningTestAlg('EventCleaningTestAlg_Tight',
                                         EventCleaningTool=ecToolTight,
                                         JetCollectionName="AntiKt4EMTopoJets",
                                         EventCleanPrefix=prefix,
                                         CleaningLevel="TightBad",
                                         doEvent=False)
    sequence += algCleanTight
Ejemplo n.º 4
0
def eventCleanLooseLLP_xAODColl(jetalg='AntiKt4EMTopo',
                                sequence=DerivationFrameworkJob):
    from JetSelectorTools.JetSelectorToolsConf import ECUtils__EventCleaningTool as EventCleaningTool
    from JetSelectorTools.JetSelectorToolsConf import EventCleaningTestAlg
    jetcleaningtoolname = "EventCleaningTool_LooseLLP"
    prefix = "DFCommonJets_"
    ecToolLooseLLP = EventCleaningTool('EventCleaningTool_LooseLLP',
                                       CleaningLevel='LooseBadLLP')
    ecToolLooseLLP.JetCleanPrefix = prefix
    ecToolLooseLLP.JetCleaningTool = getJetCleaningTool("LooseBadLLP")
    algCleanLooseLLP = EventCleaningTestAlg(
        'EventCleaningTestAlg_LooseLLP',
        EventCleaningTool=ecToolLooseLLP,
        JetCollectionName="AntiKt4EMTopoJets",
        EventCleanPrefix=prefix,
        CleaningLevel="LooseBadLLP",
        doEvent=True)  #Save the event level decoration
    sequence += algCleanLooseLLP
Ejemplo n.º 5
0
def eventCleanVeryLooseLLP_xAODColl(jetalg='AntiKt4EMTopo',
                                    sequence=DerivationFrameworkJob):
    from JetSelectorTools.JetSelectorToolsConf import ECUtils__EventCleaningTool as EventCleaningTool
    from JetSelectorTools.JetSelectorToolsConf import EventCleaningTestAlg
    jetcleaningtoolname = "EventCleaningTool_VeryLooseLLP"
    prefix = "DFCommonJets_"
    #Do not save decorations, which are anyway not listed in AntiKt4EMTopoJetsCPContent.py
    ecToolVeryLooseLLP = EventCleaningTool('EventCleaningTool_VeryLooseLLP',
                                           CleaningLevel='VeryLooseBadLLP')
    ecToolVeryLooseLLP.JetCleanPrefix = prefix
    ecToolVeryLooseLLP.JetCleaningTool = getJetCleaningTool("VeryLooseBadLLP")
    algCleanVeryLooseLLP = EventCleaningTestAlg(
        'EventCleaningTestAlg_VeryLooseLLP',
        EventCleaningTool=ecToolVeryLooseLLP,
        JetCollectionName="AntiKt4EMTopoJets",
        EventCleanPrefix=prefix,
        CleaningLevel="VeryLooseBadLLP",
        doEvent=False)  #Save the event level decoration
    sequence += algCleanVeryLooseLLP