Introduction

The Main Drift Chamber (MDC), a key sub-detector of the Beijing Spectrometer III (BESIII), has been running for more than ten years at the Beijing Electron Positron Collider II (BEPCII). The inner part of the drift chamber, which is closest to the beam pipe, has developed serious aging effects due to the radiation from beam-related backgrounds. The gain in this region of the drift chamber has decreased year by year, causing a degradation of the hit efficiency and spatial resolution. A Cylindrical Gas Electron Multiplier (CGEM) [1] detector has been an important candidate for the upgrade of the inner tracker due to its good spatial resolution and stability in high-radiation environments.

Fig. 1
figure 1

CGEM inner tracker

Fig. 2
figure 2

Local structure of one layer of the CGEM inner tracker

Fig. 3
figure 3

a Local structure and b electric field of a single GEM foil

The CGEM inner tracker [2] is designed to be composed of 3 layers of cylindrical GEM detectors. The inner radii of each layer are 76.9 mm, 121.4 mm, and 161.9 mm, and the outer radii are 90.2 mm, 134.7 mm, and 175.2 mm, respectively, as shown in Fig. 1 The length of each layer is 532 mm, 690 mm, and 847 mm, respectively. Each CGEM layer consists of a cathode, 3 GEM foils, and a readout anode, as shown in Fig. 2. The four gaps are called Drift, Transfer1, Transfer2, and Induction, with sizes of 5 mm, 2 mm, 2 mm, and 2 mm, respectively. The gas mixture is Ar/iC4H10 with a ratio of 90/10. Electric fields in the drift, transfer, and induction gaps are 1.5 kV/cm, 3 kV/cm, and 5 kV/cm, respectively. The GEM foil has a large number of double-cone shaped holes made by a single mask process using standard photolithography technology. The diameter of each hole on the foil surface is from 50 to 70 \(\upmu \)m, and the adjacent holes’ pitch is 140 \(\upmu \)m, as shown in Fig. 3a. The GEM foil has a three-layer structure, i.e., two layers of copper foil with a standard thickness of 5 \(\upmu \)m, and a middle layer of a Kapton foil with a thickness of 50 \(\upmu \)m, as shown in Fig. 3b. A high voltage difference of 270 V is applied across each GEM foil. The readout anode is segmented with 650 \(\upmu \)m pitch XV patterned strips. The stereo angle between X and V strips changes with the layer. The electrons generated from the ionization by an incident charged particle in the gas drift toward the anode and are multiplied in the holes of the GEM foil. The moving of the electrons in the induction gap induces electrical currents in a series of anode strips, referred to as a cluster. The ionized electrons generated in the drift gap dominate the contribution to the induced signal since only these electrons are multiplied in all three GEM foils. Consequently, our digitization model only considers the ionization in the drift gap.

An analog readout is adopted for the CGEM-IT to record both time (T) and charge (Q) information for each firing anode strip. The position of an incident particle as it enters the drift gap can be estimated from the reconstructed cluster using Q in a charge centroid method or using T in a micro-TPC mode [3].

A Geant4-based [4] simulation of the CGEM-IT has been developed within the BESIII offline software system (BOSS) [5]. The parameters of the incident particle, including the particle type, charge, momentum, and position in the drift gap, can be obtained from the Geant4 simulation. In addition to this information, a digitization process is needed to simulate the outputs of the detector, i.e., a set of firing strips and the T and Q values for each firing strip.

The digitization process contains three steps. The first step is to simulate the ionization, which is implemented by calling the Heed package [6] through the interface provided by the Garfield++ [7] program. The second step is to simulate the drift and multiplication of the ionized and multiplied electrons. Since the complete simulation with Garfield++ of the drift line and the multiplication is time-consuming, this step is simplified by sampling the number, position, and time of the multiplied electrons. The parameters describing the Lorentz angle, multiplication, and diffusion are obtained by a prior simulation of different parts of the CGEM with Garfield++. The third step is to simulate the signal induction which is also based on a prior simulation with Garfield++ and ANSYS.

Fig. 4
figure 4

Coordinate system used in the Garfield++ simulation. The electric field is in the Y direction, and the magnetic field is in the Z direction

Fig. 5
figure 5

One unit of a GEM foil (left) and a unit of the anode plane (right) constructed within ANSYS

Methods of the simulation study

The construction of the geometry of the detector and the calculation of the electric field are implemented with ANSYS which is a finite element analysis software [8]. Since the drift and the avalanche of an ionized electron usually occur within a few millimeters, which is very small compared to the size of the whole detector, a planar approximation to the cylindrical shape is adopted to simplify the construction of the detector within ANSYS. The definition of the coordinates is shown in Fig. 4, where the GEM foil is perpendicular to the Y axis and the magnetic field is parallel to the Z axis. Figure 5 shows a unit of the GEM foil and a unit of the anode plane constructed within ANSYS. The field map is solved using ANSYS, which is then used as an input for the simulation with Garfield++. Due to the periodicity of the detector structure, the CGEM detector is realized in Garfield++ by an extension of the unit structure in the X and Z axes.

The drift and multiplication of a single electron are studied with Garfield++. The method is similar to the one in reference [9], but a different parameterization method is adopted in this paper for the needs of the digitization model. As a full simulation of all drift and multiplication processes for a particle passing through the CGEM with Garfield++ is very time-consuming and hard to parameterize, it is divided into three parts. Figure 4 shows the three planes which are used in the Garfield++ simulation. A single electron is simulated as it travels from its generated position to a reference plane after the next GEM foil. This path contains the drift in one gap region and the multiplication in one layer of the foil. The distance between the reference plane and the GEM foil cannot be too small because some of the multiplied electrons may be captured by the electrode on the foil under the influence of the electric field in the region near the foil, as shown in Fig. 11. There are three reference planes, each of which is 150 microns from the GEM foil, as shown in Fig. 4. For the first part, the generated position is the location of ionization in the drift region. The electron is generated uniformly in the XZ plane with zero initial velocity. In the other two parts, the electron starts from 150 microns after the previous foil and is also generated uniformly in the XZ plane with zero initial velocity. The Penning coefficient parameter is set to be 0.44 [10] in the simulation. The parameters describing the Lorentz angle, diffusion, gain, and drift time, which will be used in the digitization model, are extracted from the simulation results of a large number of electrons.

Fig. 6
figure 6

Weighting potential on a the central X strips and b the central V strips

After the drift and multiplication in the drift and transfer regions, the electron goes into the induction region. In order to make a model to simulate the induction process, a simulation study of the induced signal on anode strips was performed using ANSYS and Garfield++. The induced signal on an anode strip is described by the Shockley–Ramo theorem:

$$\begin{aligned} i(t)=-\,q\mathbf{v} \cdot {E_{w}(\mathbf{r} )}, \end{aligned}$$
(1)

where i(t) is the induced current, q is the particle charge, v is the particle velocity, and \(E_{w}\)(r) is the weighting field for a given anode at particle position \(\mathbf{r} \). The weighting field is defined as the field produced when a unit potential is applied to the readout electrode and zero potential is applied to all other electrodes [11]. The weighting field of each anode strip was calculated with ANSYS, and then it was imported into Garfield++ with the corresponding standard class to simulate the induced current on the strips. Figure 6 shows the weighting potential on the central X and V strips.

Results of Garfield++ simulation

From the Garfield++ simulation, we can obtain the drift and multiplication behavior of a single electron, including the Lorentz angle, transverse diffusion, drift time, and electron multiplication distribution.

Fig. 7
figure 7

Mean displacement of multiplied electrons in the X direction (\(\delta X\)) as a function of \(\delta Y\) for ionized electrons originating in the drift region

Lorentz angle

The Lorentz force causes a displacement of the electron in the X direction (\(\delta X\)), as shown in Fig. 4. To get the Lorentz angle, the electron is generated at different Y. The distance between the electron and the top surface of the GEM foil is \(\delta Y\). The Lorentz angle can be obtained from the line fit to the graph of \(\delta X\) versus \(\delta Y\). Figure 7 shows the result from the drift region, and Table 1 shows the estimation of the Lorentz angle for each gap. The Lorentz angle in the drift region is bigger because of the lower electric field in this region.

Transverse diffusion

The transverse diffusion has an impact on the cluster size of the multiplied electrons. It can be extracted from fitting the displacement distribution of the multiplied electrons, which is a Gaussian distribution. For the Transfer1 and Transfer2 regions, the diffusion effect can simply be described by the width of the Gaussian distribution since the drift distance is almost constant, as shown in Fig. 9b, c. In the drift region, the diffusion effect is a function of \(\delta Y\), as shown in Fig. 8. Figure 9a shows the distribution of multiplied electrons with ionized electrons generated in the middle of the drift region. Table 1 shows the transverse diffusion of each region. The diffusion in the X direction is a little bigger than that in the Z direction because the drift line is not perpendicular to the X direction due to the Lorentz force.

Fig. 8
figure 8

For the drift region, the Gaussian width of the multiplied electrons’ displacement distribution in the X direction as a function of \(\delta Y\)

Fig. 9
figure 9

Displacement of multiplied electrons in the X direction with ionized electrons generated in a the middle of the drift region, b the Transfer1 region, and c the Transfer2 region

Drift time

As previously mentioned in Section 2, the drift time and its resolution are functions of the drift distance in the drift region, as shown in Fig. 10. In the Transfer1 and Transfer2 regions, because they have the same electric field, the mean of the drift time and the time resolution are very close, as shown in Table 1. Also, Table 1 shows the value of the drift time for each region.

Table 1 Parameters for the different regions
Fig. 10
figure 10

For the drift region, a the drift time and b the resolution of the drift time as a function of \(\delta Y\)

Fig. 11
figure 11

Illustration of effective GEM gain. In a and b, electrons are absorbed by the GEM foil and are not further multiplied; c shows an ionized electron successfully passing through the foil, and d shows the number of generated electrons \(N_\mathrm{orign}\) and the number of multiplied electrons, G, given that one electron passes through the GEM foil

Multiplication

Due to the diffusion effect and the impact of the electric field on the drift line, not all the electrons can be effectively multiplied in the GEM foil. Some electrons are captured by the upper electrode before entering the hole, as shown in Fig. 11a. Some electrons are multiplied in the hole, but without multiplied electrons leaving the hole, as shown in Fig. 11b. Only the electron shown in Fig. 11c is multiplied effectively. So the multiplication of the electrons can be described with two parameters, i.e., the transparency and gain. The transparency (\(\tau \)) is defined as:

$$\begin{aligned} \tau =N_{\tau }/N_\mathrm{origin}, \end{aligned}$$
(2)

where \(N_\mathrm{orign}\) is the number of generated electrons, as shown in Fig. 11d, and \(N_T\) is the number of generated electrons with at least one multiplied electron reaching the reference plane below the GEM foil. The gain of electrons can be described by the Polya distribution [12]:

$$\begin{aligned} P(G)=C_{0}\frac{(1+\theta )^{(1+\theta )}}{\Gamma (1+\theta )}\left( \frac{G}{G_{0}}\right) ^\theta \exp {\left[ -\,(1+\theta )\frac{G}{G_{0}}\right] }, \end{aligned}$$
(3)

where \(C_0\) is a constant, G is the number of multiplied electrons reaching the reference plane, \(G_0\) is the average gain of a single electron, and \(\theta \) is the parameter determining the variance of the Polya distribution. The value of \(\theta \) is related to the electronic proportion of energy exceeding the ionization threshold. Figure 12 shows the distribution of G and the fit to the Polya distribution.

Fig. 12
figure 12

Polya distribution for GEM1 with electrons starting from the middle of the drift region and the gain measured at Plane I

Fig. 13
figure 13

a\(\tau \) as a function of \(\delta Y\) and b\(G_0\) as a function of \(\delta Y\)

Figure 13 shows the \(\tau \) and \(G_0\) parameters as a function of \(\delta Y\) in the drift region, from which we see that \(\tau \) and \(G_0\) are independent of the position of the ionized electron. The \(\tau \) and \(G_0\) of the drift region are 80.9% and 20.0, respectively. Table 2 shows values of \(\tau \) and \(G_0\) for each plane. The \(\tau \) for the first GEM foil is larger than the others, because the electric field in the drift region is smaller than that in the transfer regions [13]. Both the high voltage on the GEM foil and the electric fields in the gap have an impact on \(G_0\). Different combinations of these two factors cause different values of \(G_0\) in the different regions.

Table 2 Transparency and gain for the different planes
Fig. 14
figure 14

Induced current on a the central X strips and b the central V strips

Fig. 15
figure 15

Cluster size of a X strips and b V strips

The digitization of multiplication for each GEM foil is divided into two steps. The first step is the sampling for the number of electrons that can be multiplied effectively using the transparency. The second step is the sampling of the gain with a Polya distribution.

Signal induction

The moving of each multiplied electron in the induction region, i.e., from the reference plane below the third GEM foil in Fig. 4 to the anode strip, causes induced currents in several strips. The reference plane and the anode plane with both X and V strips can be divided into periodic areas. The simulation of the induction process is simplified to a small basic area. To make a fast digitization model, the basic area is divided into several grids. The induction process for electrons in each grid is simulated. The strips with induced currents and the shapes of the signals in these strips are recorded, which will be used in the digitization model. In the digitization algorithm of the induction, the final signal in each strip is the sum of the induced currents caused by all multiplied electrons. The current from each multiplied electron is obtained from the prepared record of simulated signal shapes. Figure 14 shows the final induced current on the central X and V strip when a 1.5 GeV vertical incident electron passes through the first layer of the CGEM detector.

Digitization model

Based on the results of the Garfield++ simulation described in the previous section, a preliminary full digitization algorithm has been implemented. The distribution of all the multiplied electrons after passing through the third GEM foil can be obtained from the simulation of the previous processes. Figure 15 shows the cluster size obtained from the digitization algorithm, from which we see that the mean value of the cluster size is 4.1 and 3.4 for X and V, respectively (corresponding to a stereo angle of 43 degrees between the X and V strips). The first version of the digitization algorithm has been successfully integrated into the BOSS framework. The effect of the electronics response [14] and the threshold will also be added. The procedure will be further optimized and tuned once data are collected to make the MC simulation consistent with data.

Currently, it takes a long time to run the digitization algorithm. Simulation of 100 track segments would take 1 min. The main reason is that the sampling of large number of multiplied electrons is very time-consuming. So, how to simplify the sampling process to speed up the algorithm will be considered in the next version.

Conclusion

A simulation study using Garfield++ tool for the CGEM inner tracker has been performed according to the needs of the digitization model. Preliminary results including the Lorentz angle, diffusion, drift time, multiplication, and induction are obtained from the Garfield++ simulation and have been implemented into the digitization algorithm. Comparison with the result from the beam test [15] of the prototype shows that the cluster size from the algorithm is bigger. This difference may be due to the lack of electronic simulation and consideration of threshold effect. What is more, all parameters and settings in this work are the same as the future BESIII CGEM-IT, which are different from the prototype of beam test. Considering those factors, the cluster size from the digitization model is reasonable. The digitization model will be improved in the next step. The samplings in the process of drift and multiplication may be optimized. The difference between the experiment and simulation should be reduced after improvement and tuning with experimental data in the future.