Pitch Angle Measurement Method based on Detector Counts Distribution. -I. Basic conception Chenwei Wang, Shaolin Xiong, Hongbo Xue, Yiteng Zhang, Shanzhi Ye, Wei Xu, Jinpeng Zhang, Zhenghua An, Ce Cai, Peiyi Feng, Ke Gong, Haoxuan Guo, Yue Huang, Xinqiao Li, Jiacong Liu, Xiaojing Liu, Xiang Ma, Liming Song, Wenjun Tan, Jin Wang, Ping Wang, Yue Wang, Xiangyang Wen, Shuo Xiao, Shenglun Xie, Yanbing Xu, Wangchen Xue, Sheng Yang, Zhenghang Yu, Dali Zhang, Wenlong Zhang, Peng Zhang, Shuangnan Zhang, Yanqiu Zhang, Yanting Zhang, Zhen Zhang, Xiaoyun Zhao, Chao Zheng, Shijie Zheng Abstract As an X-ray and gamma-ray all-sky monitor aiming for high energy astrophysical transients, Gravitational-wave high-energy Electromagnetic Counterpart All-sky Monitor (GECAM) has also made a series of observational discoveries on burst events of gamma-rays and particles in the low Earth orbit. Pitch angle is one of the key parameters of charged particles traveling around geomagnetic field. However, the usage of the GECAM-style instruments to measure the pitch angle of charged particles is still lacking. Here we propose a novel method for GECAM and similar instruments to measure the pitch angle of charged particles based on detector counts distribution. The basic conception of this method and simulation studies are described. With this method, the pitch angle of a peculiar electron precipitation event detected by GECAM-C is derived to be about 90 ∘ , demonstrating the feasibility of our method. We note that the application of this method on GECAM-style instruments may open a new window for studying space particle events, such as Terrestrial Electron Beams (TEBs) and Lightning-induced Electron Precipitations (LEPs). keywords GECAM, Pitch Angle, Geant4, Space Environment 1 Introduction Space charged particle events are widely observed in space by instruments on satellites, including various particle precipitation events [ 1 , 2 , 3 , 4 ] , Terrestrial Electron Beams (TEBs) [ 5 , 6 , 7 , 8 ] , and others. Charged particle precipitation is often observed during geomagnetic storms and substorms, and plays an important role in the energy transfer of the Earth’s magnetosphere [ 9 ] . The precipitating charged particles, with energy ranging from eV to MeV, significantly affect ionospheric chemistry and propagation of electromagnetic waves, often leading to interference or disruptions in communication systems and serious threat to the safety of spacecraft. The observation of charged particle precipitation events is essential to understand their generation and propagation processes, which will help to prevent their impact on the development and utilization of space. Energetic charged particles can be accelerated and scattered by different wave‐particle interactions that lead to precipitation. Some wave modes are expected to produce specific patterns of pitch angle distributions, such as magnetospheric waves [ 10 ] . As an essential form of energy transport in the magnetosphere, magnetic reconnection is also an efficient process to produce the suprathermal electron population, and the evolving pitch angle distribution can indicate the specific mechanism of reconnection [ 11 , 12 ] . The simulation of TGF and TEB production shows that the duration of TEB is determined by the wide range of pitch angle of electrons, and predicts that the pitch angle distribution of electrons evolves as a function of time, and electrons with smaller pitch angles arrive earlier while electrons with larger pitch angle arrive later [ 13 , 14 ] . Therefore, pitch angle is one of the most important parameters of charged particles. The measurement of pitch angle can provide critical information for the generation, acceleration, and propagation of these phenomena. The measurement of pitch angle can be divided into two processes: one is measuring the angular distribution of the population of charged particles, and the other is measuring the magnetic field. Typically, the measurement of the angular distribution of particles is accomplished by restricting a narrow field of view using structures such as collimators. This can be achieved either by utilizing multiple detectors oriented in different directions to measure the angular distribution [ 15 ] or by using a narrow FoV detector to scan directions [ 16 ] , obtaining the flux at different angles. Recently, Reid et al. have proposed another new conception of pitch angle measurement by using coded aperture imaging [ 17 ] . In the history of charged particle detection, apart from the specialized space physics instruments such as the Van Allen Probes [ 18 ] , high-energy astronomical telescopes have also made significant contributions, particularly wide-field gamma-ray monitors such as the Burst and Transient Spectrometer Experiment (BATSE) onboard Compton Gamma Ray Observatory (CGRO) [ 19 ] , Gamma-ray Burst Monitor (GBM) onboard Fermi [ 20 ] and GECAM [ 6 ] . Thanks to the high detection efficiency brought by the design of a large field of view, these instruments aiming for time-domain astronomy have detected many special charged particle events [ 7 , 6 ] . Sarria et al. have tried to obtain the pitch angle of TEB from the temporal information indirectly by Fermi /GBM data [ 21 ] . However, due to the lack of collimating structures, people have long overlooked their inherent ability to measure the pitch angle. Hence, we proposed a new pitch angle measurement method based on counts distribution (PACD) for GECAM, which is inspired by the counts distribution localization method for astrophysical bursts [ 22 ] , and will expound the extensions, optimizations, and applications of PACD method in a series of articles. As the first paper of this series, the main purpose of this paper is to explain the basic conception of the PACD method, and this paper is organized as follows. We present the basic information of GECAM and the detailed description of the primary PACD method in Section 2 , with an ideal assumption. Then we performed the method on a charged particles event (labeled as tn240719_200130) detected by GECAM-C and the pitch angle measurement result is shown Section 3 . Discussion and summary are given in Section 4 . 2 Instrument and Method GECAM is a constellation dedicated to the monitor all-sky high energy astrophysical transients as well as terrestrial transients. At the time of writing, GECAM is composed of four instruments, GECAM-A, GECAM-B [ 23 ] , GECAM-C [ 24 ] and GECAM-D [ 25 ] . As a versatile instrument, GECAM has made a series of discoveries in high energy transient phenomena, including Gamma-Ray Bursts (GRBs) [ 26 , 27 , 28 ] , Soft Gamma-ray Repeaters (SGRs) [ 29 , 30 ] , high energy counterpart of Gravitational Wave (GW) and Fast Radio Burst (FRB) [ 31 ] , Solar Flares (SFLs) [ 32 ] , as well as Terrestrial Gamma-ray Flashes (TGFs) and Terrestrial Electron Beams (TEBs) [ 6 ] . GECAM-A/B were launched on December 10, 2020 (Beijing time) to a Low Earth Orbit (LEO) with an altitude of about 600 km and inclination angle of 29 degrees. Two types of detectors are equipped on GECAM-A/B, namely gamma-ray detectors (GRDs) and charged particles detectors (CPDs) [ 33 , 34 ] . Both GECAM-A and GECAM-B are equipped with 25 GRD detectors and 8 CPD detectors, nearly uniformly distributed on the hemispherical dome of the satellite. All detectors are pointed to different directions to achieve a very wide field of view. GECAM-C is one of the instruments onboard the SATech-01 satellite, which was launched on July 27, 2021. SATech-01 is operating in a Sun Synchronous Orbit (SSO) with an incidence angle of 97.4 ∘ and an altitude of about 500 km. GECAM-C consists of two hemispherical domes; one sits on the top side of the satellite while the other is on the bottom side. Each dome is equipped with 6 GRDs and 1 CPD. For the top dome, the detectors are numbered from GRD1 to GRD6 and CPD1. For the bottom dome, the detectors are numbered from GRD7 to GRD12, along with CPD2. Due to the similar design of these two domes, each detector in the top dome of GECAM-C corresponds to a detector in the bottom dome that is oriented in the opposite direction (i.e. GRD1-GRD7, GRD2-GRD12, GRD3-GRD11, GRD4-GRD10, GRD5-GRD9, GRD6-GRD8 and CPD1-CPD2). Such a configuration of detectors provides a 4 \pi (full-sky) field of view for GECAM-C. In addition to GECAM-C, SATech-01 also carries many other payloads including the high-precision system for measuring the magnetic field based on a coherent population trapping magnetometer (referred to as the CPT system) [ 35 , 36 ] . GRDs are sensitive to photons including X-ray and \gamma -ray and also sensitive to charged particles, while CPDs are sensitive to charged particles but much less sensitive to photons. Therefore, considering the significance of signals on both the GRD and CPD, one can determine whether some signals are caused by charged particles or photons. All detectors on GECAM do not have a collimating structure, meaning that each detector has a FoV of about 2 \pi . Moreover, there are no magnetic deflection or electric deflecting structures before the detectors for GECAM. Based on the assumption of parallel incidence of particles, which is always satisfied for astrophysical photon events such as GRBs, each GECAM can constrain the localization of high-energy transients independently. The basic idea is that for a certain incident direction, the incident angles of different detectors are different, resulting in modulated photon counts on different detectors by the incident angles. By comparing the counts from each detector, the incident direction can be inferred [ 22 ] . In practice, the relative photon counts of each detector are calculated in advance and summarized as a template. Then we just need to compare the observation data with the template and choose the angle corresponding to the closest result. However this method for localization is not usually effective for events caused by charged particles. On one hand, charged particles do not always move in the same direction and they may simultaneously approach the satellite from all directions in many cases, especially for the particles precipitation events. On the other hand, since charged particles have circular motion in magnetic field and a non-zero pitch angle, the detected charged particles usually do not meet the assumption of parallel incidence. In fact, for the detection of events caused by charged particles, the description of pitch angle is more appropriate than the incoming direction. Inspired by the localization method of photons, we noticed that different pitch angles will also result in different distributions of counts on different detectors. Thus we name this method as “Pitch Angle based on Counts Distribution” (PACD). First, we normalized the counts of all the detectors by N_{det,norm}=\frac{N_{det}-N_{min}}{N_{max}-N_{min}} (1) where N_{det} is the raw net counts recorded by each detector, N_{max} and N_{min} are the maximum and minimum raw net counts of all the detectors respectively, and N_{det,norm} is the normalized relative counts of each detector. The main purpose of this normalizing method is to highlight the relative differences in the signal strength between all the detectors as much as possible. The next step is to calculate the prediction of the relative counts of each detector by simulation. Since the assumption that the charged particles are “local”, which means the charged particles are present in all the space surrounding the satellite homogeneously, the needed input is only the direction of the local geomagnetic field. For GECAM-A/B, no instruments for detecting the geomagnetic field are equipped thus the International Geomagnetic Reference Field (IGRF) model [ 37 ] is used to calculate the parameters of the local geomagnetic field. For GECAM-C, since the CPT system is onboard the same satellite, the precise local geomagnetic field can be obtained from the direct measurement of the CPT system. By generating enough numbers of electrons based on different pitch angles, that are uniformly emitted from a spherical surface wrapping the satellite mass model, the expected counts of all detectors are simulated by the Geant4 toolkit. [ 38 ] , and are normalized by the same process in Equation, 1 . The modified Shielding Physics List is utilized in the simulation, which has been successfully employed in the simulation of Insight -HXMT [ 39 ] and GECAM-D [ 25 ] . The final step is to compare the simulation with the observation to get the pitch angle. The normalized relative counts of each detector can be treated as a vector. For GECAM-A/B, the vector has a dimension of 33 (25 GRDs and 8 CPDs) while the dimension is 14 (12 GRDs and 2 CPDs) for GECAM-C. The cosine similarity is used to calculate the consistency (goodness of fit) between the observation and the simulation, which is defined as {\rm cos}\theta=\frac{V_{sim}\cdot V_{obs}}{\lvert V_{sim}\rvert\lvert V_{obs}\rvert} (2) where V_{sim} and V_{obs} are the vectors of simulation and observation respectively and cos \theta is the cosine similarity. The pitch angle corresponding to the simulation with the cosine similarity closest to 1 is considered as the measurement result. Using cosine similarity is also to focus on the relative strength of signals between different detectors, trying to ignore the absolute amplitude of the signals. Obviously, the pitch angle measurement resolution of PACD is affected by both the significance of the detected signal and the sampling interval of pitch angle in simulation, when only statistical errors are taken into consideration. However, a trade-off needs to be made between the calculation cost and the precision of the pitch angle: if the angle interval is reduced, the precision of the pitch angle will be improved, but the calculation cost will also increase rapidly. 3 Observation and Analysis At 2024-07-19T20:01:30 (UTC, denoted as T 0 ), GECAM-C detected an interesting event, which is named tn240719_200130 according to the GECAM convention of trigger event. With the event-by-event data of GECAM-C, the light curve shows that this event consists of two separated pulses, with a total duration of about 1.5 s, as shown in Fig. 2 . Considering the CPDs’ lightcurve exhibits the same profile as GRDs’ lightcurve, this signal is identified as electrons rather than gamma-ray photons or protons. Usually the duration of electron precipitation events is much longer than tn240719_200130, while the duration of TEBs is about tens of milliseconds, much shorter than tn240719_200130. Therefore, particle events with such a strange duration are relatively rare, which have caught our attention. However, the most interesting feature of tn240719_200130 is that only two detectors, GRD4 and GRD10, with opposite orientation, almost have no signal, which can be seen in Fig. 3 . Considering the orientation distribution of the GECAM-C detectors, such a pattern of relative counts distribution can only occur when the velocity of the electron population is nearly parallel to the detector plane of GRD4 and GRD10, which is valid only when the pitch angle of the electron population is approximately 90 ∘ . This provides compelling evidence of a unimodal, narrow distribution of pitch angle. Therefore, this event is a good case to test our pitch angle measurement method. For the pitch angle measurement, the first step is to obtain the local geomagnetic field parameters. The raw geomagnetic parameters in the Geodetic coordination system are converted to the payload coordination system of GECAM-C by the attitude during this event. The information of the magnet field, including strength and direction, is measured by the CPT system and listed in Table. 1 . Since the best resolution of relativistic electron pitch angle observations is no better than 9 ∘ thus far [ 17 ] , we chose a 10 ∘ angle interval in the simulation. The energy of the incident electrons in the simulation is uniformly sampled from 1 to 2000 keV. Followed by the method described in Section. 2 , the simulation results for different pitch angles are listed in Fig. 4 . The results indicate that the simulation of 90 ∘ pitch angle has the highest similarity with observation (Fig. 4 ), and there are no other simulation results with the same high similarity, which is consistent with the prediction of unimodal pitch angle distribution of approximately 90 ∘ . Hence the pitch angle of tn240719_200130 is considered to be indeed 90 ∘ . Additionally, we also investigated the pitch angle of the two pulses to explore whether there is any significant evolution. The results show that the pitch angle of both pulses is about 90 ∘ (Fig. 5 and Fig. 6 ), with no significant differences, which is consistent with the lightcurve in Fig. 3 . Interestingly, a 90 ∘ pitch angle means that the electrons are about to be bounced. By tracing the geomagnetic field line with the International Geomagnetic Reference Field (IGRF-13) model [ 37 ] , we found that the south magnetic footprint is close to the nadir (Fig. 7 ). Thus a \sim 90 ∘ pitch angle could be reasonable. But whether the second pulse is a bounced peak still cannot be confirmed, as the time interval between the two pulses is relatively longer than TEBs (usually about a few ms). It also needs to be noted that the geomagnetic field parameters for tn240719_200130 are from precise measurement by the CPT system. For some cases, there may be no accurate in-situ magnetic field measurement. For these cases, the geomagnetic parameters can be calculated from geomagnetic field model, such as IGRF model. The direction of geomagnetic field derived from the CPT system and IGRF model in GECAM payload coordinate system are both listed in Table. 1 . And the difference between the two directions is not large, much smaller than the sampling interval of the pitch angle in the simulation. Therefore we conclude that the pitch angle measurement based on IGRF model is reliable. Table 1: Geomagnetic field parameters of tn240719_200130 in Geodetic coordinate system Longitude Latitude Altitude D I X Y H Z F \theta^{a} \phi^{a} (Deg) (Deg) (km) (Deg east) (Deg down) (nT) (nT) (nT) (nT) (nT) (Deg) (Deg) CPT 46.73 -32.87 433.09 -31.61 -61.63 12009.90 -7390.75 14101.80 -26110.62 29675.22 41.11 83.31 IGRF-13 b 46.73 -32.87 433.09 -31.70 -60.94 12256.38 -7568.43 14404.86 -25921.08 29654.72 41.77 83.58 a The geomagnetic field direction payload coordinate system. b https://pypi.org/project/pyIGRF/ Figure 1: Overview of SATech-01 satellite and two dome of GECAM-C. As for the legend of coordinate systems, the subscript “p” represents the payload coordinate system, while the subscript “s” represents the satellite coordinate system. The relation between the two coordinate system are: +X p =+Y s , +Y p =+Z s , +Z p =Z s . Due to the different orientations of the detectors, each detector in the top dome of GECAM-C corresponds to a detector in the bottom dome that is oriented in the opposite direction (i.e. GRD1-GRD7, GRD2-GRD12, GRD3-GRD11, GRD4-GRD10, GRD5-GRD9, GRD6-GRD8 and CPD1-CPD2). Figure 2: GECAM-C GRDs and CPDs lightcurve of tn240719_200130. a b Figure 3: Lightcurves of each detectors. a, the top dome (+Z p ). b, the bottom dome (-Z p ). It is interesting that only two detectors, GRD4 and GRD10, with opposite orientation almost have no signal. Figure 4: Simulation compared with observation. For each panel, the red dashed line represents the normalized relative counts for each detectors, while the blue solid line represents the normalized relative counts for each detectors at a fixed pitch angle. GRD and CPD are abbreviated as “G” and “C” respectively. “PA” is the abbreviation of “Pitch Angle”. And cos \theta is the cosine similarity. Figure 5: Simulation compared with observation of the first pulse (T 0 -0.5 s \sim T 0 +0.8 s) of tn240719_200130. Figure 6: Simulation compared with observation of the second pulse (T 0 +0.8 s \sim T 0 +1.5 s) of tn240719_200130. a b Figure 7: Geomegnetic line tracing result. a, the nadir of GECAM-C on the map during tn240719_200130. b, the altitude of GECAM-C during tn240719_200130. GECAM-C is very close to the southern magnetic footpoint. 4 Discussion and Summary For high energy transient monitors with large FOV like GECAM, although they are primarily designed to detect astronomical events, they have already played a key role in the detection of various charged particle events including TEBs and LEPs. However, for a long time, research on these charged particle events has faced certain limitations due to the design of the instruments. Especially, the information of the pitch angle is usually inaccessible from the observations of these all-sky monitors, however, the pitch angle is crucial in studying their generation and propagation of charged particles. In order to make full use of existing instruments and data for research, we developed a dedicated method for measuring pitch angle based on the characteristic of multi-detectors-with-different-orientations. As the first paper of this series, we mainly focus on the basic conception of PACD method and its feasibility, which has been shown by the analysis of a typical event observed by GECAM-C. We need to acknowledge that the basic version of the PACD method introduced in this paper has numerous limitations and is based on many idealized assumptions, including a unimodal pitch angle distribution, uniform energy distribution, and so on. However, these issues will be addressed in a subsequent series of articles, gradually enhancing the practicality and expanding the applicability of the PACD method. One advantage of the PACD method is the variable and high time resolution, as shown in the pulse resolved pitch angle measurement in tn240719_200130 (Fig. 5 and Fig. 6 ). For specialized space physics instruments, especially those that measure the pitch angle by rotation, the time resolution is determined by the rotation period, which typically ranges from several seconds to even dozens of seconds [ 17 ] , far exceeding the duration of short timescale events like TEBs. Therefore, it is impossible to measure the temporal evolution of the pitch angle of TEBs by these instruments. While for the PACD method, the time resolution is mainly determined by the flux of charged particles, and the higher flux, the higher time resolution. Hence the PACD method is expected to measure the evolution of the pitch angle for bright TEBs and to test the generation and propagation model of TEBs. The PACD method endows the ability to analyze the pitch angle of events caused by charged particles utilizing GECAM data. This will help study the generation and propagation mechanisms of phenomena such as TEBs and LEPs by measuring their pitch angle distributions. Moreover, though the pitch angle measurement result of an event detected by GECAM-C is presented as an example, PACD method is not only effective for GECAM, but also valid for other high-energy transient monitors with a wide field of view (such as Fermi /GBM and SVOM/GRM). Funding The (co-)authors are funded by the funding the agencies described in the acknowledgment section. Conflicts of Interest The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest. Data availability statement The processed data are presented in the tables and figures of the paper, which are available upon reasonable request. The authors point out that some data used in the paper are publicly available. Author’s Contribution Chenwei Wang and Shaolin Xiong wrote the main manuscript text. Hongbo Xue, Yiteng Zhang and Shanzhi Ye processed the data of CPT system. All authors participated in the discussion and reviewed the manuscript.