ATLAS Offline Software
Classes | Functions | Variables
python.TrigInDetArtSteps Namespace Reference

Classes

class  TrigBSExtr
 
class  TrigCostStep
 
class  TrigInDetAna
 Additional exec (athena) steps - AOD to TrkNtuple. More...
 
class  TrigInDetCompStep
 
class  TrigInDetCpuCostStep
 
class  TrigInDetRdictStep
 
class  TrigInDetReco
 Exec (athena) steps for Reco_tf. More...
 
class  TrigInDetRecoData
 
class  TrigTZReco
 

Functions

def configure (self, test)
 
def json_chains (slice)
 

Variables

 type
 super(TrigInDetReco, self).__init__(name) More...
 
 max_events
 
 required
 
 threads
 
 concurrent_events
 
 perfmon
 
 timeout
 
 slices
 
 preexec_trig
 
 postinclude_trig
 
 preinclude_trig
 
 release
 
 preexec_reco
 
 preexec_all
 
 postexec_trig
 
 postexec_reco
 
 args
 

Function Documentation

◆ configure()

def python.TrigInDetArtSteps.configure (   self,
  test 
)

Definition at line 66 of file TrigInDetArtSteps.py.

66  def configure(self, test):
67  chains = '['
68  flags = ''
69  for i in self.slices:
70  if (i=='L2muonLRT') :
71  chains += "'HLT_mu20_LRT_idperf_L1MU14FCH',"
72  chains += "'HLT_mu6_LRT_idperf_L1MU5VF',"
73  chains += "'HLT_mu6_idperf_L1MU5VF',"
74  chains += "'HLT_mu24_idperf_L1MU14FCH',"
75  flags += "'Muon',"
76  if (i=='FSLRT') :
77  chains += "'HLT_fslrt0_L1J100',"
78  flags += "'UnconventionalTracking',"
79  if (i=='muon') :
80  chains += "'HLT_mu6_idperf_L1MU5VF',"
81  chains += "'HLT_mu24_idperf_L1MU14FCH',"
82  chains += "'HLT_mu26_ivarperf_L1MU14FCH',"
83  flags += "'Muon',"
84  if (i=='muon-tnp') :
85  chains += "'HLT_mu14_mu14_idtp_idZmumu_L12MU8F',"
86  chains += "'HLT_mu14_mu14_idperf_50invmAB130_L12MU8F',"
87  flags += "'Muon',"
88  if (i=='L2electronLRT') :
89  chains += "'HLT_e20_idperf_loose_lrtloose_L1eEM18L',"
90  chains += "'HLT_e30_idperf_loose_lrtloose_L1eEM26M',"
91  chains += "'HLT_e26_lhtight_ivarloose_e5_idperf_loose_lrtloose_probe_L1eEM26M',"
92  chains += "'HLT_e5_idperf_loose_lrtloose_probe_g25_medium_L1eEM24L',"
93  flags += "'Egamma',"
94  if (i=='electron') :
95  # chains += "'HLT_e5_etcut_L1EM3'," ## need an idperf chain once one is in the menu
96  # chains += "'HLT_e17_lhvloose_nod0_L1EM15VH',"
97  # chains += "'HLT_e26_idperf_gsf_tight_L1EM22VHI',"
98  chains += "'HLT_e26_idperf_loose_L1eEM26M',"
99  chains += "'HLT_e5_idperf_tight_L1eEM5',"
100  flags += "'Egamma',"
101  if (i=='electron-tnp') :
102  chains += "'HLT_e26_lhtight_e14_idperf_tight_probe_50invmAB130_L1eEM26M',"
103  chains += "'HLT_e26_lhtight_e14_idperf_tight_nogsf_probe_50invmAB130_L1eEM26M',"
104  flags += "'Egamma',"
105  if (i=='tau') :
106  chains += "'HLT_tau25_idperf_tracktwoMVA_L1TAU12IM',"
107  chains += "'HLT_tau20_idperf_tracktwoMVA_L1eTAU12',"
108  chains += "'HLT_mu24_ivarmedium_tau25_idperf_tracktwoMVA_probe_03dRAB_L1MU14FCH',"
109  chains += "'HLT_mu24_ivarmedium_tau25_idperf_tracktwoMVA_probe_L1cTAU20M_03dRAB_L1MU14FCH',"
110  flags += "'Tau',"
111  if (i=='tauLRT') :
112  chains += "'HLT_tau25_idperf_tracktwoMVA_L1TAU12IM',"
113  chains += "'HLT_tau25_idperf_tracktwoLLP_L1TAU12IM',"
114  chains += "'HLT_tau25_idperf_trackLRT_L1TAU12IM',"
115  flags += "'Tau',"
116  if (i=='bjet') :
117 # chains += "'HLT_j80_pf_ftf_preselj20b95_L1J20',"
118  chains += "'HLT_j20_roiftf_preselj20_L1RD0_FILLED',"
119  chains += "'HLT_j45_pf_ftf_preselj20_L1jJ40',"
120 # chains += "'HLT_j45_subjesgscIS_ftf_boffperf_split_L1J20',"
121  chains += "'HLT_j45_0eta290_020jvt_boffperf_pf_ftf_L1J20',"
122 # chains += "'HLT_j75_0eta290_020jvt_bdl1r60_3j75_pf_ftf_preselj50b85XX3j50_L14J20',"
123 # chains += "'HLT_j75c_020jvt_j50c_020jvt_j25c_020jvt_j20c_020jvt_SHARED_2j20c_020jvt_bdl1d77_pf_ftf_presel2c20XX2c20b85_L1J45p0ETA21_3J15p0ETA25',"
124  flags += "'Bjet',"
125  if ( i=='fsjet' or i=='fs' or i=='jet' ) :
126  chains += "'HLT_j45_pf_ftf_preselj20_L1jJ40',"
127  flags += "'Jet',"
128  if (i=='beamspot') :
129  chains += "'HLT_beamspot_allTE_trkfast_BeamSpotPEB_L1J15','HLT_beamspot_trkFS_trkfast_BeamSpotPEB_L1J15',"
130  flags += "'Beamspot',"
131  if (i=='minbias') :
132  chains += "'HLT_mb_sptrk_L1RD0_FILLED',"
133  flags += "'MinBias',"
134  self.preexec_trig += "flags.Trigger.triggerMenuSetup='PhysicsP1_pp_lowMu_run3_v1';"
135  if (i=='minbias-pixonly') :
136  chains += "'HLT_mb_pixsptrk_nototpix20_q2_L1TRT_ZDC_A_C_VjTE10',"
137  flags += "'MinBias',"
138  self.preexec_trig += "flags.Trigger.triggerMenuSetup='PhysicsP1_HI_run3_v1';"
139  if (i=='cosmic') :
140  chains += "'HLT_mu4_cosmic_L1MU3V_EMPTY'"
141  flags += "'Muon','Cosmic',"
142  self.preexec_trig+= "flags.Trigger.triggerMenuSetup='Cosmic_run3_v1';"
143  if (i=='bphys') :
144  chains += "'HLT_mu6_idperf_L1MU5VF',"
145  chains += "'HLT_2mu4_bBmumux_BsmumuPhi_L12MU3V',"
146  chains += "'HLT_mu11_mu6_bBmumux_Bidperf_L1MU8VF_2MU5VF',"
147  flags += "'Muon','Bphysics',"
148  if ( flags=='' ) :
149  print( "ERROR: no chains configured" )
150 
151  chains += ']'
152  self.preexec_trig += "flags.Trigger.enabledSignatures=[" + flags + "];flags.Trigger.selectChains="+chains
153 
154  AVERSION = ""
155 
157  if (self.release != 'current'):
158  # get the current atlas base release, and the previous base release
159  import os
160  DVERSION=os.getenv('Athena_VERSION')
161  if (self.release == 'latest'):
162  if ( DVERSION is None ) :
163  AVERSION = "22.0.20"
164  else:
165  AVERSION=str(subprocess.Popen(["getrelease.sh",DVERSION],stdout=subprocess.PIPE).communicate()[0],'utf-8')
166  if AVERSION == "":
167  print( "cannot get last stable release - will use current release" )
168  else:
169  AVERSION = self.release
170 
171  # would use AVERSION is not None, but the return from a shell function with no printout
172  # gets set as an empty string rather than None
173  if AVERSION != "":
174  self.args += ' --asetup "RAWtoALL:Athena,'+AVERSION+'" '
175  print( "remapping athena base release version for offline Reco steps: ", DVERSION, " -> ", AVERSION )
176  else:
177  print( "Using current release for offline Reco steps " )
178 
179  if self.preexec_trig != '' or self.preexec_reco != '' or self.preexec_all != '':
180  self.args += ' --preExec'
181  if self.preexec_trig != '':
182  self.args += ' "RDOtoRDOTrigger:{:s};"'.format(self.preexec_trig)
183  if self.preexec_reco != '':
184  self.args += ' "RAWtoALL:{:s};"'.format(self.preexec_reco)
185  if self.preexec_all != '':
186  self.args += ' "all:{:s};"'.format(self.preexec_all)
187  if self.postexec_trig != '' or self.postexec_reco != '':
188  self.args += ' --postExec'
189  if self.postexec_trig != '':
190  self.args += ' "RDOtoRDOTrigger:{:s};"'.format(self.postexec_trig)
191  if self.postexec_reco != '':
192  self.args += ' "RAWtoALL:{:s};"'.format(self.postexec_reco)
193  if (self.postinclude_trig != ''):
194  self.args += ' --postInclude "{:s}"'.format(self.postinclude_trig)
195  if (self.preinclude_trig != ''):
196  self.args += ' --preInclude "{:s}"'.format(self.preinclude_trig)
197  super(TrigInDetReco, self).configure(test)
198 
199 

