Analysis script

small script to start high resolution analysis (created on March 18th 2022 by M. Reichmann (remichae@phys.ethz.ch))

source

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
is_batch = True
batch = '1k'
run = '4'
dut = 0
test_campaign = '201912'
dut_ana = partial(BatchAnalysis, choose(batch, run)) if is_batch else partial(DUTAnalysis, run)
dut_ana = partial(dut_ana, dut, test_campaign)
dut_ana.args[-1]
bc = converter.BatchConvert(dut_ana.args[0], dut_ana.args[-1])
bc.Batch.FileName.exists()
z=dut_ana()
z.add_info(t_start, 'Init time:', prnt=True)
cut = z.Cut