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
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
90
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
void print(char *figname, TCanvas *c1)
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)