◆ json_chains()

def python.TrigInDetArtSteps.json_chains (   slice)

Definition at line 344 of file TrigInDetArtSteps.py.

344 def json_chains( slice ) :
345  json_file = 'TrigInDetValidation/comparitor.json'
346  json_fullpath = FindFile(json_file, os.environ['DATAPATH'].split(os.pathsep), os.R_OK)
347 
348  if not json_fullpath:
349  print('Failed to determine full path for input JSON %s', json_file)
350  return None
351 
352  with open(json_fullpath) as f:
353  try:
354  data = json.load(f)
355  except json.decoder.JSONDecodeError as e:
356  print(f"Failed to load json file {json_fullpath}")
357  raise e
358 
359  chainmap = data[slice]
360 
361  return chainmap['chains']
362 
363 
364 

Variable Documentation

◆ args

python.TrigInDetArtSteps.args

Definition at line 56 of file TrigInDetArtSteps.py.

◆ concurrent_events

python.TrigInDetArtSteps.concurrent_events

Definition at line 33 of file TrigInDetArtSteps.py.

◆ max_events

python.TrigInDetArtSteps.max_events

Definition at line 30 of file TrigInDetArtSteps.py.

◆ perfmon

python.TrigInDetArtSteps.perfmon

Definition at line 34 of file TrigInDetArtSteps.py.

◆ postexec_reco

python.TrigInDetArtSteps.postexec_reco

Definition at line 55 of file TrigInDetArtSteps.py.

◆ postexec_trig

python.TrigInDetArtSteps.postexec_trig

Definition at line 54 of file TrigInDetArtSteps.py.

◆ postinclude_trig

python.TrigInDetArtSteps.postinclude_trig

Definition at line 38 of file TrigInDetArtSteps.py.

◆ preexec_all

python.TrigInDetArtSteps.preexec_all

Definition at line 51 of file TrigInDetArtSteps.py.

◆ preexec_reco

python.TrigInDetArtSteps.preexec_reco

Definition at line 41 of file TrigInDetArtSteps.py.

◆ preexec_trig

python.TrigInDetArtSteps.preexec_trig

Definition at line 37 of file TrigInDetArtSteps.py.

◆ preinclude_trig

python.TrigInDetArtSteps.preinclude_trig

Definition at line 39 of file TrigInDetArtSteps.py.

◆ release

python.TrigInDetArtSteps.release

temporary hack until we get to the bottom of why the tests are really failing

self.release = 'latest'

Definition at line 40 of file TrigInDetArtSteps.py.

◆ required

python.TrigInDetArtSteps.required

Definition at line 31 of file TrigInDetArtSteps.py.

◆ slices

python.TrigInDetArtSteps.slices

Definition at line 36 of file TrigInDetArtSteps.py.

◆ threads

python.TrigInDetArtSteps.threads

Definition at line 32 of file TrigInDetArtSteps.py.

◆ timeout

python.TrigInDetArtSteps.timeout

Definition at line 35 of file TrigInDetArtSteps.py.

◆ type

python.TrigInDetArtSteps.type

super(TrigInDetReco, self).__init__(name)

Definition at line 29 of file TrigInDetArtSteps.py.

vtune_athena.format
format
Definition: vtune_athena.py:14
configure
bool configure(asg::AnaToolHandle< ITrigGlobalEfficiencyCorrectionTool > &tool, ToolHandleArray< IAsgElectronEfficiencyCorrectionTool > &electronEffToolsHandles, ToolHandleArray< IAsgElectronEfficiencyCorrectionTool > &electronSFToolsHandles, ToolHandleArray< CP::IMuonTriggerScaleFactors > &muonToolsHandles, ToolHandleArray< IAsgPhotonEfficiencyCorrectionTool > &photonEffToolsHandles, ToolHandleArray< IAsgPhotonEfficiencyCorrectionTool > &photonSFToolsHandles, const std::string &triggers, const std::map< std::string, std::string > &legsPerTool, unsigned long nToys, bool debug)
Definition: TrigGlobEffCorrValidation.cxx:514
python.Utils.unixtools.FindFile
def FindFile(filename, pathlist, access)
helper -------------------------------------------------------------------—
Definition: unixtools.py:20
print
void print(char *figname, TCanvas *c1)
Definition: TRTCalib_StrawStatusPlots.cxx:25
Trk::open
@ open
Definition: BinningType.h:40
python.TrigInDetArtSteps.json_chains
def json_chains(slice)
Definition: TrigInDetArtSteps.py:344
str
Definition: BTagTrackIpAccessor.cxx:11
Trk::split
@ split
Definition: LayerMaterialProperties.h:38