TriggerTestCommon.py 3.82 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#replace the following with 
#include("TrigValTools/leakCheck.py")	
#
# add for memory tracking
# from RecExConfig.RecFlags import rec
# from AthenaCommon.AthenaCommonFlags import athenaCommonFlags as acf

if  ('checkLeak' in dir()):
    print "setting up Leak-Checking and output File"
    import Hephaestus.MemoryTracker as memtrack
    # Try to write the leaks into separate file 
    try: 
        memtrack.depth( 22 )            # sets the total search depth
        memtrack.MemoryTrace.size( 19 ) # size of traces kept in memory
        memtrack.outstream( open("LeakCheck.txt","w") )
    except: 
        print "ERROR setting memory depth"


# flags for command-line input
if  ('chainOrderOption' in dir()):
    if  chainOrderOption == 1:
        orderHLTChains=1
    elif chainOrderOption == -1:
        orderHLTChains=-1
    else:
        orderHLTChains=1
28
29
#see ATR-11913 or more detailed:https://its.cern.ch/jira/browse/ATR-11913?focusedCommentId=852792&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-852792 
    TriggerFlags.MuonSlice.disableSignatures(['HLT_mu0_muoncalib_ds3'])
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
    
    # set direct or inverse order of chain execution
    print "Setting order of trigger chain execution"
    #    from TrigSteering.TrigSteeringConfig import TrigSteer_HLT
    #    TrigSteer_HLT = TrigSteer_HLT("TrigSteer_HLT")
    #    topSequence += TrigSteer_HLT
    topSequence.TrigSteer_HLT.sortChains=orderHLTChains
    print "topSequence.TrigSteer_HLT.sortChains",
    print topSequence.TrigSteer_HLT.sortChains 
    print "Done setting chain execution order"


# flags for fast calo access 
if ('doFastCaloAccess' in dir()):
    
    print "ERROR tests of FastCalo Access no longer needed"
    
    ##### MET slice configuration: ######
    EFMissingET_Fex= Configurable.allConfigurables.get("EFMissingET_Fex")
    EFMissingET_Fex_FEB= Configurable.allConfigurables.get("EFMissingET_Fex_FEB")
    EFMissingET_Fex_noiseSupp= Configurable.allConfigurables.get("EFMissingET_Fex_noiseSupp")
    
    if doFastCaloAccess:
        EFMissingET_Fex.Tools["TheCellTool"].useFullCollection = True
        EFMissingET_Fex_FEB.Tools["TheCellTool"].useFullCollection = True
        EFMissingET_Fex_noiseSupp.Tools["TheCellTool"].useFullCollection = True
    else:
        EFMissingET_Fex.Tools["TheCellTool"].useFullCollection = False
        EFMissingET_Fex_FEB.Tools["TheCellTool"].useFullCollection = False
        EFMissingET_Fex_noiseSupp.Tools["TheCellTool"].useFullCollection = False


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

if not ('AbortOnError' in dir()):
    StatusCodeSvc.AbortOnError=True

#-----------------Monitoring -----------------
69
70
71
72
73
74
75
if not ('checkLeak' in dir()):
    from PerfMonComps import PerfMonFlags
    if not ('doPerfMon' in dir()):
        rec.doPerfMon = True
    if rec.doPerfMon:
        jobproperties.PerfMonFlags.doMonitoring = True
        jobproperties.PerfMonFlags.OutputFile = "ntuple.root"
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92


# set this true to measure memory increase on repeated events
if not ('memFreeze' in dir()):
    memFreeze=False

if memFreeze:
    #---turn off extra PefMon stuff to limit memory growth from monitoring
    if rec.doPerfMon:
        jobproperties.PerfMonFlags.doFastMon = True
        jobproperties.PerfMonFlags.doDetailedMonitoring = False
    #---turn off noise in trigger towers -----
    triggerTowerMaker.ADCNoise=0
#-----------------------------------------------------------


# formatting of log output
93
94
MessageSvc.debugLimit = 10000
MessageSvc.infoLimit  = 1000000
95
96
97
98
99
100
101
102
103
104
105
106
MessageSvc.Format = "% F%48W%S%7W%R%T %0W%M"

#get rid of messages and increase speed
Service ("StoreGateSvc" ).ActivateHistory=False

# disable printing of histograms in finalize
if hasattr(svcMgr,'THistSvc'):
    svcMgr.THistSvc.OutputLevel = WARNING

#from AthenaCommon.AlgSequence import AlgSequence
print AlgSequence
print ServiceMgr