(Письмо А. Гринюка про формат stb, выдержка из более позднего с добавлением st2b, ответы на вопросы А. Крюкова)
Dear collegues, The format of files ending in “_feb” and “_stb” is the following: Header for all telescope/hiscore station events:
For “_feb” files this header is followed by N_photoelectrons times of photoelectron data:
For “_stb” files the only difference is that there is an additional variable in the end of the header int32 Npixels - number of photomultipliers with non-zero amount of photoelectrons (usually 4 for hiscore stations)
And the header of “_stb” files is followed by Npixels records of:
Full hybrid event has to be combined from telescope and hiscore station files looking for events with the same N_run and N_scattering but all N_telescope.
Signal in “_stb” files was preliminary filtered. For hiscore stations - by taking only photons within +- 10 ns from the average and only stations with at least 50 photoelectrons total. For telescope +-50 ns and at least 2 pixels with at least 10 photoelectrons in each. For this reason N_photoelectrons may be slightly less than the sum over all pixels. Correct way to calculate trigger efficiency of the telescope would be by getting individual photoelectrons through fast shaper → trigger from it → same photoelectrons through slow shaper → digitized amplitude from the slow shaper at certain time past the trigger as observable data. Evgeny Postnikov does all that with “_feb” files but it is not included in “_stb” files. Far from trigger threshold region that should be not important.
Rotation of the camera around the main optical axis relative to the telescope is not included for now.
Best regards
Andrey Grinyuk
Заголовок события одинаков для телескопа и для каждой станции HiSCORE.
Полное событие собирается из всех станций с одинаковыми N_run, N_scattering. Всего в заголовке 4 int32, 20 double и ещё 1 int32 (180 байт).
После заголовка в более новом формате “_st2b” идёт ровно Npixels записей следующего содержания (28 байт каждая):
В более старом формате “_stb” вместо этого идёт (24 байта каждая):
Заголовок события одинаков для телескопа и для каждой станции HiSCORE.
1. Как их различать? По числу “пикселей”?
1. После обработки телескоп и станции в разных файлах. HiSCORE в файлах с “_hs” ближе к концу.
Полное событие собирается из всех станций с одинаковыми N_run, N_scattering. […]
int32 N_run - number of CORSIKA event
int32 N_scattering - number of random shower core scattering (0-9)
2. Т.е. один и тот же ШАЛ бросается на установку несколько раз с разными параметрами (углы и расстояние)?
2. Корсика моделирует ливень 1 раз, а положения всех телескопов и станций сдвигаются несколько раз случайным образом по земле в пределах круга заданного радиуса равномерно по площади (круг перпендикулярно направлению оси каждого ливня).
int32 N_photoelectrons - total number of photoelectrons in that telescope or station
4. Для станции - это сумма по всем ФЭУ? Для телескопа тоже сумма по всей камере?
4. Да, сумма по всем.
double X_core [mm] (zero, because CORSIKA move the telescope/stations instead of the shower)
double Y_core [mm]
double Z_core [mm]
5. А где расстояние до оси (см. также п.6)?
5. Расстояние до оси вычисляется по разности (X_telescope, Y…) и (X_offset, Y…) . Кто-то пользуется расстоянием по земле, а кто-то 3-мерным расстоянием от точки до прямой.
double X_telescope [mm] - coordinate of telescope/station
double Y_telescope [mm]
double Z_telescope [mm]
6. Это координаты телескопа/станции относительно оси ШАЛа?
6. Это координаты оси ШАЛ (возможно с обратным знаком). Координаты каждого телескопа/станции в этой же системе координат X_telescope, Y… . [По-видимому, А.Г. решил, что вопрос относится к тому, что ниже, а не выше - S.P.]
double X_offset [mm] - telescope/station coordinate offset from random shower core scattering (should be used to move shower core by -X_offset instead)
double Y_offset
7. А это что за звери?
7. theta_telescope, phi_telescope - куда в программе оптической обработки была направлена оптическая ось телескопа/станции для данного ШАЛ.
double theta_telescope [radian] - zenith angle to which this telescope/station was rotated
double phi_telescope [radian] - azymuth angle to which this telescope/station was rotated; counted in opposite direction from primary particle phi
[…]
int32 Nr
int32 Nc - number of row and column of photomultiplier
10. Для станций - это “матрица” 2х2? А как нумеруются ФЭУ в телескопах? Они все немного разные, как я понимаю.
10. Прошу прощения, тут я кажется забыл написать про пересчёт в координаты пикселей. Если не было поворота камеры вокруг оси (alph_pmt=0 ранее), то x_pix=s_pmt/2*(2*Nc-(Nr&1)); y_pix=Nr*s_pmt*sqrt(0.75); где s_pmt=30.0 [мм] - расстояние между центрами соседних пикселей. (Nr&1 - неотрицательный остаток от деления на 2).
double t [s] - average time of photoelectrons
[11.] Что такое “time of photoelectrons”?
11. Время прихода на фотокатод. Простое среднее.
double dt [s] - standard deviation of times in this pixel
В более старом формате “_stb” вместо этого идёт (24 байта каждая):
[12.] Как отличить файл старого формата от нового?
12. В старом формате имя файла заканчивается на “_stb”, а в новом на “_st2b”.