Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

All templates will start with a section where the experiment and run can be defined:

...

languagepy
themeRDark

...

.

...

The large commented block should be uncommented whenever actual data are being analyzed.


Sets of alias to better find the relevant quantities in the h5 files are also defined in the following cell, together with the quantity to be used for filtering (typically i0, timing tool fit, ...).

Code Block
languagepy
themeRDark
# helper dict to find data in file
dataDict = {'alias': 'path/in/the/h5',
			...
           }

filters =  {}
filters['alias_filt1'] = [0.03,0.35]
filters['alias_filt2'] = [40,230]
	...

print('Filter selection:')
for key,value in filters.items():
	print('\t{} : {}'.format(key, value))
hist_bins = {key: 35 for key in filters.keys()}

Make sure to adapt the alias to the detectors names in your actual data.

The goodness of the filters be be evaluated in the next cell.