1 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.

Fig. 1
figure 1

Flight model of UFFO Burst and Alert Trigger telescope installed on the flight model of UFFO/Lomonosov without the SMT housing. Inset: UFFO/Lomonosov with the SMT housing. Each telescope is marked with black text

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 cm2 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^{\circ}\), which leads to GRB localization within an accuracy of 10 arcmin at \({>}7\sigma \). The details are summarized in Table 1.

Fig. 2
figure 2

Schematic drawing of the UBAT side view. The dependence of the UBAT FOV on the detector coverage is illustrated by two dotted lines extending to the lower left from the upper right corner

Table 1 UFFO/Lomonosov Burst Alert and Trigger Telescope specification

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.

2 Specification and Components of UBAT

2.1 X-ray Detector of UBAT

The X-ray detector consists of Yttrium Oxyorthosilicate (YSO, \(\mathrm{Y}_{2}\mathrm{SiO}_{5}{:}0.04\%\) Ce) scintillation crystals, Multi-Anode Photomultiplier Tubes (MAPMTs), analog, digital, and high-voltage 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 cm2. The thermal pads (Gap Pad 3000SFFootnote 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.

Fig. 3
figure 3

UBAT detector assembly. Top left: Digital board and high voltage board. Top right: UBAT detector top and bottom parts. 9 analog boards are resident and every analog board is connected to the digital board via FPCB and to the high voltage board using high voltage cables. Bottom left: Assembly view after connection of digital board, analog boards, and high voltage board onto the UBAT detector structure. Bottom right: Integration of 36 MAPMTs and 36 YSO Scintillation crystal arrays onto the analog boards. MAPMTs are inserted directly onto analog boards using holetite

2.1.1 YSO Scintillation Crystals

The UBAT detector employs a \(6 \times 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 \times 8\) pixel arrays that are combined to form a \(48 \times 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 \times 48\) array of detector pixels effectively lie on a larger \(58 \times 58\) physical lattice array when we allow for the 2 pixel size of each dead areas between the \(6 \times 6\) array of YSO crystals and MAPMTs (see Fig. 2).

2.1.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.

2.1.3 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 \times 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 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.

2.1.4 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.

2.1.5 High Voltage Electronics

The UBAT high voltage board employs 9 EMCOFootnote 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.

2.2 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 mm2 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^{\circ}\). The mask pattern has a 44.5% open fraction and is designed mathematically to cast unique shadowgrams of GRB photons onto the 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 kaptonFootnote 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).

Fig. 4
figure 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

Fig. 5
figure 5

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

2.3 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.

3 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.

3.1 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 embedded 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 \times 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.

Fig. 6
figure 6

Block diagram of UBAT top level data flow. The data flow is divided between two directions: raw data is stored in SRAM as are the GRB trigger calculations

Fig. 7
figure 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

Table 2 Specification of UBAT raw data depends on predefined sessions

3.2 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. (1)

    Accessing a new 48 × 48 detector frame from the data processing unit.

  2. (2)

    Saving the detector frame pixel data and the current UBAT axes matrix provided by the Lomonosov.

  3. (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.

Fig. 8
figure 8

General flow chart showing the multiple tasking involved in saving a \(48 \times 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

Fig. 9
figure 9

A schematic chart of UBAT rate trigger flow. The summed count rate over a frame’s \(48 \times 48\) detector pixels is accumulated until it exceeds the background variation by more than 7\(\sigma \). Once it meets the requirement condition for a rate trigger, the algorithm enables the image trigger block to localize the source

From the data processing unit, \(48 \times 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 mask-detector correlation image calculation is initiated to accumulate a GRB correlation image 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/cm2/s can be triggered after a 1 s exposure at SNR 7.

Fig. 10
figure 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)\)

3.2.1 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 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.

3.2.2 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 \times 58\) detector illumination pattern stored in a buffer. Then the imaging trigger algorithm searches a significant peak in SNR image from the variance image, \(\delta ^{2}[i, j]\) and correlation image \(C [i, j]\) at a location of sky \([i, j]\), that is an image pixel \([i, j]\).

$$ C [i, j] = S [i, j]- O [i, j] B [i, j] $$
(1)

where \(C [i, j]\) is the correlation, \(S [i, j]\) is a source image, \(O [i, j]\) is a mask open fraction, and \(B [i, j]\) is a background image at the image pixel \([i, j]\).

$$\begin{aligned} SNR^{2} [i, j] =& C ^{2}[i, j] / \delta ^{2} [i, j] \end{aligned}$$
(2)
$$\begin{aligned} \delta ^{2} [i, j] =& P[i, j] B[i, j] \end{aligned}$$
(3)

where \(P [i, j]\) is mask coding power, defined as \(P [i, j] = O [i, j] (1 - O [i, j]) \cong 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 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\(\sigma \) 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.

Fig. 11
figure 11

A schematic chart of the UBAT imaging trigger. The \(58\times 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

4 Pre-flight Calibration of the UBAT Detector

4.1 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-XFootnote 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,Footnote 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 cm2 to 138.7 cm2.

Fig. 12
figure 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

Fig. 13
figure 13

UBAT detector pixel quality map for the flight model. Noise pixels at the edges of MAPMT are seen as hot channels, and blocked out for the imaging algorithm calculation. Active channels are indicated in black and the masked-out channels of hot pixels are indicated by white. 1931 channels, or ∼83.8% of 2304 channels, are found to be active

Table 3 Detected count rates with a uniform illumination of the UBAT detector from different X-ray energies. The exposure time was 186 s, frame time 10 ms, and the area of active detector pixels 138.7 cm2

4.2 Detector Efficiency

Detector efficiency of the UBAT was studied using the onboard Block for X-ray and gamma-radiation 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 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 \(\mbox{cnts}/\mbox{cm}^{2}/\mbox{s}\), and the count rate resulting from the X-ray was 5.18 \(\mbox{cnts}/\mbox{cm}^{2}/\mbox{s}\). This count rate can be compared with the one measured by the UBAT detector. Table 4 shows the count rates from the various X-ray fluxes measured beneath the opened coded mask pixels. The coded mask has an open area fraction of about 0.445: thus, the rate from source was calculated as (Total counts—background count)/(exposure time × frontal area of active detector pixels ×0.445). The count measured for the UBAT detector was 4.57 \(\mbox{cnts}/\mbox{cm}^{2}/\mbox{s}\). Taking into consideration that flux decreases at a rate of \(1/d^{2}\), where d is source-detector distance, the expected count rate at the position of coded mask would be 4.96 \(\mbox{cnts}/\mbox{cm}^{2}/\mbox{s}\). Assuming an efficiency of 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.

Table 4 The count rates measured by the UBAT detector with an effective area of 138.7 cm2 for ≤50 keV X-rays from various metal targets employed to attenuate flux. The distance between the source and detector was kept at 8090 mm, the exposure time for each measurement was 31 s, the frame duration is 10 ms with a 138.7 cm2 effective area. Background rate was 0.94 \(\mbox{cnts}/\mbox{cm}^{2}/\mbox{s}\)

4.3 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. 241Am 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.

Fig. 14
figure 14

Energy measurement. 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. 241Am 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

5 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 1516 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 \(\mbox{photons}/\mbox{cm}^{2}/\mbox{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 \(\mbox{cnts}/\mbox{cm}^{2}/\mbox{s}\). The rates for the X-ray source turned on were 0.52, 0.81, 1.33, 2.50 and 4.57 \(\mbox{cnts}/\mbox{cm}^{2}/\mbox{s}\) for which imaging with \(\mathrm{SNR}=7\) was obtained in ∼12 s, ∼11 s, ∼4 s, and ∼1 s, respectively.

Fig. 15
figure 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
figure 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

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^{\circ}\), \(-15^{\circ}\), \(-5^{\circ}\), \(+5^{\circ}\), \(+15^{\circ}\), and \(+30^{\circ}\) along its \(Y\) axis. It is noted that off-axis angular resolution becomes better than on-axis 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.

Fig. 17
figure 17

Imaging reconstruction for off-axis sources with ≤50 keV X-rays. The source was fixed and UBAT rotated by \(-30^{\circ}\), \(-15^{\circ}\), \(-5^{\circ}\), \(+5^{\circ}\), \(+15^{\circ}\), and \(+30^{\circ}\) along \(Y\) axis

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 \times 17~\mbox{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 radius of the source at the distance of 8090 mm was \(r = 1.2~\mbox{arcmin}\), and the standard deviation of the 15 samples for the estimated directions is about 6.5 arcmin for \({\geq} 7\sigma \) detection. Thus, the localization accuracy of the UBAT is ±5 arcmin for \({>} 7\sigma \).

Fig. 18
figure 18

Measured angular resolutions of the FM UBAT for different detection thresholds. The X-ray source was fixed and almost on-axis at distance of 8090 mm from the detector. The variance of the estimated source directions of 15 different exposures indicates the angular resolution. Circles of 10 arcmin and 17 arcmin in diameter are displayed. SMT FOV is \(17 \times 17~\mbox{arcmin}^{2}\)

Table 5 The standard deviations in localization for on-axis X-ray sources along the \(X\) and \(Y\) axes are summarized. The standard deviations are calculated from 15 data samples for different SNR thresholds (SNRthr). The ranges of the SNR achieved during imaging are shown

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 Epeak 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.

Fig. 19
figure 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 Epeak (Band 2003; Amati et al. 2015). The GRB model with \(\alpha =-1\), \(\beta =-2\) is assumed. UBAT used \(\mathrm{SNR} = 7\), \(f_{\mathrm{det}}=0.88\), \(\varOmega =1.8\) and \(f_{\mathrm{mask}}=0.45\)

6 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.

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 \(\mbox{cnts}/\mbox{cm}^{2}/\mbox{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.

Fig. 20
figure 20

Left: UBAT detector hit map for \(48 \times 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 \(\mbox{cnts}/\mbox{cm}^{2}/\mbox{s}\), which is about three times larger than the values we measured on the ground prior to launch

The X-ray backgrounds in space are extracted from the data in Fig. 20 and found to be 7 \(\mbox{cnts}/\mbox{cm}^{2}/\mbox{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 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 \times 2.5 = 2.75\), or about three times.

7 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{\sim} 6~\mbox{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.