Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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 67 of file TrigInDetArtSteps.py.

67  def configure(self, test):
68  from TrigInDetValidation.Chains import Chains
69  tc = Chains()
70  self.preexec_trig += tc.get_compiled_flag_str(self.slices)
71 
72  AVERSION = ""
73 
75  if (self.release != 'current'):
76  # get the current atlas base release, and the previous base release
77  import os
78  DVERSION=os.getenv('Athena_VERSION')
79  if (self.release == 'latest'):
80  if ( DVERSION is None ) :
81  AVERSION = "22.0.20"
82  else:
83  AVERSION=str(subprocess.Popen(["getrelease.sh",DVERSION],stdout=subprocess.PIPE).communicate()[0],'utf-8')
84  if AVERSION == "":
85  print( "cannot get last stable release - will use current release" )
86  else:
87  AVERSION = self.release
88 
89  # would use AVERSION is not None, but the return from a shell function with no printout
90  # gets set as an empty string rather than None
91  if AVERSION != "":
92  self.args += ' --asetup "RAWtoALL:Athena,'+AVERSION+'" '
93  print( "remapping athena base release version for offline Reco steps: ", DVERSION, " -> ", AVERSION )
94  else:
95  print( "Using current release for offline Reco steps " )
96 
97  if self.preexec_trig != '' or self.preexec_reco != '' or self.preexec_all != '':
98  self.args += ' --preExec'
99  if self.preexec_trig != '':
100  self.args += ' "RDOtoRDOTrigger:{:s};"'.format(self.preexec_trig)
101  if self.preexec_reco != '':
102  self.args += ' "RAWtoALL:{:s};"'.format(self.preexec_reco)
103  if self.preexec_all != '':
104  self.args += ' "all:{:s};"'.format(self.preexec_all)
105  if self.postexec_trig != '' or self.postexec_reco != '':
106  self.args += ' --postExec'
107  if self.postexec_trig != '':
108  self.args += ' "RDOtoRDOTrigger:{:s};"'.format(self.postexec_trig)
109  if self.postexec_reco != '':
110  self.args += ' "RAWtoALL:{:s};"'.format(self.postexec_reco)
111  if (self.postinclude_trig != ''):
112  self.args += ' --postInclude "{:s}"'.format(self.postinclude_trig)
113  if (self.preinclude_trig != ''):
114  self.args += ' --preInclude "{:s}"'.format(self.preinclude_trig)
115  super(TrigInDetReco, self).configure(test)
116 
117 

◆ json_chains()

def python.TrigInDetArtSteps.json_chains (   slice)

Definition at line 262 of file TrigInDetArtSteps.py.

262 def json_chains( slice ) :
263  json_file = 'TrigInDetValidation/comparitor.json'
264  json_fullpath = FindFile(json_file, os.environ['DATAPATH'].split(os.pathsep), os.R_OK)
265 
266  if not json_fullpath:
267  print('Failed to determine full path for input JSON %s', json_file)
268  return None
269 
270  with open(json_fullpath) as f:
271  try:
272  data = json.load(f)
273  except json.decoder.JSONDecodeError as e:
274  print(f"Failed to load json file {json_fullpath}")
275  raise e
276 
277  chainmap = data[slice]
278 
279  return chainmap['chains']
280 
281 
282 

Variable Documentation

◆ args

python.TrigInDetArtSteps.args

Definition at line 57 of file TrigInDetArtSteps.py.

◆ concurrent_events

python.TrigInDetArtSteps.concurrent_events

Definition at line 34 of file TrigInDetArtSteps.py.

◆ max_events

python.TrigInDetArtSteps.max_events

Definition at line 31 of file TrigInDetArtSteps.py.

◆ perfmon

python.TrigInDetArtSteps.perfmon

Definition at line 35 of file TrigInDetArtSteps.py.

◆ postexec_reco

python.TrigInDetArtSteps.postexec_reco

Definition at line 56 of file TrigInDetArtSteps.py.

◆ postexec_trig

python.TrigInDetArtSteps.postexec_trig

Definition at line 55 of file TrigInDetArtSteps.py.

◆ postinclude_trig

python.TrigInDetArtSteps.postinclude_trig

Definition at line 39 of file TrigInDetArtSteps.py.

◆ preexec_all

python.TrigInDetArtSteps.preexec_all

Definition at line 52 of file TrigInDetArtSteps.py.

◆ preexec_reco

python.TrigInDetArtSteps.preexec_reco

Definition at line 42 of file TrigInDetArtSteps.py.

◆ preexec_trig

python.TrigInDetArtSteps.preexec_trig

Definition at line 38 of file TrigInDetArtSteps.py.

◆ preinclude_trig

python.TrigInDetArtSteps.preinclude_trig

Definition at line 40 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 41 of file TrigInDetArtSteps.py.

◆ required

python.TrigInDetArtSteps.required

Definition at line 32 of file TrigInDetArtSteps.py.

◆ slices

python.TrigInDetArtSteps.slices

Definition at line 37 of file TrigInDetArtSteps.py.

◆ threads

python.TrigInDetArtSteps.threads

Definition at line 33 of file TrigInDetArtSteps.py.

◆ timeout

python.TrigInDetArtSteps.timeout

Definition at line 36 of file TrigInDetArtSteps.py.

◆ type

python.TrigInDetArtSteps.type

super(TrigInDetReco, self).__init__(name)

Definition at line 30 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:262
str
Definition: BTagTrackIpAccessor.cxx:11
Trk::split
@ split
Definition: LayerMaterialProperties.h:38