MythenDetectorSpecifications¶
MythenDetectorSpecifications contains all detector specific parameters, such as the number of modules, internal detector parameters like the strip width.
Note
The method read_bad_channels_from_file expects a text file using the format below. Each line denotes the index of a bad channel. Consecutive bad channels can be stored on one line e.g. channels with 20-42 are bad channels.
1
2
20-42
100
1002-1004
If youre file format deviates from the above format read youre file into a boolean numpy.ndarray and set the bad_channels directly.
- class angcal._angcal.MythenDetectorSpecifications¶
Bases:
pybind11_object- Variables:
min_angle (double) – Read-only static. Minimum potential detector angle (measured as displacement of first strip) [degree] (-180.0 deg)
max_angle (double) – Read-only static. Maximum potential detector angle (measured as displacement of first strip) [degree] (-180.0 deg)
bad_channels (numpy.ndarray of bool, shape (n_channels,)) – Expected size: number of channels/strips in the detector. Each element is
Trueif the channel is bad, otherwiseFalse.)pitch (double) – Read-only static. Strip/channel width of Mythen detector [mm] (0.05 mm)
strips_per_module (int) – Read-only static. Strips per module for Mythen detector (1280)
num_strips (int) – Read-only. Total number of strips in Mythen detector
max_modules (int) – Read-only. Number of modules in detector. Default (48)
exposure_time (double) – Read-only. Exposure time [s]
bloffset (double)
dtt0 (double)
- __init__(*args, **kwargs)¶
Overloaded function.
__init__(self: angcal._angcal.MythenDetectorSpecifications, file_interface: Optional[SimpleFileInterface] = None) -> None
- file_interfaceOptional[SimpleFileInterface], default None
A file interface to read bad channels file. If none is provided bad channel file is expected to be a text file where each line stores the channel index of a bad channel. Consecutive bad channels can be stored in one line by seperating the first and last channel index of the bad channel block e.g. bad_channel_index0-bad_channel_index1.
__init__(self: angcal._angcal.MythenDetectorSpecifications, max_modules: int, exposure_time: float, num_counters: float = 1, bloffset: float = 1.532, file_interface: Optional[SimpleFileInterface] = None) -> None
- max_modules: int
Number of modules in detector (default 48).
- exposure_time: double
Exposure time in seconds.
- num_counters: int
Number of counters active.
- file_interfaceOptional[SimpleFileInterface], default None
A file interface to read bad channels file. If none is provided bad channel file is expected to be a text file where each line stores the channel index of a bad channel. Consecutive bad channels can be stored in one line by seperating the first and last channel index of the bad channel block e.g. bad_channel_index0-bad_channel_index1.
- read_bad_channels_from_file(self: angcal._angcal.MythenDetectorSpecifications, filename: str) None¶
reads bad channels from file