<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>Performance of the Muon &lt;math altimg='si54.svg' display='inline' id='d1e305'&gt;&lt;mrow&gt;&lt;mi&gt;g&lt;/mi&gt;&lt;mo linebreak='goodbreak' linebreakstyle='after'&gt;−&lt;/mo&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;/mrow&gt;&lt;/math&gt; calorimeter and readout systems measured with test beam data</title></titleStmt>
			<publicationStmt>
				<publisher></publisher>
				<date>11/01/2019</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10167393</idno>
					<idno type="doi">10.1016/j.nima.2019.162558</idno>
					<title level='j'>Nuclear Instruments and Methods in Physics Research Section A: Accelerators, Spectrometers, Detectors and Associated Equipment</title>
<idno>0168-9002</idno>
<biblScope unit="volume">945</biblScope>
<biblScope unit="issue">C</biblScope>					

					<author>K.S. Khaw</author><author>M. Bartolini</author><author>H. Binney</author><author>R. Bjorkquist</author><author>A. Chapelain</author><author>A. Driutti</author><author>C. Ferrari</author><author>A.T. Fienberg</author><author>A. Fioretti</author><author>C. Gabbanini</author><author>S. Ganguly</author><author>L.K. Gibbons</author><author>A. Gioiosa</author><author>K. Giovanetti</author><author>W.P. Gohn</author><author>T.P. Gorringe</author><author>J.B. Hempstead</author><author>D.W. Hertzog</author><author>M. Iacovacci</author><author>J. Kaspar</author><author>A. Kuchibhotla</author><author>S. Leo</author><author>A. Lusiani</author><author>S. Mastroianni</author><author>G. Pauletta</author><author>D.A. Peterson</author><author>D. Počanić</author><author>N. Rider</author><author>C.D. Schlesier</author><author>M.W. Smith</author><author>T. Stuttard</author><author>D.A. Sweigart</author><author>T.D. Van Wechel</author><author>G. Venanzoni</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[A single calorimeter station for the Muon 𝑔 -2 experiment at Fermilab includes the following subsystems: a 54-element array of PbF 2 Cherenkov crystals read out by large-area SiPMs, bias and slow-control electronics, a suite of 800 MSPS waveform digitizers, a clock and control distribution network, a gain calibration and monitoring system, and a GPU-based front-end which is read out through a MIDAS data acquisition environment. The entire system performance was evaluated using 2.5-5 GeV electrons at the End Station Test Beam at SLAC. This paper includes a description of the individual subsystems and the results of measurements of the energy response and resolution, energy-scale stability, timing resolution, and spatial uniformity. All measured performances meet or exceed the 𝑔 -2 experimental requirements. Based on the success of the tests, the complete production of the required 24 calorimeter stations has been made and installation into the main experiment is complete. Furthermore, the calorimeter response measurements reported here informed the design of the reconstruction algorithms that are now employed in the running 𝑔 -2 experiment.]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.">Introduction</head><p>The Muon &#119892; -2 experiment E989 <ref type="bibr">[1]</ref> at Fermi National Accelerator Laboratory (Fermilab) aims to determine the anomalous magnetic moment &#119886; &#120583; &#8801; (&#119892; -2)&#8725;2 of the muon to a relative precision of 140</p><p>where the anomalous precession frequency is defined as &#120596; &#119886; &#8801; &#120596; &#119904; -&#120596; &#119888; .</p><p>The experiment aims to measure &#120596; &#119886; to a statistical precision of 100 ppb, with &#120596; &#119886; and &#119861; systematics determined to 70 ppb each. This paper describes the final prototype instrumentation developed to measure &#120596; &#119886; . It is organized as follows. Section 2 outlines how the measurement of the anomalous precession frequency is carried out and the consequent technical demands on the instrumentation that guided the design decisions. Section 3 describes each of the key calorimeter subsystems. Section 4 describes the experimental setup at SLAC test beam. Section 5 outlines the reconstruction and calibration methods. Section 6 provides system performance metrics such as timing resolution, linearity, energy resolution, and spatial uniformity. The measurements and analysis described herein are based on a three-week run using the End Station Test Beam (ESTB) at SLAC in June 2016. The final production of the complete calorimeter system is now installed and running in the Muon &#119892; -2 experiment at Fermilab.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.">Measurement of the anomalous precession frequency</head><p>The design of the Muon &#119892; -2 experiment at Fermilab follows largely the well-known method employed most recently in the E821 experiment <ref type="bibr">[2]</ref> at Brookhaven National Laboratory (BNL). Intense bunches of polarized positive muons having a central momentum of 3.1 GeV/c are injected into the BNL 7.11 m radius, 1.45 T superconducting storage ring <ref type="bibr">[3]</ref> that was relocated to Fermilab. The beam has negligible hadron contamination, but a non-negligible fraction of positrons. Once injected, the particles receive a magnetic kick to deflect them onto a stable orbit. Only a few percent of the muons remain after a few turns (cyclotron period is 149.2 ns). The unstored muons, together with the positron beam contamination, generate a prompt background in the calorimeter systems that is anticipated in the detector and electronics designs. The storage ring fill cycle is repeated at an average rate of 11.4 Hz.</p><p>Stored muons orbit the ring and their spins precess according to Eq. <ref type="bibr">(1)</ref>. The &#120596; &#119886; frequency, which is the subject of the instrumentation described here, is encoded naturally in the time and energy distribution of decay positrons. Because parity violation in &#120583; + &#8594; &#119890; + &#957;&#120583; &#120584; &#119890; associates the decay positron energy in the laboratory frame to the average muon spin direction at the time of decay, the higher-energy positrons are preferentially emitted when the muon spin is aligned with its momentum. Lower-energy positrons are emitted when the spin is reversed. Therefore the number &#119873; of higher-energy positrons striking detectors follows a functional form &#119873;(&#119905;) = &#119873; 0 exp(-&#119905;&#8725;&#120574;&#120591;)[1 + &#119860; cos(&#120596; &#119886; &#119905; + &#120601;)]</p><p>(</p><p>where &#119873; 0 is a normalization, &#120574;&#120591; is the time-dilated muon lifetime (&#8776; 64.4 &#956;s), &#119860; is the decay asymmetry, and &#120601; is an arbitrary phase.</p><p>In practice, 24 calorimeter stations are positioned evenly around the inner radius of the storage ring, each being tucked into a notch of the scalloped vacuum chamber system. Fig. <ref type="figure">1</ref> shows the locations of two calorimeters with respect to a segment of the storage ring. The stored muons are constrained to occupy a 9-cm diameter cross-sectional area within the vacuum chamber. The decay positrons have momenta below the muon momenta and therefore curl to the inside of the ring. They exit the vacuum chamber through a thin aluminum wall directly adjacent and parallel to the front face of the calorimeter.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.1.">Technical requirements of the calorimeter system</head><p>We define the Calorimeter System to include the following subsystems: the physical calorimeter, its readout transducers, its electronics and controls infrastructure, the waveform digitizers, a clock and control distribution network, a laser gain calibration and monitoring system, and a GPU-based frontend readout coupled to a data acquisition environment. The system must record data in a dead-time free manner throughout the &#8776; 700 &#956;s muon fills after receiving an accelerator trigger. Each calorimeter station produces &#8776; 800 MB/s of raw digitized samples, which must be filtered using an online GPU farm so that only regions, dubbed ''islands'', that have at least one over-threshold sample are saved for offline analysis.</p><p>The leading &#120596; &#119886; systematic uncertainties associated with the calorimeter are multi-particle pileup and gain stability. Both are exacerbated by the instantaneous rate that can exceed 10 MHz just after injection, but then drops by a factor of &#8764; 50,000 over the course of a fill. Because of muon beam cleaning and debunching requirements, the typical start-time of a fit for &#120596; &#119886; is 30 &#956;s after injection. A combination of lessons learned from the BNL experiment and various Geant4 <ref type="bibr">[4]</ref> simulations establishes several performance parameters that must be realized. These, along with practical considerations, motivate the following list of system requirements:</p><p>&#8226; The energy resolution at 2 GeV should be better than 5%.</p><p>&#8226; The calorimeter gain must recover by 30 &#956;s following the intense flash at injection. &#8226; The calorimeter gain must remain stable during the 30-700 &#956;s measurement period. &#8226; The laser calibration system must be able to correct for residual gain instabilities to better than 4 &#215; 10 -4 during the measurement period.</p><p>&#8226; The time resolution of a reconstructed shower should be better than 100 ps for positrons with energy greater than 1.8 GeV. &#8226; The time stability of the system must be better than 7 ps throughout any fill, to ensure less than a 10 ppb shift to &#120596; &#119886; .</p><p>&#8226; The calorimeter must be able to resolve two electromagnetic showers with impact time separations greater than 5 ns with 100% efficiency. &#8226; The calorimeter must fulfill the geometrical space limitation by fitting into the scallop of the vacuum chamber. &#8226; The calorimeter, readout, and cabling that reside adjacent to a highly uniform magnetic field must function in the field and, importantly, must not perturb the field uniformity.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.">Descriptions of the calorimeter subsystems</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.1.">Lead fluoride calorimeter</head><p>An individual Muon &#119892; -2 calorimeter station consists of fifty-four 25 &#215; 25 &#215; 140 mm 3 SICCAS<ref type="foot">foot_0</ref> PbF 2 Cherenkov crystals stacked in a 9 wide by 6 high array, as shown in Fig. <ref type="figure">2</ref> (left). Each crystal is wrapped in a single layer of matte black, non-reflective Tedlar&#8482; on the four long sides. A 12 &#215; 12 mm 2 Hamamatsu MPPC 2 (SiPM) is glued to the downstream face using an index-matching optical epoxy. 3 In Ref. <ref type="bibr">[5]</ref>, we documented performance tests associated with the choice of PbF 2 Cherenkov crystals as a moderator for the calorimeter, and we explored two crystal wrapping alternatives. The use of Tedlar&#8482; results in a lower light yield, but a narrower pulse shape, compared to a reflective white wrapping. In Ref. <ref type="bibr">[6]</ref>, we detailed the development of the SiPM electronics and the bias supply selection considerations, which had to be optimized for the high-rate and short-pulse-shape demands of this experiment.</p><p>The bias supply of the SiPMs is provided by four BK Precision 9124 commercial programmable DC power supplies. Typical values of applied bias voltages &#119881; ap are in the range of 66-68 V, being adjusted to set the overvoltage 4 &#119881; ov in the range of approximately 1 V above the  breakdown voltage &#119881; bd . The choice of bias voltage values optimized the SiPM photo-detection efficiency (PDE), minimized the dark count rate, and allowed the gain to match the dynamic range of the electronics such that two coincident 3 GeV electrons would not saturate the digitizer dynamic range.</p><p>The low voltage for the SiPM pre-amplifier circuit boards is provided by an OTE HY3003-3 DC power supply. The SiPM pre-amplifier boards are controlled using HDMI cables that connect each to a breakout board mounted within the box service compartment. The breakout board distributes the bias voltage levels and the communication information between SiPM boards and a BeagleBone computer. The housing around the crystal SiPM ends is cooled from the bottom by air fans and a duct-work corridor internal to the box. Signals from the SiPMs are connected to the waveform digitizers through custom Samtec ECDP cables. The positioning of the calorimeter relative to the ESTB beamline is shown in Fig. <ref type="figure">2</ref> (right).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2.">Laser calibration and monitoring system</head><p>A SiPM is a temperature-sensitive device, and lab tests show that its breakdown voltage changes with a temperature coefficient of about 70 mV/ &#8226; C. We found that at an operational over-voltage of 2.4 V, the SiPM gain changes by 2.5% per &#8226; C; note that this overvoltage is higher than we nominally use. To initially equalize the gains of the SiPMs and to monitor their drifts, a laser calibration system has been developed. It is described in some detail in Ref. <ref type="bibr">[7]</ref>, and its main features are briefly recalled here. This laser system also represents an important tool for debugging functionality of the calorimeters, their electronics, and the data acquisition system prior to the experimental run. The laser calibration system deployed at this test beam is shown in Fig. <ref type="figure">3</ref>.</p><p>In the laser box, the light from a pulsed diode laser (405 nm, PicoQuant LDH-P-C-405M, pulse length &lt; 1 ns) is divided using an optical beam splitter with the first path directing 80% of the intensity to the calorimeter station through a 25 m long silica optical fiber. Upon The SM is designed to measure the laser power directly after the laser head, minimizing the sensitivity to any perturbation occurring in any optical elements in the light path. It utilizes a sizable fraction of the laser light in order to reduce shot noise and reach the required statistical precision rapidly. A specialized electronics module (Monitoring Board) <ref type="bibr">[8]</ref> was utilized to manage photo-detectors (two pin diodes -PIN1 and PIN2 and a PMT), signal processing, and data readout for the three SM channels. It amplifies and filters the signals, digitizes them, and stores the data in local FIFO buffers. The back-end section collects the data frames from the buffer channels, performs the eventbuilding, and provides them to a PC server for data storage and further processing. The three filtered signals, made fully Gaussian with 600 ns width, are distributed to custom-designed waveform digitizers.</p><p>The LM, on the other hand, is designed to monitor the stability of the light distribution chain from the laser head to the optical fiber bundle after the diffuser. In particular, it is sensitive to any variance in the coupling and the transmission of the laser into the silica fiber and to the splitting inside the diffuser. The fast PMT of the LM sees two comparable pulses separated by 250 ns. The first pulse comes from the SM; the second corresponds to light having traveled approximately 50 m from the laser to the calorimeter and back. In this way, the LM allows for the monitoring and correction of instabilities introduced by most of the light distribution components.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.3.">Clock and calorimeter back-end electronics</head><p>The signal processing of waveforms produced by the calorimeter must provide high fidelity determination of both the time of arrival and the energy of a decay positron. The electronics must also be as robust as possible against potential rate-dependent biases in positron selection. To meet these needs, we have produced a custom-designed five-channel waveform digitizer (WFD5) <ref type="bibr">[9]</ref>. The WFD5 conforms to the Advanced Mezzanine Card (AMC) MicroTCA &#174; standard and functions with the AMC13 module <ref type="bibr">[10]</ref> designed by Boston University (BU) for the CERN CMS experiment. The AMC13 is responsible for the distribution of the synchronous clock and control signals within the MicroTCA crate <ref type="bibr">[11]</ref>, for the readout of the AMCs within the MicroTCA crate, and for the transmission of the data to the DAQ front-ends, which will be described in the next subsection.</p><p>Fig. <ref type="figure">4</ref> summarizes the architecture of the clock distribution and waveform digitization systems used for the SLAC test beam run. Apart from the master reference clock, it is reflective of that employed in the Muon &#119892; -2 experiment. Here, an Agilent N5183A MXG Microwave Analog Signal Generator was used to provide the 40-MHz clock.</p><p>The Clock and Controls Center (CCC) takes the master 40 MHz clock and a beam-correlated signal as input and encodes both using the synchronous Timing, Trigger, and Control (TTC) protocol <ref type="bibr">[12]</ref> developed for the CERN LHC experiments. The TTC system uses the master clock to realize a 160 MBaud biphase mark encoder that timedivision multiplexes two channels using a balanced DC-free code <ref type="bibr">[13]</ref>. The ''A'' channel provides a trigger to signal the start of data acquisition for a muon fill or for a laser calibration run. The ''B'' channel provides a variety of synchronous commands, such as clock counter resets or the type of trigger that the ''A'' channel will represent.</p><p>The TTC Encoder within the test beam's CCC system (Fig. <ref type="figure">4</ref>) consists of an FC7 MicroTCA module <ref type="bibr">[14]</ref> outfitted with an EDA-02708 FPGA mezzanine card (FMC) to accept inputs from the clock and the accelerator controls system. The FC7 optically transmits the encoded TTC signal to an AMC13 module in the same MicroTCA crate via a second FMC, a CERN EDA-02707. The AMC13 distributes the TTC signal over the MicroTCA backplane to fanout FC7 modules. These modules further distribute the TTC signal through a pair of EDA-02707 FMCs to all MicroTCA client crates housing detector electronics. The test beam had two client MicroTCA crates, which housed the WFD5s that instrumented the PbF 2 calorimeter and the laser calibration system.</p><p>The WFD5 modules for PbF 2 detectors were custom-designed for the Muon &#119892; -2 experiment. Each WFD5 digitization channel utilizes a Texas Instruments ADS5401 12-bit, 800-mega-samples per second (MSPS) ADC chip for the digitization. Each channel also has a dedicated Xilinx Kintex-7 FPGA that acquires the data from the ADS5401 and buffers them in a 1-Megaword DDR3 16-bit SDRAM. Each channel FPGA manages the readback of its DDR3 buffer.</p><p>A sixth Xilinx Kintex-7 FPGA (the ''master'' FPGA) controls the operation of the WFD5 module and implements the external DAQ and communication links. The master FPGA communicates with each channel FPGA over dedicated 5-Gb serial links to provide channel control and to acquire channel data. The master FPGA also transfers data at 5 Gb/s over the MicroTCA backplane to the AMC13 with a BU-designed protocol based on an 8b/10b encoding. An event builder on the AMC13 gathers the data from all 11 WFD5 modules from a calorimeter and transmits these data to a dedicated DAQ front-end via a 10-Gb Ethernet link.</p><p>The 800-MHz clock for the WFD5 module derives from the 40-MHz master clock recovered from the TTC signal by the AMC13 and transmitted over the backplane. The WFD5 module provides significant flexibility in the digitization rate of each channel, with fieldconfigurable rates ranging from 40 to 800 MHz. A Texas Instruments LMK04906 clock synthesizer provides the frequency upconversion for the five channels, with a sixth output that is routed to the WFD5 front panel. For the test beam, all channels operated at the nominal 800 MSPS.</p><p>For the SLAC electron bunches, we specified a single sample window of 560,000 ADC samples (700 &#956;s) in length, similar to that needed for the Muon &#119892; -2 experiment.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.4.">CPU-GPU hybrid system and MIDAS data acquisition</head><p>The data acquisition system (DAQ) used was a small-scale copy of the main DAQ designed for the Muon &#119892; -2 experiment. The system permitted the acquisition of dead-time-free, 700 &#956;s duration, continuously digitized waveforms from the calorimeter crystals and from the laser monitors. It was triggered by both beam and special laser-calibration events at a total trigger rate of roughly 10 Hz. An event in this language corresponds to all of the hits (typically from thousands of positrons) that are accumulated during a 700 &#956;s muon fill in the Muon &#119892; -2 experiment, or a sequence of laser pulses which are fired between fills. The concept was tested here, even though there was only one electron per event on average. The DAQ comprised a front-end computer and a back-end computer. The front-end computer is responsible for the readout and preprocessing of the continuously digitized waveforms from the detector systems. On the other hand, the back-end computer is responsible for the event assembly, data storage, and run control. The front-end computer reads out the raw data from the three MicroTCA crates over three point-to-point 10 GbE fiber-optic links and pre-processes them into derived datasets using a hybrid system comprising the computer's eight-core processor and two general purpose graphical processing units (GPUs). An overview of the data flow at the test beam is shown in Fig. <ref type="figure">5</ref>. The raw data rate from the test beam electronics was approximately 2 GB/s and the processed data rate to the mass storage was approximately 200 MB/s. In the Muon &#119892; -2 experiment, the GPU-based pre-processing is necessary to reduce the enormous rate of continuously-digitized waveforms of approximately 20 GB/s to a manageable rate of approximately 200 MB/s of stored data.</p><p>The acquisition software is based on the MIDAS <ref type="bibr">[15]</ref> data acquisition framework developed at PSI and TRIUMF. The front-end readout consists of: a TCP thread that receives and re-assembles the raw data from the AMC13 controller; a GPU thread that manages the GPU-based data processing into various derived datasets; and a MIDAS thread that handles the transfer of MIDAS-formatted events to the back-end computer event builder. Mutual exclusion (Mutex) locks are used to synchronize the execution of threads and ensure the integrity of data.</p><p>The GPUs were used to capture islands of ADC samples for all of the crystals in the array, regardless of their own sample values, when a sample from any of the 54 crystals exceeds a programmable threshold. The island length includes a programmable number of pre-and postsamples around the trigger sample and is automatically extended if a second software trigger occurs during the island sample-length time period. The GPU processing was implemented on two NVIDIA Tesla K40 GPUs using custom CUDA kernels to parallelize the data processing over the 5776 available CUDA cores.</p><p>The MIDAS tools for event building, data storage, and run control were all hosted on the back-end computer. MIDAS also provided an online database (ODB) used both for saving the experimental conditions for each run and for configuring the detectors, electronics, and other subsystems.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.">Experimental setup</head><p>The experimental setup during the test beam is shown in Fig. <ref type="figure">5</ref>. The calorimeter was located about 50 cm downstream of the beamline exit window. The electron beam size on the front face of the calorimeter, after exiting the vacuum pipe and traveling through air, was &#8776; 0.5&#215;1.0 cm 2 . The mean transverse position was stable throughout the measurement period. The calorimeter, waveform digitizers, bias control, low-voltage, and front-end computer were located inside the beam tunnel. The laser and monitoring system was located just outside of the tunnel, and the DAQ backend and analysis machines were located in the control room several floors above the tunnel. This setup is representative of the distributed setup now employed at the Fermilab Muon Campus.</p><p>The End Station A secondary beamline provides a well-collimated beam of electrons at a user-defined intensity, with a typical beam-pulse frequency of 5 Hz. In each precisely timed pulse, a Poisson-distributed number of electrons arrive. During our normal mode of operation, the single-electron beam event was optimized at a probability of 37%. Energies from 2.5 to 5 GeV were used in evaluating the performance of the calorimeter system, with each energy requiring a setup period by the operators. Once the beam energy was established, the rate was stable and the energy constant to better than 1%. Choosing new energies required some hours of setup and the actual energy was typically accurate to 10% of the target value. This limited the study of linearity by sweeping beam energies. With these considerations, it was prudent to fix 3 GeV as the nominal energy for the bulk of the data taking. It corresponds to the endpoint energy of the decay positron in the Muon &#119892; -2 experiment.</p><p>Approximately 3 &#956;s prior to the arrival of the beam, a machine trigger was received from the SLAC accelerator control system. This trigger was then fed into the FC7 to be encoded together with the 40 MHz clock. The FC7 then sent TTC signals to the AMC13 in its MicroTCA crate and also to the MicroTCA crates of calorimeter and laser systems, which initiated digitization of the WFD5s in both crates. The FC7 also sent a NIM signal to a Laser Control Board <ref type="bibr">[16]</ref> which triggered the PicoQuant laser head in a pre-configured laser firing pattern following a 1 &#956;s delay. An example pattern implemented during the test beam is shown in Fig. <ref type="figure">6</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.">Event reconstruction and single crystal response</head><p>The offline data analysis was performed using the art -based event processing framework <ref type="bibr">[17,</ref><ref type="bibr">18]</ref> developed at Fermilab. Data products consist mainly of fits to digitizer islands to extract pulse-integrals, fit times, and pedestals. The fit results require energy calibration to MeV units and time-dependent gain corrections.</p><p>The pulse-integral is an effective measure of the number of SiPM pixels fired. It is extracted along with the definition of the hit time from a fit to the digitized trace. The pulse-fitter is based on custom pulse templates &#119879; (&#119905;) for each individual SiPM, under the assumption that the method is robust against small fluctuations in pulse shape. The procedure for template creation was described in Ref. <ref type="bibr">[5]</ref>. Separate templates were built for each of the 54 crystals and for both electron showers and laser events. A comparison of electron-beam and laserbeam templates for the same crystal is shown in the upper panel of Fig. <ref type="figure">7</ref>, while a comparison of electron-beam templates for two different crystals is shown in the lower panel.</p><p>The function used to fit the traces is:</p><p>The three free parameters include an overall scale factor (&#119904;), the peak time (&#119905; 0 ), and the pedestal (&#119875; ). The pulse-integral is extracted as &#119904;.</p><p>The eigen <ref type="bibr">[19]</ref> linear algebra library is utilized in the fitting process owing to its computing performance. This procedure results in a pulseprocessing rate of approximately 65,000 pulses per second per CPU, <ref type="foot">5</ref>which exceeds the expected data rate for a single calorimeter in the Muon &#119892; -2 experiment. As described in <ref type="bibr">[6]</ref>, the technique permits separation of pileup events with 100% probability for separation times larger than 5 ns.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.1.">SiPM pulse-shape stability under various conditions</head><p>Template fitting relies on the stability of the SiPM pulse shape against various effects such as the number of photons (or energy), impact position, and impact angle of the beam. The results informed the reconstruction algorithm design. The laser calibration system can deliver light pulses with controlled relative intensity through a rotation of its neutral density (ND) filter wheel settings. A series of template pulse shapes for laser events that vary in intensity from 20-100% is shown in the upper panel of Fig. <ref type="figure">8</ref>. There is no noticeable difference versus the number of photons over the explored range.</p><p>The template pulse shape for different electron impact angles is a critical test for Muon &#119892; -2 experiment, because the positron events curl into the calorimeter at energy dependent angles. As shown in the middle panel of Fig. <ref type="figure">8</ref>, there is a negligible difference between the 0 &#8226; and 15 &#8226; pulse shapes. More noticeable is the slightly changing pulse shape versus impact position of the electron beam on the crystal face. As shown in the bottom panel of Fig. <ref type="figure">8</ref>, when the electron beam is shifted from crystal 24 to its neighbor crystal 25, the region from 5-10 samples becomes somewhat broader. The impact of this effect on the energy scale and resolution is made negligible by building templates integrating over all hit positions each crystal records. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.2.">SiPM gain equalization</head><p>To establish a uniform response across the calorimeter, the SiPM gains must first be matched as closely as possible. Their response depends mainly on the bias voltage and the ambient temperature. At the assembly level, the SiPMs were selected from a larger sample based on similar breakdown voltages according to the provided data sheets from Hamamatsu.</p><p>The operating temperature of the SiPMs within the calorimeter housing depends on their physical placement in the calorimeter. A relatively continuous &#8776; 5 &#8226; C temperature variation exists from the leftmost column to the rightmost column owing to the airflow inlet and outlet. The SiPMs are (approximately) arranged into groups of calorimeter columns that are then connected to one of the four independent bias supplies, which provides an average &#119881; ov appropriate to the group. Each SiPM amplifier board contains a programmable gain amplifier (PGA) with amplification adjustable over the range 2-20&#215; (in 80 steps), which then provides for a final adjustment.</p><p>Photon calibration is the step where the fitted pulse area can be interpreted as the number of photo-electrons (npe), or pixels, fired for a given pulse. The calibration constants are obtained through a procedure using the laser and a series of runs with varying neutral density filter settings as described in <ref type="bibr">[5]</ref><ref type="bibr">[6]</ref><ref type="bibr">[7]</ref>. An iterative sequence was used alternating between laser-calibration runs and adjustments to the PGA gain settings of the SiPMs and the SiPM group bias voltages. After several iterations, equalization of the calibration constant at the level of 8% in RMS was achieved as shown in Fig. <ref type="figure">9</ref>. Further improvement is not necessary, as the energy scale of each calorimeter channel does not depend solely on the SiPM gain but also on the SiPM photo-detection efficiency, the PbF 2 light yield, and the PbF 2 light transmission. An energy-scale equalization and calibration technique utilizing the electron beam is described in the next subsection. Fig. <ref type="figure">8</ref>. Upper: Peak-aligned templates created from different neutral density filter wheels corresponding to different photon yields. Middle: Fit templates created from different beam impact angles. Lower: Fit templates for various beam impact positions when the beam is moved from the center of a crystal to its direct neighbor in increments of 0.2 times a crystal width.  </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.3.">Energy scale equalization and calibration</head><p>In order to extract the energy calibration constants that convert npe to GeV, the 3 GeV electron beam was aimed in turn at the center of each crystal. A single crystal contains approximately 85% of the shower energy, or 2.55 GeV. The number of photo-electrons fired for each of the crystals is shown in Fig. <ref type="figure">10</ref>. The average of &#8776; 2100 npe corresponds to an energy calibration constant of &#8776; 0.82 npe/MeV, consistent with the value reported in <ref type="bibr">[5]</ref>. The accuracy of this technique is somewhat limited by the 0.5 &#215; 1.0 cm 2 beam spot and the precision with which the calorimeter could be aligned to the center of the beam.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.4.">Maintaining SiPM gain calibration over time</head><p>During the test beam run, laser calibration filter wheel scans were performed on average every three hours to establish the stability of the SiPM gain (conversion constant of npe to pulse integral). To correct for the SiPM gain drift between two consecutive filter wheel scans, which is expected owing to environmental temperature fluctuations, a different procedure was employed. A hybrid fill structure was created as shown in Fig. <ref type="figure">6</ref>. The light pulses that strike a SiPM are, in time order: the laser sync pulse, the Cherenkov light from an electromagnetic shower, and a series of approximately 70 in-fill laser pulses. The gain drift correction is made with respect to a reference run, where the average laser pulse area for each crystal is &#119871; 0 . The average of the SiPM response to the series of in-fill laser pulses for each fill &#119894; is &#10216;&#119871; &#119894; &#10217;. A gain correction factor &#119862; SG = &#119871; 0 &#8725;&#10216;&#119871; &#119894; &#10217; is established for each fill.</p><p>To correct for intrinsic fluctuations of the laser, information from source monitors is used similarly. The average response of PIN1 and PIN2 during the reference run is &#119878; 0 , and the average of the in-fill laser pulses measured by source PIN1 and PIN2 is &#10216;&#119878; &#119894; &#10217;. The laser fluctuation correction factor &#119862; LF = &#10216;&#119878; &#119894; &#10217;&#8725;&#119878; 0 is then applied to the gain corrected crystal hit.</p><p>The resultant energy stability is shown in the left panel of Fig. <ref type="figure">11</ref>, while the temperature of the corresponding period is shown in the right panel. The drop in temperature coincides with an increase in the energy scale. In the actual Muon &#119892; -2 experiment, a laser pulse sequence is fired between normal muon storage ring fills.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.5.">Time alignment of digitizer channels</head><p>As multiple WFD5 modules and multiple channels in a WFD5 were used, it was necessary to align these channels in time to enable accurate hit clustering and to optimize the rejection of multi-particle pileup. To align all the digitizer channels within a MicroTCA crate, the laser sync pulse, fired after each trigger, was used. The pulse is distributed to all 54 crystals at the beginning of each event. For example, the time difference distribution of the laser sync pulse between channel 12 and  44 is shown in Fig. <ref type="figure">12</ref>. Two narrow distributions exist, and both of them are not centered around zero. The former is owing to the fact that as the master TTC clock is running at 40 MHz while the digitizers are running at 800 MHz, there can be small differences in the exact digitizer clock tick on which a given ADC will begin digitizing. Because the ADS5401 ADCs always send data from the ''odd internal ADC'' first, we see a clear separation of 2.5 ns or 2 clock ticks (1 clock tick = 1.25 ns) as a result. The non-zero mean value is due to the length difference in light distribution fibers. The width of the distribution will be characterized in the timing resolution section.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.5.1.">Hit clustering</head><p>The hit clustering algorithm used at SLAC is based solely on time partitioning, whereby all hits on a given island within a time separation of &#120549;&#119879; are grouped. The parameter &#120549;&#119879; varied depending on the analysis type. The cluster time was given by the hit time of the highest-energy crystal within a cluster. The electron's incident position is reconstructed using a center-ofgravity method with logarithmic weights <ref type="bibr">[20]</ref>. This weighting accounts for the exponential falloff of the energy deposited in each crystal across the calorimeter. It is calculated by</p><p>where &#119909; &#119894; and &#119910; &#119894; are the coordinates of the crystal column or row &#119894;, respectively, and &#119908; &#119894; is its logarithmic weight given by</p><p>with &#119908; 0 being a free parameter that sets the relative importance of shower tails in the weighting. As shown in Fig. <ref type="figure">13</ref>, the optimal value of &#119908; 0 = 3.5 was determined by minimizing the position resolution, which agrees with Geant4 simulations. The electron beam size, shown  in Fig. <ref type="figure">14</ref>, is found to be approximately twice as wide vertically as horizontally. It was verified with an ePix 20 &#215; 20 mm silicon detector installed between the beamline and the calorimeter.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6.">Performance of the calorimeter system</head><p>This section describes the performance of the calorimeter system as a whole in response to the electron beam. In all cases, the times or energies represent those of the shower clusters. In general, the findings using our full calorimeter with black-wrapped crystals, glued-on SiPMs, optimized SiPM pulse-summing circuits, and the &#119892; -2 custom digitizers, are equal to or better than those published earlier using prototype devices <ref type="bibr">[5]</ref>. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6.1.">Timing resolution</head><p>The timing measurement of the Muon &#119892; -2 calorimeters is driven by three factors: (a) the transit time of the SiPM device, the electronics amplification circuit, and the digitizer electronics; (b) the statistical fluctuation of photons triggering SiPM pixels; and (c) the electromagnetic shower profile fluctuation, the Cherenkov light emission, and the light propagation time. Quantitative analyses of (a) and (b) will be given, along with typical results for (c).</p><p>The timing resolution from (a) and (b) can be extracted using laser events that arrive at all SiPMs at about the same time. The time difference distribution between two WFD5 channels of the same laser event is shown in Fig. <ref type="figure">15</ref>. The solid line is a Gaussian fit to the distribution, and the standard deviation is 27 ps for this particular set of WFD5 channels. The energy dependence of this timing resolution is studied for two different pairs: crystals read out by the same, or different, WFD5s.</p><p>The standard deviation of the time difference distribution is plotted against energy in Fig. <ref type="figure">16</ref>. The difference in the timing resolution between ''different WFD5'' and ''same WFD5'' is attributed to the timing jitter of the 800-MHz clock between two different WFD5s. The data points from each pair are fitted using</p><p>where &#119862; T is the constant term, &#119878; T is the stochastic term, &#120590; n is the noise term, and &#119864; ef f is the effective energy term defined by</p><p>, where &#119864; 1 and &#119864; 2 are measured in the unit of npe. The use of &#119864; ef f is motivated by the fact that there is a variation in laser intensity among calorimeter channels. The value of &#120590; &#119899; is fixed at 5 npe based on digitizer noise level. The &#119862; T term, which is mainly due to the timing jitter, is negligible for timing difference between two channels of the same WFD5. For two channels read out by different WFD5s, &#119862; T is of the order of 25 ps. On the contrary, the &#119878; T term, which is related to the photo-statistics, is consistent between the two groups having an average value of approximately 600 ps.</p><p>To extract the timing resolution of an electromagnetic shower, we studied the time difference between two calorimeter channels for electron events. The distribution of the time difference is shown in Fig. <ref type="figure">17</ref> for two channels from the same WFD5 and different WFD5s. The single channel timing resolution for a 3 GeV electron event is 57&#8725; &#8730; 2 &#8776; 40 ps (dotted line). A systematic and precise way of quantifying this resolution is difficult due to the broad beam size and uncertainty in the beam hit position.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6.2.">Energy resolution and linearity</head><p>Fig. <ref type="figure">18</ref> shows the energy distribution when a 3 GeV beam is centered at a particular crystal. The solid line is a Gaussian fit within a  &#177;2&#120590; range around the mean value. The fitted energy resolution here is 2.7%.</p><p>To extract the energy resolution and linearity functions, beam energies in the range 2.5 to 5 GeV were used. The reconstructed energy distribution for each beam energy was fitted to a Gaussian function to determine the mean and width. The linearity result is shown in Fig. <ref type="figure">19</ref>. The range extends well beyond the decay-energy endpoint for the Muon &#119892; -2 experiment, which is at about 3.1 GeV.   where &#119862; E is a term accounting for the shower containment variance as studied in <ref type="bibr">[5]</ref> and &#119878; E is a stochastic term describing the statistical fluctuation of the electromagnetic shower. The resultant fit is shown in Fig. <ref type="figure">20</ref>. The extracted value of &#119862; E is (1.86 &#177; 0.43)% and the corresponding value for &#119878; E is (3.56 &#177; 0.77)%. Based on this parameterization, the energy resolution at 2 GeV is 3.1%, surpassing the design target of 5%. While the constant term is consistent with that found in <ref type="bibr">[5]</ref>, the resolution is improved by about 11%.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6.3.">Spatial uniformity</head><p>An important aspect of the calorimeter is the spatial uniformity of the response. This aspect was studied by comparing the energy response of the calorimeter for various beam impact positions. Fig. <ref type="figure">21</ref> shows the deviation from the mean reconstructed cluster energy in percent for each channel when the electron beam is impinging on the center of each channel. The homogeneity is better than 2% for noncorner channels. Lower reconstructed energies for corner channels, as well as the uppermost and lowermost rows and leftmost and rightmost columns, are expected due to the leakage of electromagnetic showers. A finer scan in position is also performed by moving the beam across three channels with a step size of 2-4 mm as shown in Fig. <ref type="figure">22</ref>. The reconstructed cluster energy as a function of beam position is stable at the 2% level.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="7.">Summary</head><p>We report on a performance study of the instrumentation for measuring the anomalous precession frequency in the Muon &#119892; -2 experiment at Fermilab. Unique features of this performance study include fast Cherenkov crystals of PbF 2 ; exclusive use of custom 800 MSPS waveform digitizers to digitize the SiPM response; the use of hybrid CPU-GPU and MIDAS DAQ system; the use of art -based event reconstruction framework; and a laser calibration system with a high degree  of pulse-to-pulse intensity stability. Through a series of test beams at SLAC and a final validation presented in this paper, we froze the design of the calorimeter system and went into production for all subsystems. The ''in-ring'' performance of the 24-times-larger calorimeter system will be reported in a future publication.</p></div><note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="1" xml:id="foot_0"><p>Shanghai SICCAS High Technology Corporation, 1295 Dingxi Rd., Shanghai</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" xml:id="foot_1"><p>200050, China.<ref type="bibr">2</ref> Multi-Pixel Photon Counter Model number S12642-4040PA-50.<ref type="bibr">3</ref> Zeiss Resin OK 2030 and Hardener H 950.<ref type="bibr">4</ref> Overvoltage, &#119881; ov = &#119881; ap -&#119881; bd , where &#119881; ap is the applied voltage and &#119881; bd is the breakdown voltage.</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="5" xml:id="foot_2"><p>Tested on a Macbook Pro 2015 with a quad-core processor of 2.5 GHz Intel Core i7.</p></note>
		</body>
		</text>
</TEI>
