Skip to content
Snippets Groups Projects
Commit f441869f authored by Julie Kirk's avatar Julie Kirk Committed by Johannes Elmsheuser
Browse files

TrigInDetValidation: remove LRT specific flags and add more general ones

parent 11f37e2f
No related branches found
No related tags found
No related merge requests found
Showing
with 40 additions and 26 deletions
......@@ -74,10 +74,7 @@ class TrigInDetReco(ExecStep):
def configure(self, test):
chains = '['
flags = ''
lrt = False
for i in self.slices:
if ('LRT' in i):
lrt = True
if (i=='L2muonLRT') :
chains += "'HLT_mu6_LRT_idperf_l2lrt_L1MU6',"
chains += "'HLT_mu6_idperf_L1MU6',"
......@@ -110,15 +107,15 @@ class TrigInDetReco(ExecStep):
if (i=='minbias') :
chains += "'HLT_mb_sptrk_L1RD0_FILLED',"
flags += "doMinBiasSlice=True;setMenu='LS2_v1';"
if (i=='cosmic') :
chains += "'HLT_mu4_cosmic_L1MU4_EMPTY'"
flags += "doMuonSlice=True;setMenu='Cosmic_run3_v1';"
if ( flags=='' ) :
print( "ERROR: no chains configured" )
chains += ']'
self.preexec_trig = 'doEmptyMenu=True;'+flags+'selectChains='+chains
if (lrt):
self.preexec_all += ';from InDetRecExample.InDetJobProperties import InDetFlags; InDetFlags.doR3LargeD0.set_Value_and_Lock(True);InDetFlags.storeSeparateLargeD0Container.set_Value_and_Lock(False)'
if (self.release == 'current'):
print( "Using current release for offline Reco steps " )
......@@ -145,9 +142,9 @@ class TrigInDetReco(ExecStep):
if (self.postexec_trig != ' '):
self.args += ' --postExec "RDOtoRDOTrigger:{:s};" "RAWtoESD:{:s};" '.format(self.postexec_trig, self.postexec_reco)
if (self.postinclude_trig != ''):
self.args += ' --postInclude "RDOtoRDOTrigger:{:s}" '.format(self.postinclude_trig)
self.args += ' --postInclude "{:s}" '.format(self.postinclude_trig)
if (self.preinclude_trig != ''):
self.args += ' --preInclude "RDOtoRDOTrigger:{:s}" '.format(self.preinclude_trig)
self.args += ' --preInclude "{:s}" '.format(self.preinclude_trig)
super(TrigInDetReco, self).configure(test)
......@@ -156,7 +153,7 @@ class TrigInDetReco(ExecStep):
##################################################
class TrigInDetAna(ExecStep):
def __init__(self, name='TrigInDetAna', extra=None):
def __init__(self, name='TrigInDetAna', extraArgs=None):
ExecStep.__init__(self, name )
self.type = 'athena'
self.job_options = 'TrigInDetValidation/TrigInDetValidation_AODtoTrkNtuple.py'
......@@ -167,8 +164,9 @@ class TrigInDetAna(ExecStep):
self.input = ''
self.perfmon=False
self.imf=False
if extra is not None:
self.args = extra
if extraArgs is not None:
self.args = extraArgs
##################################################
# Additional exec (athena) steps - RDO to CostMonitoring
......
from AthenaCommon.Logging import logging
log = logging.getLogger("TrigInDetValidation")
log.info( "preinclude: TIDAlrt_preinclude.py" )
from InDetRecExample.InDetJobProperties import InDetFlags
InDetFlags.doR3LargeD0.set_Value_and_Lock(True)
InDetFlags.storeSeparateLargeD0Container.set_Value_and_Lock(False)
......@@ -108,11 +108,9 @@ test = Test.Test()
test.art_type = Art_type
if 'Extra' not in locals() :
Extra = None
aod_to_ntup = TrigInDetAna(extra=Extra)
if 'ExtraAna' not in locals() :
ExtraAna = None
aod_to_ntup = TrigInDetAna(extraArgs = ExtraAna)
rdo_to_cost = TrigCostStep()
......
......@@ -33,7 +33,7 @@ Slices = ['bjet']
Events = 4000
Threads = 8
Slots = 8
postinclude_file = 'dopps.py'
postinclude_file = 'RDOtoRDOTrigger:dopps.py'
Input = 'ttbar_ID' # defined in TrigValTools/share/TrigValInputs.json
Jobs = [ ( "Truth", " TIDAdata-run3.dat -o data-hists.root" ),
......
......@@ -34,7 +34,7 @@ Slots = 8
Input = 'Zee_pu40' # defined in TrigValTools/share/TrigValInputs.json
Release = "current"
GridFiles = True
postinclude_file = "TrigInDetValidation/TIDAcloneremoval.py"
postinclude_file = "RDOtoRDOTrigger:TrigInDetValidation/TIDAcloneremoval.py"
Jobs = [ ( "Truth", " TIDAdata-run3.dat -o data-hists.root -p 11" ),
( "Offline", " TIDAdata-run3-offline.dat -r Offline -o data-hists-offline.root" ) ]
......
......@@ -32,7 +32,7 @@ Threads = 1
Slots = 1 # what about the mt: 4 art directive ? nfiles: 3 ?
Input = 'ttbar' # defined in TrigValTools/share/TrigValInputs.json
postinclude_file = 'TrigInDetValidation/TIDAml2_extensions.py'
postinclude_file = 'RDOtoRDOTrigger:TrigInDetValidation/TIDAml2_extensions.py'
Jobs = [ ( "Truth", " TIDAdata-run3.dat -o data-hists.root" ),
( "Offline", " TIDAdata-run3-offline.dat -r Offline -o data-hists-offline.root" ),
......
......@@ -32,7 +32,7 @@ Threads = 1
Slots = 1 # what about the mt: 4 art directive ? nfiles: 3 ?
Input = 'ttbar' # defined in TrigValTools/share/TrigValInputs.json
postinclude_file = 'TrigInDetValidation/TIDAml_extensions.py'
postinclude_file = 'RDOtoRDOTrigger:TrigInDetValidation/TIDAml_extensions.py'
Jobs = [ ( "Truth", " TIDAdata-run3.dat -o data-hists.root" ),
( "Offline", " TIDAdata-run3-offline.dat -r Offline -o data-hists-offline.root" ),
......
......@@ -33,7 +33,7 @@ Slices = ['fsjet']
Events = 2000
Threads = 8
Slots = 8
postinclude_file = 'dopps.py'
postinclude_file = 'RDOtoRDOTrigger:dopps.py'
Input = 'ttbar' # defined in TrigValTools/share/TrigValInputs.json
Jobs = [ ( "Truth", " TIDAdata-run3.dat -o data-hists.root" ),
......
......@@ -32,7 +32,7 @@ Threads = 8
Slots = 8
Input = 'ttbar' # defined in TrigValTools/share/TrigValInputs.json
preinclude_file = "TrigInDetValidation/TIDAvtx_preinclude.py"
preinclude_file = "RDOtoRDOTrigger:TrigInDetValidation/TIDAvtx_preinclude.py"
Jobs = [ ( "Truth", " TIDAdata-run3.dat -o data-hists.root" ),
......
......@@ -33,7 +33,9 @@ Threads = 8
Slots = 8
Input = 'RHadron' # defined in TrigValTools/share/TrigValInputs.json
GridFiles = False
Extra = ' -c "LRT=True" '
ExtraAna = ' -c LRT="True" '
preinclude_file = 'all:TrigInDetValidation/TIDAlrt_preinclude.py'
Jobs = [ ( "Truth", " TIDAdata-run3-lrt.dat -o data-hists.root ", "Test_bin_lrt.dat" ),
( "Offline", " TIDAdata-run3-offline-lrt.dat -r Offline -o data-hists-offline.root", "Test_bin_lrt.dat" ) ]
......
......@@ -31,7 +31,7 @@ Events = 8000
Threads = 8
Slots = 8
Input = 'minbias' # defined in TrigValTools/share/TrigValInputs.json
Extra = " -c 'ptmin=400' "
ExtraAna = " -c 'ptmin=400' "
Jobs = [ ( "Truth", " TIDAdata-run3-minbias.dat -o data-hists.root" ),
( "Offline", " TIDAdata-run3-offline.dat -r Offline -o data-hists-offline.root" ) ]
......
......@@ -33,7 +33,11 @@ Threads = 8
Slots = 8
Input = 'StauStau' # defined in TrigValTools/share/TrigValInputs.json
GridFiles = False
Extra = ' -c "LRT=True" '
ExtraAna = ' -c LRT="True" '
preinclude_file = 'all:TrigInDetValidation/TIDAlrt_preinclude.py'
Jobs = [ ( "Truth", " TIDAdata-run3-lrt.dat -o data-hists.root -p 13", "Test_bin_lrt.dat" ),
( "Offline", " TIDAdata-run3-offline-lrt.dat -r Offline -o data-hists-offline.root", "Test_bin_lrt.dat" ) ]
......
......@@ -28,13 +28,14 @@
Slices = ['L2muonLRT']
Extra = ' -c "LRT=True" '
Events = 8000
Threads = 8
Slots = 8
Input = 'Zmumu_pu40' # defined in TrigValTools/share/TrigValInputs.json
GridFiles = True
ExtraAna = ' -c LRT="True" '
preinclude_file = 'all:TrigInDetValidation/TIDAlrt_preinclude.py'
Jobs = [ ( "Truth", " TIDAdata-run3-lrt.dat -o data-hists.root -p 13", "Test_bin_lrt.dat" ),
( "Offline", " TIDAdata-run3-offline-lrt.dat -r Offline -o data-hists-offline.root", "Test_bin_lrt.dat" ) ]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment