ATLAS Offline Software
Loading...
Searching...
No Matches
exerciser.ConditionsTests Class Reference
Inheritance diagram for exerciser.ConditionsTests:
Collaboration diagram for exerciser.ConditionsTests:

Public Types

typedef HLT::TypeInformation::for_each_type_c< typenameEDMLIST::map, my_functor, my_result<>, my_arg< HLT::TypeInformation::get_cont, CONTAINER > >::type result

Public Member Functions

 __init__ (self, chain_label, n_sgnl=4, n_bkgd=4, bkgd_etmax=20000., label_ind=0)
 make_helper_tool (self)
 logfile_name (self, chain_name)
 make_event_generator (self)
 make_chain_dict (self)

Public Attributes

 chain_label = chain_label
 label_ind = label_ind
 n_sgnl = n_sgnl
 n_bkgd = n_bkgd
 bkgd_etmax = bkgd_etmax
str chain_name = 'HLT_j80_L1J20'

Detailed Description

Definition at line 190 of file exerciser.py.

Member Typedef Documentation

◆ result

Definition at line 90 of file EDM_MasterSearch.h.

Constructor & Destructor Documentation

◆ __init__()

exerciser.ConditionsTests.__init__ ( self,
chain_label,
n_sgnl = 4,
n_bkgd = 4,
bkgd_etmax = 20000.,
label_ind = 0 )

Definition at line 192 of file exerciser.py.

198 ):
199 CombinationsTests.__init__(self, n_sgnl, n_bkgd, bkgd_etmax)
200 self.chain_name = 'HLT_ConditionTests'
201 self.chain_label = chain_label
202 self.label_ind = label_ind
203

Member Function Documentation

◆ logfile_name()

exerciser.ConditionsTests.logfile_name ( self,
chain_name )

Reimplemented from exerciser.CombinationsTests.

Definition at line 212 of file exerciser.py.

212 def logfile_name(self, chain_name):
213 return '%s_s%d_b%d_l%d' % (chain_name,
214 self.n_sgnl,
215 self.n_bkgd,
216 self.label_ind)
217
218

◆ make_chain_dict()

exerciser.CombinationsTests.make_chain_dict ( self)
inherited
ChainDict to excercise modifications to CombinationsHelperTool

Definition at line 82 of file exerciser.py.

82 def make_chain_dict(self):
83 """ChainDict to excercise modifications to CombinationsHelperTool"""
84
85 chainNameDecoder = DictFromChainName.DictFromChainName()
86
87 #make a chain dict to be perverted:
88 # its hypoScenario will be overwritten by the value
89 # 'combinationsTest'. This will result in a hardwired chain label
90 # being used.
91 chain_dict = chainNameDecoder.getChainDict(self.chain_name)
92 assert len(chain_dict['chainParts']) == 1
93
94 chain_dict['chainParts'][0]['hypoScenario'] = 'combinationsTest'
95
96 return chain_dict
97

◆ make_event_generator()

exerciser.ConditionsTests.make_event_generator ( self)

Reimplemented from exerciser.CombinationsTests.

Definition at line 219 of file exerciser.py.

219 def make_event_generator(self):
220 generator = SimpleHypoJetVectorGenerator()
221
222 generator.ets = [80000. + 1000.*i for i in range(self.n_sgnl)]
223 generator.etas = [0.5] * self.n_sgnl
224
225
226 # alternate eta signs to get high mass
227 factor = 1
228 for i in range(len(generator.etas)):
229 generator.etas[i] *= factor
230 factor *= -1
231
232 generator.n_bkgd = self.n_bkgd
233 generator.bkgd_etmax = self.bkgd_etmax
234
235 return generator
236
237

◆ make_helper_tool()

exerciser.ConditionsTests.make_helper_tool ( self)

Reimplemented from exerciser.CombinationsTests.

Definition at line 204 of file exerciser.py.

204 def make_helper_tool(self):
205
206 toolSetter = ConditionsToolSetter(self.chain_name)
207 return trigJetHypoToolHelperFromDict_(self.chain_label,
208 self.chain_name,
209 toolSetter=toolSetter)
210
211

Member Data Documentation

◆ bkgd_etmax

exerciser.CombinationsTests.bkgd_etmax = bkgd_etmax
inherited

Definition at line 79 of file exerciser.py.

◆ chain_label

exerciser.ConditionsTests.chain_label = chain_label

Definition at line 201 of file exerciser.py.

◆ chain_name

str exerciser.CombinationsTests.chain_name = 'HLT_j80_L1J20'
inherited

Definition at line 80 of file exerciser.py.

◆ label_ind

exerciser.ConditionsTests.label_ind = label_ind

Definition at line 202 of file exerciser.py.

◆ n_bkgd

exerciser.CombinationsTests.n_bkgd = n_bkgd
inherited

Definition at line 78 of file exerciser.py.

◆ n_sgnl

exerciser.CombinationsTests.n_sgnl = n_sgnl
inherited

Definition at line 77 of file exerciser.py.


The documentation for this class was generated from the following file: