Esempio n. 1
0
def SetupEGammaStreamFilters(seq):
    acceptAlgs=[]
    cutVersion=D2PDFlags.WriteDAOD_SUSYEGammaStream.CutVersion
    if cutVersion=='newest':
        #photon:
        if not hasattr(seq,"PhotonSelectorSUSY"): seq += PhotonSelectorSUSY
        #el+mu (must execute before other selectors because of elementlink nesting (see above))
        if not hasattr(seq,"MuidMuonSelectorSUSY_forEMu"): seq += MuidMuonSelectorSUSY_forEMu
        if not hasattr(seq,"StacoMuonSelectorSUSY_forEMu"): seq += StacoMuonSelectorSUSY_forEMu
        if not hasattr(seq,"ElectronSelectorSUSY_forEMu"): seq += ElectronSelectorSUSY_forEMu
        if not hasattr(seq,"ElectronPlusMuonSelectorSUSY"): seq += ElectronPlusMuonSelectorSUSY
        seq += ElectronSelectorSUSY
        seq.ElectronSelectorSUSY.etMin=12.0*Units.GeV
        #di-electrons
        seq += DiElectronSelectorSUSY
        seq.ElectronSelectorSUSY.OutputLevel=D2PDFlags.VerboseLevel()
        seq.DiElectronSelectorSUSY.OutputLevel=D2PDFlags.VerboseLevel()
        seq.ElectronPlusMuonSelectorSUSY.OutputLevel=D2PDFlags.VerboseLevel()
        seq.PhotonSelectorSUSY.OutputLevel=D2PDFlags.VerboseLevel()
        acceptAlgs=["ElectronSelectorSUSY","DiElectronSelectorSUSY","PhotonSelectorSUSY","ElectronPlusMuonSelectorSUSY"]
    elif cutVersion=='OldV1':
        acceptAlgs = GetOldV1Setup( seq )
    else:
        raise RuntimeError("Unknown cut version '%s'"%cutVersion)

    return acceptAlgs
Esempio n. 2
0
def SetupJetsStreamFilters(seq):
    acceptAlgs=[]
    cutVersion=D2PDFlags.WriteDAOD_SUSYJetsStream.CutVersion
    if cutVersion=='newest':
        seq += JetSelectorSUSY
        seq += DiJetSelectorSUSY
        seq += METSelectorSUSY
        #seq += FourJetSelectorSUSY         <--not used yet
        #seq.FourJetSelectorSUSY.OutputLevel=D2PDFlags.VerboseLevel()
        seq.JetSelectorSUSY.OutputLevel=D2PDFlags.VerboseLevel()
        seq.DiJetSelectorSUSY.OutputLevel=D2PDFlags.VerboseLevel()
        seq.METSelectorSUSY.OutputLevel=D2PDFlags.VerboseLevel()
        acceptAlgs=["JetSelectorSUSY","DiJetSelectorSUSY","METSelectorSUSY"]#,"FourJetSelectorSUSY"
    elif cutVersion=='OldV1':
        acceptAlgs = GetOldV1Setup( seq )
    else:
        raise RuntimeError("Unknown cut version '%s'"%cutVersion)
    return acceptAlgs