= True
is_batch = '1k'
batch = '4'
run = 0
dut = '201912'
test_campaign = partial(BatchAnalysis, choose(batch, run)) if is_batch else partial(DUTAnalysis, run)
dut_ana = partial(dut_ana, dut, test_campaign) dut_ana
Analysis script
small script to start high resolution analysis (created on March 18th 2022 by M. Reichmann (remichae@phys.ethz.ch))
analyse
analyse (test:bool=False, verbose:bool=False, remove_meta:bool=False, convert:bool=False, test_campaign:str='201912', run:str='17', dut:int=0, batch:str=None, run_plan:str=None)
runs the whole chain of data conversion, reconstruction, datastream merge and their alignment, telescope alignment and preliminary analysis starting from raw data and ending up with hdf5 files
Type | Default | Details | |
---|---|---|---|
test | bool | False | Test run. Nothing is converted. Just initialize the classes |
verbose | bool | False | Verbosity |
remove_meta | bool | False | Removes meta files |
convert | bool | False | Removes current analysis files and reconverts from the raw files |
test_campaign | str | 201912 | Test campaign in the YYYYMM format, for example 201912 |
run | str | 17 | Run number or batch id or scan id |
dut | int | 0 | DUT number in the telescope |
batch | str | None | Batch name |
run_plan | str | None | Create new runplan.json for beam test |
-1] dut_ana.args[
= converter.BatchConvert(dut_ana.args[0], dut_ana.args[-1]) bc
bc.Batch.FileName.exists()
=dut_ana() z
'Init time:', prnt=True) z.add_info(t_start,
= z.Cut cut