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

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=50000.)
 make_helper_tool (self)
 logfile_name (self, chain_name)
 make_chain_dict (self)
 make_event_generator (self)

Public Attributes

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

Protected Member Functions

 _make_chain_dict (self)

Detailed Description

Definition at line 119 of file exerciser.py.

Member Typedef Documentation

◆ result

Definition at line 90 of file EDM_MasterSearch.h.

Constructor & Destructor Documentation

◆ __init__()

exerciser.PartitionsTests.__init__ ( self,
n_sgnl = 4,
n_bkgd = 4,
bkgd_etmax = 50000. )

Definition at line 121 of file exerciser.py.

125 ):
126 CombinationsTests.__init__(self, n_sgnl, n_bkgd, bkgd_etmax)
127

Member Function Documentation

◆ _make_chain_dict()

exerciser.PartitionsTests._make_chain_dict ( self)
protected
ChainDict to excercise modifications to CombinationsHelperTool

Definition at line 128 of file exerciser.py.

128 def _make_chain_dict(self):
129 """ChainDict to excercise modifications to CombinationsHelperTool"""
130
131 chain_dict = CombinationsTests.make_chain_dict(self)
132 chain_dict['chainParts'][0]['hypoScenario'] = 'partitionsTest'
133
134 return chain_dict
135

◆ logfile_name()

exerciser.PartitionsTests.logfile_name ( self,
chain_name )

Reimplemented from exerciser.CombinationsTests.

Definition at line 142 of file exerciser.py.

142 def logfile_name(self, chain_name):
143 return chain_name + '_b' + str(self.n_bkgd) + '_parts.log'
144
145

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

Reimplemented in exerciser.ConditionsTests, and exerciser.SimpleConditionsTests.

Definition at line 104 of file exerciser.py.

104 def make_event_generator(self):
105 generator = SimpleHypoJetVectorGenerator()
106
107 generator.ets = [80000. + 1000.*i for i in range(self.n_sgnl)]
108 generator.etas = [0.5] * self.n_sgnl
109
110 generator.n_bkgd = self.n_bkgd
111 generator.bkgd_etmax = self.bkgd_etmax
112
113 return generator
114

◆ make_helper_tool()

exerciser.PartitionsTests.make_helper_tool ( self)

Reimplemented from exerciser.CombinationsTests.

Definition at line 136 of file exerciser.py.

136 def make_helper_tool(self):
137 chain_dict = self._make_chain_dict()
138 print(chain_dict['chainParts'][0])
139 return trigJetHypoToolHelperFromDict(chain_dict)
140
141
void print(char *figname, TCanvas *c1)

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: