UBAT of UFFO / Lomonosov : The X-Ray Space Telescope to Observe Early Photons from Gamma-Ray Bursts

The Ultra-Fast Flash Observatory (UFFO) Burst Alert and Trigger Telescope (UBAT) has been designed and built for the localization of transient X-ray sources such as Gamma Ray Bursts (GRBs). As one of main instruments in the UFFO payload onboard the Lomonosov satellite (hereafter UFFO/Lomonosov), the UBAT’s roles are to monitor the X-ray sky, to rapidly locate and track transient sources, and to trigger the slewing of a UV/optical telescope, namely Slewing Mirror Telescope (SMT). The SMT, a pioneering The Lomonosov Mission Edited by Yuri Shprits, Hans Bloemen and Jim Burch B I.H. Park ilpark@skku.edu 1 Department of Physics, Sungkyunkwan University (SKKU), 2066 Seobu-ro, Suwon, 440-746, Korea 2 Institute of Science and Technology in Space, Sungkyunkwan University (SKKU), 2066 Seobu-ro, Suwon, 440-746, Korea 3 Instituto de Astrofísica de Andalucía (IAA-CSIC), Glorieta de la Astronomía s/n, 18080 Granada, Spain 4 Skobeltsyn Institute of Nuclear Physics of Lomonosov, Moscow State University, Leninskie Gory, Moscow, 119234, Russia 5 Physics Department of Lomonosov Moscow State University, Leninskie Gory, Moscow, 119234, Russia 6 GACE, Edifico de Centros de Investigacion, Universidad de Valencia, Burjassot, 46100 Valencia, Spain 7 Department of Physics and Graduate Institute of Astrophysics, National Taiwan University, 1 Roosevelt Road, Taipei, 10617, Taiwan 8 Leung Center for Cosmology and Particle Astrophysics, National Taiwan University, 1 Roosevelt Road, Taipei, 10617, Taiwan 9 Departamento de Ingeniería de Sistemas y Automática (Unidad Asociada al CSIC), Universidad de Málaga, Málaga, Spain 10 Department of Energy Engineering, National United University, 2, Lienda Rd., 36063 Miaoli, Taiwan 11 National Space Institute, Technical University of Denmark, 2800 Kgs. Lyngby, Denmark 16 Page 2 of 25 S. Jeong et al. application of rapid slewing mirror technology has a line of sight parallel to the UBAT, allowing us to measure the early UV/optical GRB counterpart and study the extremely early moments of GRB evolution. To detect X-rays, the UBAT utilizes a 191.1 cm2 scintillation detector composed of Yttrium Oxyorthosilicate (YSO) crystals, Multi-Anode Photomultiplier Tubes (MAPMTs), and associated electronics. To estimate a direction vector of a GRB source in its field of view, it employs the well-known coded aperture mask technique. All functions are written for implementation on a field programmable gate array to enable fast triggering and to run the device’s imaging algorithms. The UFFO/Lomonosov satellite was launched on April 28, 2016, and is now collecting GRB observation data. In this study, we describe the UBAT’s design, fabrication, integration, and performance as a GRB X-ray trigger and localization telescope, both on the ground and in space.


Introduction
Gamma Ray Bursts (GRBs) are among the most energetic and therefore intriguing phenomena in the universe. Over the last four decades, several space projects (Boella et al. 1997;Ricker et al. 2002;Gehrels et al. 2005) and various ground based telescopes (Castro-Tirado et al. 1999) have opened a new era in the exploration of increasingly earlier moments in GRB evolution with precise, rapid and deep detections of these events over a multi-wavelength band. Despite better understanding of the GRB enigma, questions of the central engine and explosion mechanism at prompt emission remain unanswered. To study the extremely early moments of GRB occurrences in terms of their UV/optical prompt emissions, the Ultra-Fast Flash Observatory (UFFO) project was proposed in 2009 (Park et al. 2009). As a pioneer mission, the UFFO/Lomonosov (Park et al. 2013, see Fig. 1) has been developed by an international consortium from Korea, Spain, Russia, Taiwan, Denmark and France.
The UFFO/Lomonosov is equipped with two main instruments: the UFFO Burst Alert and Trigger Telescope (UBAT) for X-ray detection and the Slewing Mirror Telescope (SMT) for UV/optical follow-up. The UBAT was designed and built as a wide Field of View (FOV) telescope to monitor the X-ray sky, rapidly localize transient sources such as GRBs, and issue trigger commands to the SMT. The SMT is a new UV/optical telescope of its kind of rapid reorientation of FOV, which targets sources on the axis of its focal plane within two seconds of event inception and thus measures these events' early UV/optical counterparts.
The mass and size of UBAT are 10.5 kg, 400 mm (w) × 400 mm (l) × 280 mm (h). It is housed within the 25 kg of UFFO/Lomonosov package. The device contains a 191.1 cm 2 scintillation detector and utilizes a coded mask correlation technique for the X-ray imaging of GRBs. The instrument's FOV covers 1/7 of the sky (1.8 sr in partially coded, see Fig. 2) at an energy range of 5-200 keV. Its accuracy of angular resolution is 1.07 • , which leads to GRB localization within an accuracy of 10 arcmin at >7σ . The details are summarized in Table 1.
Rapid localization of GRBs within the UBAT FOV is accomplished through a fast detector-mask correlation calculation by the onboard FPGA. Following a positive identification, the UBAT passes an alert to the SMT (Jeong et al. 2013) for optical measurement of the prompt emission phase. Within several seconds of detection, the Lomonosov spacecraft will relay this alert from the UBAT to the ground via a special satellite network and, finally, to the community for follow-up observations with ground telescopes. The SMT can respond to a UBAT trigger signal within 1-2 s by rapidly redirecting early event photons to its 10 cm aperture Ritchey-Chrétien telescope by means of its slewing mirror system (Jeong et al. 2013;Kim et al. 2013). The Lomonosov satellite was successfully launched on April 28, 2016, has been in orbit since that time. The UBAT device was powered on several times between September 2016 and December 2016, during which times, we tested the operation of the power system and command interface. We also adjusted important UBAT parameters (thresholds for detector channels, PMT high voltages, thresholds for count rates and imaging triggers, etc.) in series of tests prior to the full operation of the UBAT.
The prompt observations of early UV/optical photons at times much closer to the preceding X-ray emissions will allow further correlation of light curves across the spectrum from optical to gamma-ray frequencies; and this, in turn, will permit further refinement of prompt emission mechanism models. The measurement of peak times within the prompt optical region will provide clues for a bulk Lorentz factor for blast waves: if the Lorentz factor is 1000, the optical telescope must respond more rapidly than 10 s following inception in order to observe possible peaks (see Fig. 5 in Park et al. 2013). The UFFO/Lomonosov brings us into an unexplored time domain in GRB evolution. For example, our observations are now within the onset times of the jets (which depend on the nature of the observed GRBs) as well as the transitions from prompt emission to afterglow.
In this article, we present the overall instrument details of the UBAT hardware and software, and their performance both on the ground and in space. Section 2 describes the UBAT instrument concept, design, fabrication, and assembly. The overall features of data processing and the trigger algorithm of the UBAT are reported in Sect. 3. Section 4 reports on pre-flight calibration of the UBAT instrumentation, including the uniformity of detector response to low energy X-rays and detection efficiency. The expected performance in localization of GRBs is discussed in Sect. 5. Section 6 reports briefly in-orbit operations and the conclusions provided in Sect. 7.

X-ray Detector of UBAT
The X-ray detector consists of Yttrium Oxyorthosilicate (YSO, Y 2 SiO 5 :0.04% Ce) scintillation crystals, Multi-Anode Photomultiplier Tubes (MAPMTs), analog, digital, and highvoltage electronics, and the assembly structure; and the total effective area of this instrument, determined by the total area of the YSO crystal layer, is 165.5 cm 2 . The thermal pads (Gap Pad 3000SF 1 ) have been installed to fill the gaps between the heat sink and electronics devices; and the surfaces of the scintillator detectors are provided with Tedlar covers to block stray UV/optical emissions. The integrated flight model of the X-ray detector is shown in Fig. 3, and details about the individual components are described in following subsections.

YSO Scintillation Crystals
The UBAT detector employs a 6 × 6 array of YSO crystal modules in which incident low energy X-rays are absorbed and converted to electrons by the photoelectric process in the YSO crystals. The subsequent passage of these electrons through the crystals excite the YSO atoms and produce scintillation light. Individual crystal detector modules consist of 8 × 8 pixel arrays that are combined to form a 48 × 48 pixel composite array. Individual crystal pixels are 2.68 mm (w) × 2.68 mm (l) × 3 mm (h), but both the width and length dimensions are pitched to 2.88 mm to accommodate the 0.2 mm thick internal reflectors. These reflectors are positioned between adjacent pixels to reduce optical photon crosstalk between pixels. Individual crystal pixels are aligned and glued into place with space-qualified optical glue for attachment to the associated MAPMT array pixels. Dielectric mirror reflector films are attached to five of the six sides of each pixel cube (excluding the optical face glued to the MAPMT pixel) to reflect scintillation photons back into the crystal pixel. The 48 × 48 array of detector pixels effectively lie on a larger 58 × 58 physical lattice array when we allow for the 2 pixel size of each dead areas between the 6 × 6 array of YSO crystals and MAPMTs (see Fig. 2).

MAPMTs
The detection of scintillation light produced within the YSO crystals is achieved with Hamamatsu R11265-03-M64 MAPMTs. An MAPMT (23.04 mm × 23.04 mm in size) consists of an 8 × 8 pixel array each of size 2.88 mm × 2.88 mm, with no gap between pixels. Ultra-bialkali photocathodes of the MAPMT pixels absorb scintillation photons from the associated YSO crystal pixels and emit electrons via the photoelectric effect, and the multiplication of those electrons by means of a stack of metal channel dynodes results in an electric current pulse. Finally, this current is fed to the analog boards for photon counting and energy measurement.

Analog Electronics
A radiation-hardened analog board was developed to convert the photo-electron output into digital signals, to measure incident photon energies, and to take photon counts. This component utilizes a Spatial Photomultiplier Array Counting and Integrating Chip (SPACIROC) as a front-end readout Application Specific Integrated Circuit (ASIC) (Ahmada et al. 2013); this chip was specifically developed for the Japanese Experiment Module's Extreme Universe Space Observatory (JEM-EUSO) to track fluorescent light generated by Extreme Energy Cosmic Rays. The analog board has two main functions: photon counting and the measurement of energy through charge to time conversions. All data acquisition and readout are processed within a 2.5 µs gate time unit (GTU). The signals from the MAPMT anodes are fed into the ASIC preamplifiers of the analog boards and individual signals are adjusted to different gains to compensate for the non-uniform responses of the MAPMTs. If necessary, the thresholds for photon counting and energy measurement may be adjusted, even after launch. Nine analog boards in total are employed to read output signals from the 6 × 6 YSO and MAPMT assemblies mounted on the upper structures of the detector module as shown in Fig. 3. Each analog board contains 4 SPACIROC ASICs, each capable of processing 4 MAPMT outputs in parallel, and a circuit of 2 high voltage dividers. The analog boards are connected to digital boards and to high voltage boards, respectively, by Flexible Printed Circuit Boards (FPCBs) and high voltage coaxial cables. Each MAPMT is inserted directly Fig. 4 Left: Optimized-random mask pattern of the tungsten coded aperture mask of the UBAT. The 1 mm thick coded aperture mask is reinforced with kapton tape and an aluminum spider structure. Right: The mask shadowgram pattern projecting onto the scintillator detector surface onto the analog board through holetite socket insertion (Tyco 6-1437514-7) to minimize the detector size and to meet the UBAT height requirement, while supporting MAPMT securely under launch conditions.

Digital Electronics
Only a single UBAT digital board (presented in Fig. 3) is required for the 9 UBAT analog boards. This component has a size of 160 mm (w) × 130 mm (h) and plays important roles in: processing UBAT data (see Sect. 3.1); the calculation of GRB triggers (see Sect. 3.2); the regulation of driving voltage for analog boards; the control of high voltage for the MAPMTs; monitoring UBAT housekeeping temperature and voltage data; and interfacing with the UFFO/Lomonosov data acquisition system (UDAQ). To minimize the power consumption and to be suitable for space application, the digital board utilizes an Actel FPGA (A3PE3000L), which consumes ∼1.2-5 W, depending on the trigger calculation stage.

High Voltage Electronics
The UBAT high voltage board employs 9 EMCO 2 DC to DC high voltage converter modules to step up the voltage from the 10 V provided by a regulation circuit on the digital board to the 900-1000 V used in MAPMT operation. This component supplies high voltage to the MAPMTs via coaxial cables and is optimized to maintain voltages across the entire UBAT detector channels to be responded uniformly.

Coded Aperture Mask
The coded mask is a 1 mm thick tungsten (W) plate encoded by the 68 × 68 array of 5.76 × 5.76 mm 2 squares of an optimized random mask (see Fig. 4). The mask is situated 280 mm above the UBAT scintillation detector surface and has a 395 mm × 395 mm area, with each square subtending an angular width of 1.18 • . The mask pattern has a 44.5% open fraction and is designed mathematically to cast unique shadowgrams of GRB photons onto the An exploded view of the mechanical structure of the UBAT, composed of a coded aperture mask, its reinforcing aluminum structures, and its aluminum hopper passively shielded by the 0.2 mm tungsten sheets lining its four sides, and UBAT detector detector plane in order to determine the coordinates from which individual GRBs originate. The coded mask is reinforced by an aluminum (Al) spider structure on its lower and upper surfaces and covered with 150 µm kapton 3 foil. The coded mask, its reinforced structure (see Fig. 5), and collimator have been designed and developed at the University of Valencia (Spain, Rodrigo et al. 2012) with some heritage from the INTEGRAL mission (Winkler et al. 2003).

Collimator & Shielding
The UBAT collimator design is derived to accommodate the UBAT FOV through its conformity to the specified geometrical relationship of the sizes of the coded aperture mask and detector pixels and the distance intervening between them. For passive shielding against background radiation of up to 100 keV, the 4 sides of the 3.0 mm thick aluminum hopper are shielded on the inside by 0.2 mm tungsten layers (see Fig. 5). Each photon reaching the detector plane can be "back projected" through the mask, to determine the sky coordinates of its probable origin.

Data Acquisition and Trigger Algorithms
The trigger algorithm as well as data acquisition software of the UBAT are implemented into two FPGA units for the first time in space in order to minimize the trigger decision latency. These FPGAs are comprised of 3 parts: data processing unit, trigger processing unit and interface unit.

Data Processing Unit
A schematic diagram of the UBAT Data Processing Unit (DPU) is shown in Fig. 6. There are two flows of digital data processing. In the first flow, raw data are stored in Static Random Access Memory (SRAM) according to a predefined scheme of blocks. During space operation, the stored SRAM data will be sent to the UDAQ, and, in turn, passed to the satellite by a bus interface for transmission to the ground. The UBAT can save up to 700 frames of raw data (photon counting and energy measurement) following predefined sessions shown in Table 2. A possible storage capacity of up to ∼100 MB per day is attainable through this technology, and the exposure time of individual sessions can be modified from the ground. The second data flow belongs to trigger calculation: raw data are passed to a "hit finding" or detection algorithm to remove the crosstalk that occurs when scintillation photons intrude upon neighboring MAPMT pixels, generating spurious signals. Such signals make it difficult to identify GRB coordinates via the coded mask technique; and a detailed study of mechanical crosstalk reduction is available in an excellent report by Chang et al. 2015.
However, to maintain simplicity in the design of the structural assembly of the MAPMT and YSO detectors, we decided to reduce crosstalk using a hit finding algorithm and through the adjustment of the threshold values for photon counting on the analog boards. The em-

Fig. 7
Block diagram of "hit finding" algorithm for 3-hit patterns. The dark orange squares represent real hits and faint orange squares represent hits resulting from crosstalk. Serial raw data are fed into hit finding blocks, and then the finding rulers, which are represented with different colored arrows, determine the center of the hit pattern bedded hit finding algorithm is shown schematically in Fig. 7 and uses the so-called "hit pattern recognition" technique. We have searched common crosstalk patterns after discarding patterns produced by cosmic rays, which result in simultaneous triggering across 4 × 4 pixels. The hit pattern recognition algorithm examines serial data to find the centers of hits immediately as they arrive. The recognition process is conducted in the Data FPGA (shown in Fig. 7) with the UBAT serving as a pipeline. The output from hit findings is sent every 500 ms to the Trigger Processing Unit (TPU) of the UBAT after conversion to 1 bit from 8 bits.

Trigger Processing Unit
A rather complicated trigger algorithm was written in VHSIC Hardware Description Language (VHDL) for implementation aboard the FPGAs, which allow for lower power consumption and faster calculation than standard CPUs. The trigger processing unit algorithm was developed and validated in the C programming language (Connell et al. 2013) prior to implementation in VHDL as the flight model system. The calculation employed by the algorithm is divided into the three following steps: (1) Accessing a new 48 × 48 detector frame from the data processing unit.
(2) Saving the detector frame pixel data and the current UBAT axes matrix provided by the Lomonosov.
(3) Executing algorithms to determine count rates and the GRB imaging trigger.
The general operation of the trigger processing unit is shown in Fig. 8 and Fig. 9. Most of the time, there will be no triggers, some false triggers, and once every several days, perhaps, triggering by an actual GRB. At that point, the task of correlation imaging begins.
From the data processing unit, 48 × 48 YSO-MAPMT pixel detector data are fed to the trigger processing unit continuously every 500 ms. All channel data sums are calculated and utilized in the determination of the rate trigger, and the detector frame data is employed by the image trigger algorithm. Once the summed data fits the rate trigger criterion, the maskdetector correlation image calculation is initiated to accumulate a GRB correlation image Fig. 8 General flow chart showing the multiple tasking involved in saving a 48 × 48 detector frame every 500 ms, followed by the rate trigger algorithm and, finally, to the imaging algorithm, which continues until a significant GRB pixel can be found and a GRB direction vector (X, Y, Z) calculated for the SMT instrument and to search for a single significant signal to noise ratio (SNR) peak which will enable the estimation the GRB direction vector. Figure 10 shows that the Monte Carlo simulation for the required integration time to trigger for a GRB signal depends upon its incoming flux value and SNR variant. We see that a nominal GRB flux of 1 photon/cm 2 /s can be triggered after a 1 s exposure at SNR 7.

Rate Trigger
The data is summed and fed into the "rate trigger block" every 500 ms. The basic requirement for a rate trigger is the detection of non-statistical variations above background levels in detector count rates across a sequence of varying time width scales, 1, 2, 4, 8, 16 and 32 s. In S. Jeong et al.

Fig. 9
A schematic chart of UBAT rate trigger flow. The summed count rate over a frame's 48 × 48 detector pixels is accumulated until it exceeds the background variation by more than 7σ . Once it meets the requirement condition for a rate trigger, the algorithm enables the image trigger block to localize the source Fig. 10 The Monte Carlo simulation for the integration time required to trigger for GRB signals as a function of incoming GRB flux and SNR of (3.0, 5.0, 7.0) order to identify a candidate GRB event, these counts are compared with background count values taken over 32 s and 64 s intervals. This is shown schematically in Fig. 9.

Imaging Trigger
To determine the GRB direction, the detector illumination pattern is imposed over the mask pattern and repositioned until the best correlation with a subset of coded mask pattern is found (Connell et al. 2013).
When a rate trigger is fired, the "imaging trigger block" executes the mask-detector correlation image reconstruction, C[i, j ], utilizing a 58 × 58 detector illumination pattern stored in a buffer. Then the imaging trigger algorithm searches a significant peak in SNR image from the variance image, where P [i, j ] is mask coding power, defined as P ]) ∼ = 1/4. The correlation images are dependent on the location of the GRB within the UBAT FOV. The correlation imaging process for a single detector frame is described as above, but each correlation image pixel must be accumulated within a reference image by correcting for the Fig. 11 A schematic chart of the UBAT imaging trigger. The 58 × 58 detector pattern is compared to a subset of the mask pattern to find SNR above some criterion threshold. The correlation matrix is corrected for UBAT FOV drift as the satellite rotates during an observation UBAT FOV drift corresponding to the Lomonosov drift. The image reconstruction then continues until: (1) the SNR of the image peak reaches a predefined threshold; or (2) the SNR of the image peak reaches a maximum and then decreases by 3 steps; or (3) a time-out limit is reached. If the SNR is found to exceed 7σ which is a rather conservative value for early stage operation but changeable after calibration of triggers, it is regarded as significant and the trigger processing unit calculates the direction vector of the source in the UBAT coordinate system and relays it to the SMT after converting the direction to that of the SMT's current frame. The UDAQ passes the trigger vector to the SMT and satellite through a bus interface in order to normalize the vector and calculate a 1-s future vector. This operation permits the optical telescope to slew to the future direction allowing for the continuous tracking of the GRB candidate and acquisition of images from the optical counterpart of the GRB. A diagram about the procedure of imaging trigger is given in Fig. 11.

Detector Uniformity
Response variations among the detector pixels were investigated through uniform X-ray illumination at energies of ≤10 keV, ≤30 keV and ≤50 keV. The detector response of the UBAT is adjustable in three different ways. First, we adjusted the parameters of the ASICs' preamplifiers to change the output signal level fed into the MAPMT. Next, high voltages in the range between 942 V and 1044 V were adjusted for groups of 4 MAPMTs placed on analog boards. Finally, preamplifier output thresholds for the photon counting mode were set differently on an analog ASIC by analog ASIC basis. To generate different X-ray energies, a Mini-X 4 X-ray tube was placed on axis a few meters from the detector. The output of energy and flux are easily controlled by adjusting the current and voltage levels to adjust the acceleration of electrons. The Mini-X tube produces a continuum of X-rays via the Bremsstrahlung effect and yields several characteristic lines for different tube targets. The detector was exposed to X-rays of energies of ≤10 keV, ≤30 keV, and ≤50 keV for 186 s (18600 frames × 10 ms/frame). The X-ray tube settings are shown below.
-X-ray energies ≤10 keV: Tube voltage 10 kV, tube current 5.3 µA, at a source-detector distance of 4010 mm, with no metal filter for flux attenuation. -X-ray energies ≤30 keV: Tube voltage 30 kV, tube current 5.3 µA, at a source-detector distance 8088 mm, with a Cu filter of thickness 0.3 mm placed in front of the source for flux attenuation. -X-rays energies ≤50 keV: Tube voltage 50 kV, tube current 5.3 µA, at a source-detector distance of 8088 mm, with a Cu filter of thickness 1.6 mm placed in front of the source for flux attenuation.
The expected X-ray spectra from the mini-X-ray tube were reproduced mathematically by solving an equation with an attenuation coefficient, 5 however, without any consideration for possible secondary radiation, e.g. scattered or fluorescent X-rays. The measured detector response in terms of photon counts are presented in Fig. 12. Measured count rates are summarized in Table 3 for these X-rays. Comparing detector response from different X-ray energies with pedestal values from a non-X-ray source, we found a fraction of active detector pixels 77%, 94% and 95% at the X-ray energies ≤10 keV, ≤30 keV and ≤50 keV, respectively. Pixels having values between 1/2 and twice the average response values were considered active. Noisy pixels were defined as those with responses ∼3 times higher than the average, and a detector pixel quality map (DPQM) was constructed by switching off noisy channels. The total fraction of noise pixels was found to be 16.2%, as shown in Fig. 13 and, therefore, the effective area of the detector decreased from 165.5 cm 2 to 138.7 cm 2 .

Detector Efficiency
Detector efficiency of the UBAT was studied using the onboard Block for X-ray and gammaradiation detection (BDRG) instrument. The BDRG, with its known efficiency, is one of scientific payloads onboard Lomonosov. It consists of three identical NaI(TI)/CsI(TI) (130 Ø mm × 20 mm) phoswich detectors (Amelushkin et al. 2013). The efficiency of the BDRG detector over 30-100 keV is close to 100%, however efficiency drops at lower energies as a Fig. 12 Detector response of the UBAT flight model integrated over ∼186 s in a dark room. Hot, that is, noisy, channels are switched off as shown in Fig. 13. The color scale indicates the total number of counts per pixel. White indicates zero counts (resulting mainly from switched off pixels). Top left: No X-ray source, top right: X-ray energies ≤10 keV, bottom left: X-ray energies ≤30 keV, bottom right: X-ray energies ≤60 keV result of the thin aluminum layer placed over the detector window to absorb the majority of X-rays with energies below 10 keV. X-rays with energies less than 50 keV were injected into BDRG and the UBAT mask, both at distances of 7760 mm from the source. The measured background rate for the BDRG from 10-100 keV was determined to be 0.15 cnts/cm 2 /s, and the count rate resulting from the X-ray was 5.18 cnts/cm 2 /s. This count rate can be compared with the one measured by the UBAT detector. The X axis plots the ADC count, and the Y axis relative flux. One ADC count corresponds to 1.14 keV. Each set of data was taken at an exposure of 200 s. 241 Am has two peaks at 18 keV and 60 keV. The X-ray tube with appropriate parameter settings provides a spectrum with peaks at 8.6 keV, 13 keV and 26 keV 100% for the BDRG at energies between 30 and 100 keV, the detection efficiency of the UBAT flight model is 4.96/5.18 = 95.90% over the energy range of 30-50 keV.

Measurement of X-ray energies
We measured energies of X-ray sources utilizing the setup described in Sect. 4.1. Because the UBAT's flight model was kept at the launch site in Russia, we conducted our preflight testing with a detector identical to the one aboard the Lomonosov. The measured spectrum is shown in Fig. 14. 241 Am has peaks at 18 keV and 60 keV. The X-ray tube set to appropriate parameters provides a spectrum with peaks at 8.6 keV, 13 keV, and 26 keV. Each data set was taken over a 200 s exposure time. The X axis plots the ADC count, and the Y axis relative flux. One ADC count corresponds to 1.14 keV.

Ground Testing of Localization Capability
The localization capability of the UBAT with an implemented trigger software program was examined for X-ray sources of various energies and rates. A mini X-ray tube produces a variety of fluxes at X-ray energies less than 50 keV by emulating a potential source. For an image reconstruction, a conical beam algorithm was used to include near distance effects. Five different fluxes were produced utilizing different Cu filter thickness values, as shown in Table 4. Figures 15-16 show imaging results. These results, the reconstructed images and source significances, were cross-checked using C language offline analysis software to mimic the code of trigger algorithm implemented by the FPGAs of the UBAT instrument. The reconstruction of images duplicated the process under space conditions by including the hit-finding algorithm explained in Sect. 3.1 and performing data reduction through the summation of frames and conversion of 8 bit raw data to 1 bit. The only difference between the C-based offline data processing and the onboard FPGA hit finding process, is that the former is applied every 10 ms, and the latter, every 5 µs. This difference has however been negligible at the level of several photons/cm 2 /s in the resultant image reconstruction, provided that the source flux remains low enough (see Table 4). The rate measured for the coded mask with the X-ray source turned off was 0.94 cnts/cm 2 /s. The rates for the X-ray source turned on were 0.52, 0.81, 1.33, 2.50 and 4.57 cnts/cm 2 /s for which imaging with SNR = 7 was obtained in ∼12 s, ∼11 s, ∼4 s, and ∼1 s, respectively. Figure 17 shows the result of imaging reconstruction for off-axis sources with ≤50 keV X-rays. The source was fixed and the UBAT rotated by −30 • , −15 • , −5 • , +5 • , +15 • , and +30 • along its Y axis. It is noted that off-axis angular resolution becomes better than onaxis up to a factor of about 1.4 as a result of the increased distance between the mask and the detector. Thus the localization accuracy also improves.
To test the UBAT localization accuracies, the X-ray source was placed on axis. Data drawn from the total 30 s of exposure were split into 15 independent sub-samples, each 2 s in duration. The conical beam imaging algorithm for each sub-sample were run separately. Localization accuracies depend on source significance, which is characterized by flux and accumulation time. Figure 18 shows the variance of the estimated source directions for 15 different exposures. The angular resolution (circles of 10 arcmin and 17 arcmin in diameter) are displayed. It is noted that the SMT FOV is 17 × 17 arcmin 2 . Standard deviations localized for on-axis X-ray sources along the X and Y axes are listed in Table 5. The standard deviations are calculated from 15 data samples for different SNR thresholds. The angular Fig. 15 Left: X-ray image reconstructed as an SNR map. The color scale refers to the SNR value. Operating at a voltage of 50 kV and a current of 5.3 µA, the X-ray tube was placed on axis with the source-detector at a distance 8090 mm, and a 1.6 mm thick Cu filter was utilized. The X-ray source is clearly visible in the middle of the figure. Right: The image peak SNR evolution during the exposure time Fig. 16 Left: X-ray image reconstructed as an SNR map. The color scale refers to the SNR value. The X-ray tube was placed on axis at a voltage of 50 kV and a current of 5.3 µA 8090 mm from the source detector, and a 2.2 mm thick Cu filter was employed. The X-ray source is clearly visible in the middle of the figure. Right: The image peak SNR evolution during the exposure time radius of the source at the distance of 8090 mm was r = 1.2 arcmin, and the standard deviation of the 15 samples for the estimated directions is about 6.5 arcmin for ≥7σ detection. Thus, the localization accuracy of the UBAT is ±5 arcmin for >7σ .
Laboratory confirmation was achieved for the algorithm correcting for the continual drift of detector pixels resulting from satellite movement. Correction for each pixel C[i, j ] occurs when the UBAT accumulates a correlation image pixel to the time of GRB trigger. To accomplish this it is necessary to convert each image pixel [i, j ] into a 3D pixel vector of x, y, z for the UBAT coordinate system and to transform it into a set of u, v, w vectors in the trigger image frame at the time of triggering, through the multiplication of a transformation matrix (the satellite matrix, which includes the UBAT of UFFO/Lomonosov position in  celestial coordinates). Next, the corresponding location of vector u, v, w in the GRB trigger image must again be transformed to indicate the current time prior to relaying the trigger vectors to the SMT. For confirmation, we situated a fixed source in front of UBAT, which was also fixed. After imaging started the satellite coordinate matrix was fed into the imaging algorithm over ∼7-8 s, after another satellite matrix was sent to check if UBAT finds a fixed, expected direction of X, Y, Z once UBAT has determined it to be a significant source following the drift calculation. We have confirmed that the UBAT found and calculated values for X, Y, Z and u, v, w identical to what we expected on the basis of our mathematical calculation of vector coordinate transformations. Long term operation of the UBAT in space may lead to the loss of detector channels. For example, there might be an issue of analog board durability for the high voltage dividers over a long operation period or because of other unforeseen conditions. Nevertheless the coded mask technique may remain relatively unaffected by any such loss of detector channels. We had proven though various lab tests such that even with the loss of 80% of the detection area, the UBAT was still able to provide meaningful triggers and localizations of an X-ray sources by permitting longer trigger latency, or longer periods of exposure prior to triggering. In this respect, a long life time is foreseen for UBAT functionality in providing triggers from space, except in cases of GRBs fading out within an order of seconds. Figure 19 shows GRB detection sensitivity in terms of peak flux sensitivity as a function of GRB spectral peak energy E peak of UBAT and other missions, such as, Swift BAT (purple), SVOM (red), HETE-2 WXM (gray) and Fermi GBM (purple dot) as proposed by Band et al. 2003. The detection area of UBAT is ∼32 times less than Swift/UBAT, however the sensitivity is not degraded significantly.

In Orbit Operation of the UBAT
Since the launch of the UFFO/Lomonosov in April 2016, the UBAT has been tested and calibrated 20 times by powering the instrument on. Several sets of configuration parameters were relayed from the ground for examination in space for different types of triggers including background (random) triggers and triggering by X-ray transients, such as those emitted by GRBs (physics triggers). We also tested various combinations of HV values for the MAPMTs and trigger thresholds for SNR values from 5 to 14. We found that lowering the threshold and/or increasing HV generated false triggers fired by background reading accumulations. S. Jeong et al.

Fig. 19
The detection sensitivity of the UBAT (blue solid line) in comparison to Swift/BAT (purple solid), SVOM/ECLAIR (red), HETE-2 WXM (gray) and Fermi/GBM (purple dot) in terms of peak flux sensitivity as a function of GRB spectral peak energy E peak (Band 2003;Amati et al. 2015). The GRB model with α = −1, β = −2 is assumed. UBAT used SNR = 7, f det = 0.88, Ω = 1.8 and f mask = 0.45 The UBAT might also be exposed to non-GRB cosmic point sources and has an option to disable triggering by such known sky sources. However, this option has not been applied during any real observations, chiefly because the imaging algorithm does not take into account flaring celestial sources such as Sco X-1 on the assumption that such flares in their active states are rare events. Nevertheless they can be recognized as non-GRB sources following an analysis of UBAT data back on earth. On the other hand, during its quiescent periods, the flux of Sco X-1 is ∼0.1 cnts/cm 2 /s at 15 keV, which will not produce a high enough SNR for triggering within our preset timescale of 64 s for expected GRB duration.
With the programmed settings for random triggers, diffuse X-ray backgrounds were measured on 12 occasions, each time for total of 700 frames, with frame exposures of 1 ms, 100 ms, and 500 ms. Figure 20 shows the measurement of diffuse X-ray backgrounds. The left plot is a hit map covering 2304 detector channels, each channel summed over 700 frames. It is noted that first 500 frames have exposures of 100 ms, while the rest have exposures of 500 ms. Noisy channels, colored pink in the figure, are masked by programming so as not to contribute to the calculation of a trigger. The right plot shows total measured X-ray counts for the detector plotted against time. Count rates double after 50 s because of the doubling of the exposure time.
The X-ray backgrounds in space are extracted from the data in Fig. 20 and found to be 7 cnts/cm 2 /s. The crosstalk among YSO detector pixels is known to yield three times more hits. As described in Sect. 3.1, this crosstalk is typically observed across clusters of adjacent pixels and removed from trigger calculations by a dedicated "hit finding" algorithm, implemented by the FPGAs. On the other hand, the UBAT is sensitive to low energy X-rays, down to 5 keV, and thus collects about 2.5 times more background events in comparison to the CZT detector of the Swift BAT, which is sensitive down to 15 keV. We have analyzed our data recently and found that cosmic ray interactions constitute an additional source of Fig. 20 Left: UBAT detector hit map for 48 × 48 channels summed over 700 frames. The channels colored pink were found to be noisy and, therefore, masked so that they do not contribute in trigger calculations. Right: Detected X-ray background counts plotted against time on the UBAT detector. Count rates double after 50 s because the frame exposure times are also doubled. The X-ray background counts in space turns out to be about 21 cnts/cm 2 /s, which is about three times larger than the values we measured on the ground prior to launch detector hits. These events typically generate hits in the form of large clusters, however we have found that they increase total hits only by a factor of 1.1. On the other hand, the difference in background counts between space and ground turns out to be 1.1 × 2.5 = 2.75, or about three times.

Conclusions
The UBAT X-ray imager utilizes a coded aperture mask, which has been designed, constructed, and put through a series of tests in space to prove its capability in detecting and imaging X-ray transient sources such as GRBs. The YSO scintillation crystal array is introduced for the first time as an imaging detector for the localization of GRBs during space observation. The detector response was made uniform over all detector channels through the adjustment of various detector operation parameters, and X-ray source tests were performed for various configurations of source and detector.
We demonstrated the triggering and imaging capabilities of the UBAT on ground, and the accuracy of localization was measured and found to be close to the design expectation. Calculations of excess in count rates and the imaging of X-ray sources together with a real time correction of satellite movement (drift correction) was successfully implemented through the onboard FPGA IC chips of the UBAT system. This is the first time ever utilization of FPGAs, which permit the much faster implementation of X-ray imaging algorithms (less than a second) and lower power consumption (less than 2 W). This is a significant improvement over conventional CPU-based technology. Therefore, total time required for triggering a typical GRB is now on the order of 1-2 seconds, even for a relatively small detector like the UBAT.
The degradation of sensitivity is inevitable with a small or loss of detection area for a given observing time. It is noted that when longer times are allowed for triggering, the location accuracy is not seriously affected. Long accumulation times effectively compensate small detection areas, except in cases where the GRB fades out within an order of seconds. The UBAT was designed with a trigger latency of typically one second with the goal of detecting GRBs with an apparent brightness of 1 photon/cm 2 /s. In such cases the UBAT will definitely trigger within a couple of seconds, including less than a half second for the imaging calculation by the fast FPGAs. On the other hand, for the same source, 0.03 s would be sufficient for imaging in Swift BAT because its detection area is larger by a factor of 32. However, this rapid accumulation of photons by the Swift device is subsequently followed by an imaging calculation of typically 5∼6 s. Consequently, as long as detection occurs within an order of seconds, the longer accumulation times of a relatively small detection area would not constitute a serious drawback for contemporary GRB localization technology.
The Lomonosov satellite was successfully launched into space on April 28, 2016, and it has been in the orbit since that time. The UBAT aboard the UFFO/Lomonosov went through a careful initial check-up process in orbit in preparation for operation with actual GRB triggers. During the early phase of instrument calibration, we have measured and understood the diffuse X-ray background and examined a series of trigger schemes through the adjustment of programmable instrument parameters, including thresholds, exposure time, and HV values. The details of our X-ray measurements and data analysis are now under way and are being prepared for subsequent publication.