Skip to content
Snippets Groups Projects
Forked from atlas / athena
141470 commits behind the upstream repository.
  • Patrick Karl Czodrowski's avatar
    c97f3f30
    tons of updates and fixes see changelog for details (TrigAnalysisTest-00-04-05) · c97f3f30
    Patrick Karl Czodrowski authored
        * Add PhysValMonitoring RTT Test
        * TrigAnalysisTest-00-04-xy
    
    2015-05-04/05/06/7 Patrick Czodrowski <czodrows@cern.ch>
        * fix root comp for AthenaTrigESD_HLTMonitoring
        * add root-comp, chaindump, TE dump for all other tests that have expert-mon files
        * fix testAthenaTrigRDOtoBS.py (reduce output level and remove std. input, add menu selection)
        * add testAthenaTrigRDOtoBS_MC test
        * update HIST and REG reference path to ATN conf file to new unified structure
        * rm the edmcheck diffPoolFiles.py
        * Add PhysValMonitoring ATN Test (RTT to be configured)
        * Add MC_standalone test to run BS from the AthenaTrigRDOtoBS_MC test (try with rerunLVL1=1 for now)
        * Add diverse ATN-suits to enable parallel running - thanks to Alex for the support to enable the testing
        * Reduce diverse ATN-suits for now until the integrated ATN test is fixed to accept more than x
        * finally properly remove/prevent some of the std tests in RTT if not appropiate
        * TrigAnalysisTest-00-04-05
    
    2015-04-04 Patrick Czodrowski <czodrows@cern.ch>
        * stop chainDump from running/failing in TDT and TrigEDM Checkers
        * add costum PerfMonDump for the no/Split Reco_tfs
    ...
    (Long ChangeLog diff - truncated)
    c97f3f30
    History
    tons of updates and fixes see changelog for details (TrigAnalysisTest-00-04-05)
    Patrick Karl Czodrowski authored
        * Add PhysValMonitoring RTT Test
        * TrigAnalysisTest-00-04-xy
    
    2015-05-04/05/06/7 Patrick Czodrowski <czodrows@cern.ch>
        * fix root comp for AthenaTrigESD_HLTMonitoring
        * add root-comp, chaindump, TE dump for all other tests that have expert-mon files
        * fix testAthenaTrigRDOtoBS.py (reduce output level and remove std. input, add menu selection)
        * add testAthenaTrigRDOtoBS_MC test
        * update HIST and REG reference path to ATN conf file to new unified structure
        * rm the edmcheck diffPoolFiles.py
        * Add PhysValMonitoring ATN Test (RTT to be configured)
        * Add MC_standalone test to run BS from the AthenaTrigRDOtoBS_MC test (try with rerunLVL1=1 for now)
        * Add diverse ATN-suits to enable parallel running - thanks to Alex for the support to enable the testing
        * Reduce diverse ATN-suits for now until the integrated ATN test is fixed to accept more than x
        * finally properly remove/prevent some of the std tests in RTT if not appropiate
        * TrigAnalysisTest-00-04-05
    
    2015-04-04 Patrick Czodrowski <czodrows@cern.ch>
        * stop chainDump from running/failing in TDT and TrigEDM Checkers
        * add costum PerfMonDump for the no/Split Reco_tfs
    ...
    (Long ChangeLog diff - truncated)
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
testAthenaTrigAOD_TrigEDMCheck.py 3.31 KiB

#PoolAODInput=['/afs/cern.ch/atlas/project/trigger/pesa-sw/validation/data130003002/AOD.015446._00012.pool.root.2']

from RecExConfig.RecFlags import rec
from AthenaCommon.AthenaCommonFlags import athenaCommonFlags as acf

rec.readAOD=True

# different input files for ATN and RTT tests
if not acf.EvtMax.is_locked():
    acf.EvtMax=10
if not ('OutputLevel' in dir()):
    rec.OutputLevel=INFO

# look for backup files if RDOtoAOD fails
#if not ('fileList' in dir()):
#added for RTT-chainstore conmpatibility
if not ('fileList' in dir()) and not ('RunningRTT' in dir()):
    #default = "../AthenaTrigRDOtoAOD/AOD.pool.root"
    #summary = "../AthenaTrigRDOtoAOD/summary.log"
    #just for now take the DC14 as default input
    #
    default = "../AthenaTrigRDOtoAOD/AOD.pool.root"
    summary = "../AthenaTrigRDOtoAOD/summary.log"
    RDOtoAODokay = False
    from os.path import exists
    if exists(summary):
        fsummary = open(summary)
        if  "ATHENA_BAD_EXIT" in fsummary.read():
            print "WARNING: RDOtoAOD step bad, searching alternatives"
        else:
           if exists(default):
               print "INFO: ouptut from RDOtoAOD step exists: ",default 
               RDOtoAODokay = True
    if RDOtoAODokay:
        fileList = [default]
    else:
        print "WARNING: default AOD file doesn't exist or is bad, searching alternatives"
        import glob
        pattern="../AthenaTrig*toESDAOD*/AOD*.pool.root"
        files=glob.glob(pattern)
        if (len(files)==0):
            log.fatal(" ERROR FATAL No input AOD file could be found matching '" + pattern + "'")
            exit(-1)
        elif (len(files)>1):
            log.warning("Multiple input AOD files found, taking last one: " + files[-1])
            print "All matches to pattern '" + pattern + "': ", files
            fileList=[files[-1]]
        else:
            log.info("Using input AOD file " + files[0])
            fileList=files


#added for RTT-chainstore conmpatibility
if not ('RunningRTT' in dir()):
    acf.FilesInput=fileList
#acf.FilesInput=fileList




###############################
rec.doCBNT=False


#doTrigger=False
rec.doTrigger=False
from RecExConfig.RecAlgsFlags  import recAlgs
recAlgs.doTrigger=False


rec.doWriteAOD=False
rec.doWriteESD=False
rec.doWriteTAG=False
rec.doAOD=False
rec.doDPD=False 
rec.doESD=False 
doTAG=False

#rec.doTruth=True


#-----------------------------------------------------------
include("RecExCommon/RecExCommon_topOptions.py")
#-----------------------------------------------------------

# abort when there is an unchecked status code
StatusCodeSvc.AbortOnError=False


####NOTE this still needs to updated for the DC14 menu!!! check what the TrigEDMChecker supports!!! rm L2 etc .. 
from TrigValAlgs.TrigValAlgsConfig import TrigEDMChecker
TrigEDMChecker = TrigEDMChecker("TrigEDMChecker")

from TrigDecisionTool.TrigDecisionToolConf import Trig__TrigDecisionTool
ToolSvc += Trig__TrigDecisionTool( "TrigDecisionTool" )

from TrigEDMConfig.TriggerEDM import EDMLibraries
ToolSvc.TrigDecisionTool.Navigation.Dlls = EDMLibraries

from AthenaCommon.AlgSequence import AlgSequence
topSequence = AlgSequence()
topSequence += TrigEDMChecker
TrigEDMChecker.doDumpAll = True



include("TriggerTest/TriggerTestCommon.py")


# get the name auditor
#theAuditorSvc = AuditorSvc()
#theAuditorSvc.Auditors  += [ "NameAuditor"]