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