ATLAS Offline Software
Classes | Functions | Variables
cmpExerciser Namespace Reference

Classes

class  CombinationsTests
 
class  FastReductionLabeledCompTests
 

Functions

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

Variables

 doSimpleGen
 
 useEtNotE
 
 n_signal
 
 n_background
 
 bkgdEmax
 
 event_generator
 
 mult_string
 
 n_sig_lo
 
 n_sig_hi
 
 e_sig_lo
 
 e_sig_hi
 
 eta_sig_hi
 
 n_bkgd
 
 bkgd_etmax
 
 useEtaEtNotEtaE
 
 s_params
 
 label_ind
 
 label
 
 lfn
 
 fn_frag
 
 flags
 
 MaxEvents
 
 cfg
 

Function Documentation

◆ JetHypoExerciserCompareCfg()

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

Definition at line 124 of file cmpExerciser.py.

125  fn_frag,
126  mult_string,
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 

◆ make_simple_event_generator()

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

Definition at line 28 of file cmpExerciser.py.

28 def make_simple_event_generator(n_nsignal=4,
29  n_bkgd=0,
30  bkgd_etmax=50000., # MeV
31  useEtNotE=True):
32 
33  generator = SimpleHypoJetVectorGenerator()
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 

Variable Documentation

◆ bkgd_etmax

cmpExerciser.bkgd_etmax

Definition at line 182 of file cmpExerciser.py.

◆ bkgdEmax

cmpExerciser.bkgdEmax

Definition at line 166 of file cmpExerciser.py.

◆ cfg

cmpExerciser.cfg

Definition at line 233 of file cmpExerciser.py.

◆ doSimpleGen

cmpExerciser.doSimpleGen

Definition at line 161 of file cmpExerciser.py.

◆ e_sig_hi

cmpExerciser.e_sig_hi

Definition at line 179 of file cmpExerciser.py.

◆ e_sig_lo

cmpExerciser.e_sig_lo

Definition at line 178 of file cmpExerciser.py.

◆ eta_sig_hi

cmpExerciser.eta_sig_hi

Definition at line 180 of file cmpExerciser.py.

◆ event_generator

cmpExerciser.event_generator

Definition at line 168 of file cmpExerciser.py.

◆ flags

cmpExerciser.flags

Definition at line 231 of file cmpExerciser.py.

◆ fn_frag

cmpExerciser.fn_frag

Definition at line 217 of file cmpExerciser.py.

◆ label

cmpExerciser.label

Definition at line 209 of file cmpExerciser.py.

◆ label_ind

cmpExerciser.label_ind

Definition at line 208 of file cmpExerciser.py.

◆ lfn

cmpExerciser.lfn

Definition at line 210 of file cmpExerciser.py.

◆ MaxEvents

cmpExerciser.MaxEvents

Definition at line 232 of file cmpExerciser.py.

◆ mult_string

cmpExerciser.mult_string

Definition at line 173 of file cmpExerciser.py.

◆ n_background

cmpExerciser.n_background

Definition at line 165 of file cmpExerciser.py.

◆ n_bkgd

cmpExerciser.n_bkgd

Definition at line 181 of file cmpExerciser.py.

◆ n_sig_hi

cmpExerciser.n_sig_hi

Definition at line 177 of file cmpExerciser.py.

◆ n_sig_lo

cmpExerciser.n_sig_lo

Definition at line 176 of file cmpExerciser.py.

◆ n_signal

cmpExerciser.n_signal

Definition at line 164 of file cmpExerciser.py.

◆ s_params

cmpExerciser.s_params

Definition at line 194 of file cmpExerciser.py.

◆ useEtaEtNotEtaE

cmpExerciser.useEtaEtNotEtaE

Definition at line 183 of file cmpExerciser.py.

◆ useEtNotE

cmpExerciser.useEtNotE

Definition at line 162 of file cmpExerciser.py.

python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
cmpExerciser.make_simple_event_generator
def make_simple_event_generator(n_nsignal=4, n_bkgd=0, bkgd_etmax=50000., useEtNotE=True)
Definition: cmpExerciser.py:28
SimpleHypoJetVectorGenerator
Definition: SimpleHypoJetVectorGenerator.h:14
JetHypoExerciserCompareAlg
Definition: JetHypoExerciserCompareAlg.h:17
plotBeamSpotVxVal.range
range
Definition: plotBeamSpotVxVal.py:195
print
void print(char *figname, TCanvas *c1)
Definition: TRTCalib_StrawStatusPlots.cxx:25
cmpExerciser.JetHypoExerciserCompareCfg
def JetHypoExerciserCompareCfg(label, fn_frag, mult_string, event_generator)
Definition: cmpExerciser.py:124
pow
constexpr int pow(int base, int exp) noexcept
Definition: ap_fixedTest.cxx:15