ATLAS Offline Software
Loading...
Searching...
No Matches
cmpExerciser Namespace Reference

Classes

class  CombinationsTests
class  FastReductionLabeledCompTests

Functions

 make_simple_event_generator (n_nsignal=4, n_bkgd=0, bkgd_etmax=50000., useEtNotE=True)
 JetHypoExerciserCompareCfg (label, fn_frag, mult_string, event_generator)

Variables

bool doSimpleGen = True
bool useEtNotE = True
int n_signal = 6
int n_background = 10
int bkgdEmax = 50000.
 event_generator
str mult_string
int n_sig_lo = 10
int n_sig_hi = 15
int e_sig_lo = 80
int e_sig_hi = 90
int eta_sig_hi = 5
int n_bkgd = 2
int bkgd_etmax = 50000.
bool useEtaEtNotEtaE = False
list s_params
int label_ind = 12
 label = test_strings[label_ind]
str lfn = 'test_case.txt'
dict fn_frag
 flags = initConfigFlags()
 MaxEvents
 cfg = MainServicesCfg(flags)

Function Documentation

◆ JetHypoExerciserCompareCfg()

cmpExerciser.JetHypoExerciserCompareCfg ( label,
fn_frag,
mult_string,
event_generator )

Definition at line 124 of file cmpExerciser.py.

127 event_generator):
128
129
130 test_conditions = FastReductionLabeledCompTests(label,
131 fn_frag,
132 mult_string)
133
134 print(test_conditions.__dict__)
135
136 ht0, ht1 = test_conditions.make_helper_tools()
137
138 # print('ht0 = ', ht0)
139 # print('ht1 = ', ht1)
140
141 jetHypoExerciserAlg=JetHypoExerciserCompareAlg("JetHypoCompareExerciser")
142 jetHypoExerciserAlg.JetHypoHelperTool0 = ht0 # run ufn first
143 # jetHypoExerciserAlg.JetHypoHelperTool1 = ht0
144 jetHypoExerciserAlg.JetHypoHelperTool1 = ht1 # then tree
145
146 jetHypoExerciserAlg.event_generator = event_generator
147
148 jetHypoExerciserAlg.visit_debug = True # more evebt debug if True
149
150 jetHypoExerciserAlg.logname = test_conditions.logname
151
152
153 print(jetHypoExerciserAlg)
154
155 result=ComponentAccumulator()
156 result.addEventAlgo(jetHypoExerciserAlg)
157 return result
158
159
void print(char *figname, TCanvas *c1)

◆ make_simple_event_generator()

cmpExerciser.make_simple_event_generator ( n_nsignal = 4,
n_bkgd = 0,
bkgd_etmax = 50000.,
useEtNotE = True )

Definition at line 28 of file cmpExerciser.py.

31 useEtNotE=True):
32
34
35 generator.ets = [80000. + 1000.*i + 500. for i in range(n_signal)]
36 generator.etas = [0.5* pow(-1, i) for i in range(n_signal)]
37
38 generator.n_bkgd = n_bkgd
39 generator.bkgd_etmax = bkgd_etmax
40
41 # generator.bkgd_etamax = 1.0
42
43 generator.useEtaEtNotEtaE = useEtNotE
44
45 return generator
46
47
constexpr int pow(int base, int exp) noexcept

Variable Documentation

◆ bkgd_etmax

cmpExerciser.bkgd_etmax = 50000.

Definition at line 182 of file cmpExerciser.py.

◆ bkgdEmax

int cmpExerciser.bkgdEmax = 50000.

Definition at line 166 of file cmpExerciser.py.

◆ cfg

cmpExerciser.cfg = MainServicesCfg(flags)

Definition at line 233 of file cmpExerciser.py.

◆ doSimpleGen

bool cmpExerciser.doSimpleGen = True

Definition at line 161 of file cmpExerciser.py.

◆ e_sig_hi

cmpExerciser.e_sig_hi = 90

Definition at line 179 of file cmpExerciser.py.

◆ e_sig_lo

cmpExerciser.e_sig_lo = 80

Definition at line 178 of file cmpExerciser.py.

◆ eta_sig_hi

cmpExerciser.eta_sig_hi = 5

Definition at line 180 of file cmpExerciser.py.

◆ event_generator

cmpExerciser.event_generator
Initial value:
1= make_simple_event_generator(
2 n_signal,
3 n_background,
4 bkgdEmax,
5 useEtNotE)

Definition at line 168 of file cmpExerciser.py.

◆ flags

cmpExerciser.flags = initConfigFlags()

Definition at line 231 of file cmpExerciser.py.

◆ fn_frag

dict cmpExerciser.fn_frag
Initial value:
1= {
2 0: 'simple1condComp',
3 1: 'simple2condComp',
4 12: 'NoRootNeeded',
5 21: 'QFBComp',
6 22: 'QFBCompLow',
7 23: 'dijet',
8 24: 'dijeteasy',
9 25: 'debug',
10 26: 'and',
11 }[label_ind]

Definition at line 217 of file cmpExerciser.py.

◆ label

cmpExerciser.label = test_strings[label_ind]

Definition at line 209 of file cmpExerciser.py.

◆ label_ind

int cmpExerciser.label_ind = 12

Definition at line 208 of file cmpExerciser.py.

◆ lfn

str cmpExerciser.lfn = 'test_case.txt'

Definition at line 210 of file cmpExerciser.py.

◆ MaxEvents

cmpExerciser.MaxEvents

Definition at line 232 of file cmpExerciser.py.

◆ mult_string

str cmpExerciser.mult_string
Initial value:
1= '_s' + str(n_signal).zfill(2) + '_b' + \
2 str(n_background).zfill(2)

Definition at line 173 of file cmpExerciser.py.

◆ n_background

int cmpExerciser.n_background = 10

Definition at line 165 of file cmpExerciser.py.

◆ n_bkgd

cmpExerciser.n_bkgd = 2

Definition at line 181 of file cmpExerciser.py.

◆ n_sig_hi

cmpExerciser.n_sig_hi = 15

Definition at line 177 of file cmpExerciser.py.

◆ n_sig_lo

cmpExerciser.n_sig_lo = 10

Definition at line 176 of file cmpExerciser.py.

◆ n_signal

int cmpExerciser.n_signal = 6

Definition at line 164 of file cmpExerciser.py.

◆ s_params

list cmpExerciser.s_params
Initial value:
1= [str(p).zfill(2) for p in (
2 n_sig_lo,
3 n_sig_hi,
4 e_sig_lo,
5 e_sig_hi,
6 eta_sig_hi,
7 n_bkgd)]

Definition at line 194 of file cmpExerciser.py.

◆ useEtaEtNotEtaE

cmpExerciser.useEtaEtNotEtaE = False

Definition at line 183 of file cmpExerciser.py.

◆ useEtNotE

bool cmpExerciser.useEtNotE = True

Definition at line 162 of file cmpExerciser.py.