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

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, n_sgnl=4, n_bkgd=4, bkgd_etmax=20000.)
 make_helper_tool (self)
 logfile_name (self, chain_name)
 make_event_generator (self)
 make_chain_dict (self)

Public Attributes

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

Detailed Description

Definition at line 146 of file exerciser.py.

Member Typedef Documentation

◆ result

Definition at line 90 of file EDM_MasterSearch.h.

Constructor & Destructor Documentation

◆ __init__()

exerciser.SimpleConditionsTests.__init__ ( self,
n_sgnl = 4,
n_bkgd = 4,
bkgd_etmax = 20000. )

Definition at line 148 of file exerciser.py.

152 ):
153 # useEtaEtNotEtaE = False
154 CombinationsTests.__init__(self, n_sgnl, n_bkgd, bkgd_etmax)
155 self.chain_name = 'HLT_DijetConditionTests'
156

Member Function Documentation

◆ logfile_name()

exerciser.SimpleConditionsTests.logfile_name ( self,
chain_name )

Reimplemented from exerciser.CombinationsTests.

Definition at line 170 of file exerciser.py.

170 def logfile_name(self, chain_name):
171 return chain_name + '_s' + str(self.n_sgnl) + '_b' + str(self.n_bkgd)+'.log'
172

◆ 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.SimpleConditionsTests.make_event_generator ( self)

Reimplemented from exerciser.CombinationsTests.

Definition at line 173 of file exerciser.py.

173 def make_event_generator(self):
174 generator = SimpleHypoJetVectorGenerator()
175
176 generator.ets = [80000. + 1000.*i for i in range(self.n_sgnl)]
177 generator.etas = [0.5] * self.n_sgnl
178
179 # alternate eta signs to get high mass
180 factor = 1
181 for i in range(len(generator.etas)):
182 generator.etas[i] *= factor
183 factor *= -1
184
185 generator.n_bkgd = self.n_bkgd
186 generator.bkgd_etmax = self.bkgd_etmax
187
188 return generator
189

◆ make_helper_tool()

exerciser.SimpleConditionsTests.make_helper_tool ( self)

Reimplemented from exerciser.CombinationsTests.

Definition at line 157 of file exerciser.py.

157 def make_helper_tool(self):
158 chain_label = """
159 z([]
160 simple([(10et, 0eta320)(20et)])
161 )"""
162
163
164 toolSetter = ConditionsToolSetter(self.chain_name)
165 return trigJetHypoToolHelperFromDict_(chain_label,
166 self.chain_name,
167 toolSetter=toolSetter)
168
169

Member Data Documentation

◆ bkgd_etmax

exerciser.CombinationsTests.bkgd_etmax = bkgd_etmax
inherited

Definition at line 79 of file exerciser.py.

◆ chain_name

str exerciser.CombinationsTests.chain_name = 'HLT_j80_L1J20'
inherited

Definition at line 80 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: