<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.3 20210610//EN" "JATS-journalpublishing1-3-mathml3.dtd">
<article article-type="methods-article" dtd-version="1.3" xml:lang="EN" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ali="http://www.niso.org/schemas/ali/1.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<front>
<journal-meta>
<journal-id journal-id-type="publisher-id">Front. Astron. Space Sci.</journal-id>
<journal-title-group>
<journal-title>Frontiers in Astronomy and Space Sciences</journal-title>
<abbrev-journal-title abbrev-type="pubmed">Front. Astron. Space Sci.</abbrev-journal-title>
</journal-title-group>
<issn pub-type="epub">2296-987X</issn>
<publisher>
<publisher-name>Frontiers Media S.A.</publisher-name>
</publisher>
</journal-meta>
<article-meta>
<article-id pub-id-type="publisher-id">1659952</article-id>
<article-id pub-id-type="doi">10.3389/fspas.2025.1659952</article-id>
<article-version article-version-type="Version of Record" vocab="NISO-RP-8-2008"/>
<article-categories>
<subj-group subj-group-type="heading">
<subject>Methods</subject>
</subj-group>
</article-categories>
<title-group>
<article-title>QUBIC: an algorithm for detecting cosmic rays</article-title>
<alt-title alt-title-type="left-running-head">Ferazzoli et al.</alt-title>
<alt-title alt-title-type="right-running-head">
<ext-link ext-link-type="uri" xlink:href="https://doi.org/10.3389/fspas.2025.1659952">10.3389/fspas.2025.1659952</ext-link>
</alt-title>
</title-group>
<contrib-group>
<contrib contrib-type="author" corresp="yes">
<name>
<surname>Ferazzoli</surname>
<given-names>Sofia</given-names>
</name>
<xref ref-type="aff" rid="aff1">
<sup>1</sup>
</xref>
<xref ref-type="aff" rid="aff2">
<sup>2</sup>
</xref>
<xref ref-type="aff" rid="aff3">
<sup>3</sup>
</xref>
<xref ref-type="corresp" rid="c001">&#x2a;</xref>
<uri xlink:href="https://loop.frontiersin.org/people/3013229"/>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Data curation" vocab-term-identifier="https://credit.niso.org/contributor-roles/Data-curation/">Data curation</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Methodology" vocab-term-identifier="https://credit.niso.org/contributor-roles/Methodology/">Methodology</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Software" vocab-term-identifier="https://credit.niso.org/contributor-roles/Software/">Software</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Formal analysis" vocab-term-identifier="https://credit.niso.org/contributor-roles/Formal analysis/">Formal analysis</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Visualization" vocab-term-identifier="https://credit.niso.org/contributor-roles/Visualization/">Visualization</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Writing &#x2013; original draft" vocab-term-identifier="https://credit.niso.org/contributor-roles/Writing &#x2013; original draft/">Writing original draft</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Writing &#x2013; review &#x26; editing" vocab-term-identifier="https://credit.niso.org/contributor-roles/Writing - review &#x26; editing/">Writing - review and editing</role>
</contrib>
<contrib contrib-type="author">
<name>
<surname>Battistelli</surname>
<given-names>Elia Stefano</given-names>
</name>
<xref ref-type="aff" rid="aff1">
<sup>1</sup>
</xref>
<xref ref-type="aff" rid="aff2">
<sup>2</sup>
</xref>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Writing &#x2013; review &#x26; editing" vocab-term-identifier="https://credit.niso.org/contributor-roles/Writing - review &#x26; editing/">Writing - review and editing</role>
</contrib>
<contrib contrib-type="author">
<name>
<surname>Masi</surname>
<given-names>Silvia</given-names>
</name>
<xref ref-type="aff" rid="aff1">
<sup>1</sup>
</xref>
<xref ref-type="aff" rid="aff2">
<sup>2</sup>
</xref>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Writing &#x2013; review &#x26; editing" vocab-term-identifier="https://credit.niso.org/contributor-roles/Writing - review &#x26; editing/">Writing - review and editing</role>
</contrib>
<contrib contrib-type="author">
<name>
<surname>Barbavara</surname>
<given-names>E.</given-names>
</name>
<xref ref-type="aff" rid="aff1">
<sup>1</sup>
</xref>
<xref ref-type="aff" rid="aff2">
<sup>2</sup>
</xref>
<xref ref-type="aff" rid="aff3">
<sup>3</sup>
</xref>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Writing &#x2013; review &#x26; editing" vocab-term-identifier="https://credit.niso.org/contributor-roles/Writing - review &#x26; editing/">Writing - review and editing</role>
</contrib>
<contrib contrib-type="author">
<name>
<surname>Coppolecchia</surname>
<given-names>A.</given-names>
</name>
<xref ref-type="aff" rid="aff1">
<sup>1</sup>
</xref>
<xref ref-type="aff" rid="aff2">
<sup>2</sup>
</xref>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Writing &#x2013; review &#x26; editing" vocab-term-identifier="https://credit.niso.org/contributor-roles/Writing - review &#x26; editing/">Writing - review and editing</role>
</contrib>
<contrib contrib-type="author">
<name>
<surname>Costanza</surname>
<given-names>B.</given-names>
</name>
<xref ref-type="aff" rid="aff4">
<sup>4</sup>
</xref>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Writing &#x2013; review &#x26; editing" vocab-term-identifier="https://credit.niso.org/contributor-roles/Writing - review &#x26; editing/">Writing - review and editing</role>
</contrib>
<contrib contrib-type="author">
<name>
<surname>De Bernardis</surname>
<given-names>P.</given-names>
</name>
<xref ref-type="aff" rid="aff1">
<sup>1</sup>
</xref>
<xref ref-type="aff" rid="aff2">
<sup>2</sup>
</xref>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Writing &#x2013; review &#x26; editing" vocab-term-identifier="https://credit.niso.org/contributor-roles/Writing - review &#x26; editing/">Writing - review and editing</role>
</contrib>
<contrib contrib-type="author">
<name>
<surname>De Gasperis</surname>
<given-names>G.</given-names>
</name>
<xref ref-type="aff" rid="aff1">
<sup>1</sup>
</xref>
<xref ref-type="aff" rid="aff2">
<sup>2</sup>
</xref>
<uri xlink:href="https://loop.frontiersin.org/people/3187983"/>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Writing &#x2013; review &#x26; editing" vocab-term-identifier="https://credit.niso.org/contributor-roles/Writing - review &#x26; editing/">Writing - review and editing</role>
</contrib>
<contrib contrib-type="author">
<name>
<surname>Gervasi</surname>
<given-names>M.</given-names>
</name>
<xref ref-type="aff" rid="aff5">
<sup>5</sup>
</xref>
<xref ref-type="aff" rid="aff6">
<sup>6</sup>
</xref>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Writing &#x2013; review &#x26; editing" vocab-term-identifier="https://credit.niso.org/contributor-roles/Writing - review &#x26; editing/">Writing - review and editing</role>
</contrib>
<contrib contrib-type="author">
<name>
<surname>Hamilton</surname>
<given-names>J.-Ch.</given-names>
</name>
<xref ref-type="aff" rid="aff7">
<sup>7</sup>
</xref>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Writing &#x2013; review &#x26; editing" vocab-term-identifier="https://credit.niso.org/contributor-roles/Writing - review &#x26; editing/">Writing - review and editing</role>
</contrib>
<contrib contrib-type="author">
<name>
<surname>Miron Granese</surname>
<given-names>N.</given-names>
</name>
<xref ref-type="aff" rid="aff4">
<sup>4</sup>
</xref>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Writing &#x2013; review &#x26; editing" vocab-term-identifier="https://credit.niso.org/contributor-roles/Writing - review &#x26; editing/">Writing - review and editing</role>
</contrib>
<contrib contrib-type="author">
<name>
<surname>Isopi</surname>
<given-names>G.</given-names>
</name>
<xref ref-type="aff" rid="aff1">
<sup>1</sup>
</xref>
<xref ref-type="aff" rid="aff2">
<sup>2</sup>
</xref>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Writing &#x2013; review &#x26; editing" vocab-term-identifier="https://credit.niso.org/contributor-roles/Writing - review &#x26; editing/">Writing - review and editing</role>
</contrib>
<contrib contrib-type="author">
<name>
<surname>O&#x2019;Sullivan</surname>
<given-names>C.</given-names>
</name>
<xref ref-type="aff" rid="aff8">
<sup>8</sup>
</xref>
<uri xlink:href="https://loop.frontiersin.org/people/3298086"/>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Writing &#x2013; review &#x26; editing" vocab-term-identifier="https://credit.niso.org/contributor-roles/Writing - review &#x26; editing/">Writing - review and editing</role>
</contrib>
<contrib contrib-type="author">
<name>
<surname>Paiella</surname>
<given-names>A.</given-names>
</name>
<xref ref-type="aff" rid="aff1">
<sup>1</sup>
</xref>
<xref ref-type="aff" rid="aff2">
<sup>2</sup>
</xref>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Writing &#x2013; review &#x26; editing" vocab-term-identifier="https://credit.niso.org/contributor-roles/Writing - review &#x26; editing/">Writing - review and editing</role>
</contrib>
<contrib contrib-type="author">
<name>
<surname>Piat</surname>
<given-names>M.</given-names>
</name>
<xref ref-type="aff" rid="aff9">
<sup>9</sup>
</xref>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Writing &#x2013; review &#x26; editing" vocab-term-identifier="https://credit.niso.org/contributor-roles/Writing - review &#x26; editing/">Writing - review and editing</role>
</contrib>
<contrib contrib-type="author">
<name>
<surname>S&#xe1;nchez</surname>
<given-names>F.</given-names>
</name>
<xref ref-type="aff" rid="aff10">
<sup>10</sup>
</xref>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Writing &#x2013; review &#x26; editing" vocab-term-identifier="https://credit.niso.org/contributor-roles/Writing - review &#x26; editing/">Writing - review and editing</role>
</contrib>
<contrib contrib-type="author">
<name>
<surname>Sc&#xf3;ccola</surname>
<given-names>C.</given-names>
</name>
<xref ref-type="aff" rid="aff4">
<sup>4</sup>
</xref>
<xref ref-type="aff" rid="aff11">
<sup>11</sup>
</xref>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Writing &#x2013; review &#x26; editing" vocab-term-identifier="https://credit.niso.org/contributor-roles/Writing - review &#x26; editing/">Writing - review and editing</role>
</contrib>
<contrib contrib-type="author">
<name>
<surname>Torchinsky</surname>
<given-names>S. A.</given-names>
</name>
<xref ref-type="aff" rid="aff7">
<sup>7</sup>
</xref>
<xref ref-type="aff" rid="aff12">
<sup>12</sup>
</xref>
<uri xlink:href="https://loop.frontiersin.org/people/2965566"/>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Writing &#x2013; review &#x26; editing" vocab-term-identifier="https://credit.niso.org/contributor-roles/Writing - review &#x26; editing/">Writing - review and editing</role>
</contrib>
<contrib contrib-type="author">
<name>
<surname>Zannoni</surname>
<given-names>M.</given-names>
</name>
<xref ref-type="aff" rid="aff5">
<sup>5</sup>
</xref>
<xref ref-type="aff" rid="aff6">
<sup>6</sup>
</xref>
<uri xlink:href="https://loop.frontiersin.org/people/2277881"/>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Writing &#x2013; review &#x26; editing" vocab-term-identifier="https://credit.niso.org/contributor-roles/Writing - review &#x26; editing/">Writing - review and editing</role>
</contrib>
</contrib-group>
<aff id="aff1">
<label>1</label>
<institution>Dipartimento di Fisica, Sapienza Universit&#xe0; di Roma</institution>, <city>Roma</city>, <country country="IT">Italy</country>
</aff>
<aff id="aff2">
<label>2</label>
<institution>INFN sezione di Roma</institution>, <city>Roma</city>, <country country="IT">Italy</country>
</aff>
<aff id="aff3">
<label>3</label>
<institution>Dipartimento di Fisica, Universit&#xe0; di Roma Tor Vergata</institution>, <city>Roma</city>, <country country="IT">Italy</country>
</aff>
<aff id="aff4">
<label>4</label>
<institution>Facultad de Ciencias Astron&#xf3;micas y Geof&#xed;sicas (Universidad Nacional de La Plata)</institution>, <city>La Plata</city>, <country country="AR">Argentina</country>
</aff>
<aff id="aff5">
<label>5</label>
<institution>Dipartimento di Fisica, Universit&#xe0; di Milano-Bicocca</institution>, <city>Milano</city>, <country country="IT">Italy</country>
</aff>
<aff id="aff6">
<label>6</label>
<institution>INFN sezione di Milano-Bicocca</institution>, <city>Milano</city>, <country country="IT">Italy</country>
</aff>
<aff id="aff7">
<label>7</label>
<institution>Laboratoire Astroparticule et Cosmologie (APC), Universit&#xe9; Paris-Cit&#xe9;</institution>, <city>Paris</city>, <country country="FR">France</country>
</aff>
<aff id="aff8">
<label>8</label>
<institution>Department of Experimental Physics, National University of Ireland</institution>, <city>Maynooth</city>, <country country="IE">Ireland</country>
</aff>
<aff id="aff9">
<label>9</label>
<institution>Universit&#xe9; de Paris, Centre National de la Recherche Scientifique (CNRS), Astroparticule et Cosmologie</institution>, <city>Paris</city>, <country country="FR">France</country>
</aff>
<aff id="aff10">
<label>10</label>
<institution>Instituto de Tecnolog&#xed;as en Detecci&#xf3;n y Astropart&#xed;culas (ITeDA), CONICET&#x2013;CNEA&#x2013;UNSAM</institution>, <city>Buenos Aires</city>, <country country="AR">Argentina</country>
</aff>
<aff id="aff11">
<label>11</label>
<institution>Departamento de F&#xed;sica, Facultad de Ciencias F&#xed;sicas y Matem&#xe0;ticas, Universidad de Chile</institution>, <city>Santiago</city>, <country country="CL">Chile</country>
</aff>
<aff id="aff12">
<label>12</label>
<institution>Observatoire de Paris, Universit&#xe9; PSL</institution>, <city>Paris</city>, <country country="FR">France</country>
</aff>
<author-notes>
<corresp id="c001">
<label>&#x2a;</label>Correspondence: Sofia Ferazzoli, <email xlink:href="mailto:sofia.ferazzoli@roma1.infn.it">sofia.ferazzoli@roma1.infn.it</email>
</corresp>
</author-notes>
<pub-date publication-format="electronic" date-type="pub" iso-8601-date="2026-01-08">
<day>08</day>
<month>01</month>
<year>2026</year>
</pub-date>
<pub-date publication-format="electronic" date-type="collection">
<year>2025</year>
</pub-date>
<volume>12</volume>
<elocation-id>1659952</elocation-id>
<history>
<date date-type="received">
<day>04</day>
<month>07</month>
<year>2025</year>
</date>
<date date-type="rev-recd">
<day>01</day>
<month>12</month>
<year>2025</year>
</date>
<date date-type="accepted">
<day>02</day>
<month>12</month>
<year>2025</year>
</date>
</history>
<permissions>
<copyright-statement>Copyright &#xa9; 2026 Ferazzoli, Battistelli, Masi, Barbavara, Coppolecchia, Costanza, De Bernardis, De Gasperis, Gervasi, Hamilton, Miron Granese, Isopi, O&#x2019;Sullivan, Paiella, Piat, S&#xe1;nchez, Sc&#xf3;ccola, Torchinsky and Zannoni.</copyright-statement>
<copyright-year>2026</copyright-year>
<copyright-holder>Ferazzoli, Battistelli, Masi, Barbavara, Coppolecchia, Costanza, De Bernardis, De Gasperis, Gervasi, Hamilton, Miron Granese, Isopi, O&#x2019;Sullivan, Paiella, Piat, S&#xe1;nchez, Sc&#xf3;ccola, Torchinsky and Zannoni</copyright-holder>
<license>
<ali:license_ref start_date="2026-01-08">https://creativecommons.org/licenses/by/4.0/</ali:license_ref>
<license-p>This is an open-access article distributed under the terms of the <ext-link ext-link-type="uri" xlink:href="https://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution License (CC BY)</ext-link>. The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.</license-p>
</license>
</permissions>
<abstract>
<sec>
<title>Introduction</title>
<p>QUBIC (the Q <inline-formula id="inf1">
<mml:math id="m1">
<mml:mrow>
<mml:mi>&#x26;</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> U Bolometric Interferometer for Cosmology) is an international ground-based experiment designed to observe the polarization of the cosmic microwave background. It has been installed at a high-altitude site in Alto Chorrillos, Argentina (4,869 m above sea level). At this altitude, the cosmic ray flux is high, thus requiring an advanced algorithm for their detection and removal from raw data. Cosmic rays can leave two types of traces in the data: above and below the noise level. This article describes an algorithm for detecting the above-noise traces.</p>
</sec>
<sec>
<title>Methods</title>
<p>An algorithm was developed for detecting cosmic ray events in the time-ordered data (TOD) of transition-edge sensor detectors (TES bolometers). Raw signals were pre-processed to obtain de-noised data. Events were searched by applying a threshold to isolate segments showing a rapid increase and subsequent exponential decay. The final goal is to fit each segment to extract the time scale of the candidate and verify the fit quality statistically.</p>
</sec>
<sec>
<title>Results</title>
<p>The cosmic ray detection algorithm was applied to datasets acquired in Salta (Argentina) in 2022, during a testing campaign. So far, no candidates have been found after exploring different thresholds for initiating the cosmic ray search, along with various combinations of minimum points required for the sudden increase and exponential decay expected in the signal.</p>
</sec>
<sec>
<title>Discussion</title>
<p>We select only high signal-to-noise regions to find the most energetic cosmic ray candidates matching the filters proposed in the method. The null result is not surprising since, for the energy range of cosmic muons of interest here (approximately <inline-formula id="inf2">
<mml:math id="m2">
<mml:mrow>
<mml:mo stretchy="false">[</mml:mo>
<mml:mrow>
<mml:mn>1,100</mml:mn>
</mml:mrow>
<mml:mo stretchy="false">]</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula> Gev), the expected energy deposited in our very thin bolometer membranes is small and produces a small signal with respect to the measured noise. However, this methodology could be applied to future longer campaigns to estimate, from the largest (and rare) cosmic ray energy depositions, the TES time constants.</p>
</sec>
</abstract>
<kwd-group>
<kwd>bolometer time constant</kwd>
<kwd>CMBR polarization</kwd>
<kwd>cosmic rays</kwd>
<kwd>data analysis</kwd>
<kwd>transition-edge sensors</kwd>
</kwd-group>
<funding-group>
<funding-statement>The author(s) declared that financial support was received for this work and/or its publication. QUBIC is funded by the following agencies. France: ANR (Agence Nationale de la Recherche) 2012 and 2014, DIM-ACAV (Domaine d&#x2019;Int&#xe9;r&#xeA;t Majeur-Astronomie et Conditions d&#x2019;Apparition de la Vie), CNRS/IN2P3 (Centre national de la recherche scientifique/Institut national de physique nucl&#xe9;aire et de physique des particules), CNRS/INSU (Centre national de la recherche scientifique/Institut national et al. de sciences de l&#x2019;univers). Italy: CNR/PNRA (Consiglio Nazionale delle Ricerche/Programma Nazionale Ricerche in Antartide) until 2016, INFN (Istituto Nazionale di Fisica Nucleare) since 2017. Argentina: MINCyT (Ministerio de Ciencia, Tecnolog&#xed;a e Innovaci&#xf3;n), CNEA (Comisi&#xf3;n Nacional de Energ&#xed;a At&#xf3;mica), CONICET (Consejo Nacional de Investigaciones Cien&#xed;ficas y T&#xe9;cnicas).</funding-statement>
</funding-group>
<counts>
<fig-count count="2"/>
<table-count count="0"/>
<equation-count count="14"/>
<ref-count count="7"/>
<page-count count="7"/>
</counts>
<custom-meta-group>
<custom-meta>
<meta-name>section-at-acceptance</meta-name>
<meta-value>Astronomical Instrumentation</meta-value>
</custom-meta>
</custom-meta-group>
</article-meta>
</front>
<body>
<sec sec-type="intro" id="s1">
<label>1</label>
<title>Introduction</title>
<p>QUBIC (the Q <inline-formula id="inf3">
<mml:math id="m3">
<mml:mrow>
<mml:mi>&#x26;</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> U Bolometric Interferometer for Cosmology) is an international ground-based experiment designed to observe the cosmic microwave background (CMB) polarization, which is one of the major challenges in observational cosmology. Optimized for the measurement of B-mode polarization, QUBIC is designed with a novel approach that combines the advantages of interferometry, in terms of control of the systematic effects, with those of transition-edge sensors (TESs), in terms of wide-band, background-limited sensitivity. QUBIC features an optical system consisting of back-to-back horns that select the relevant baselines and an optical combiner that focuses radiation onto a bolometric focal plane. The optical combiner forms interference fringes, while the bolometers integrate power over timescales that are much longer than the period of the incoming electromagnetic waves. The whole instrument operates at cryogenic temperatures within a large cryostat. The current version, known as the QUBIC technological demonstrator (QUBIC TD), is composed of an array of 64 back-to-back horns and mirrors reduced according to the illumination of the 64 horns. A single array of 256 TES bolometers, readout by two application-specific integrated circuits (ASICs), operates at 150 GHz (<xref ref-type="bibr" rid="B3">Hamilton et al., 2022</xref>).</p>
<p>As QUBIC operates in the millimeter wave region of the electromagnetic spectrum, the instrument needs a clean and dry atmosphere. Consequently, it has been installed at a high-altitude site in Alto Chorrillos, Argentina (4,869 m above sea level). At this altitude, there is a significant impact on the measurements caused by cosmic rays (CRs), mainly produced by high energetic cosmic ray muons interacting with the detectors. We expect that most of the detected CRs originate from interactions of primary CRs at the top of the Earth&#x2019;s atmosphere. They are secondary particles resulting from air showers triggered by hadronic interactions between primary CRs and atmospheric nuclei. There are two types of traces left in the data by CRs: above and below detector noise. CR events are of particular importance for QUBIC for two complementary reasons. From an observational standpoint, CRs represent a source of fast transients that can significantly contaminate the time-ordered data (TOD). Their sudden increase and exponential decay break the statistical stationarity of the noise, introduce non-Gaussian features, and, if not properly identified and removed, can propagate into the map-making stage, ultimately degrading the sensitivity to CMB polarization. At the same time, CRs provide a valuable diagnostic tool for the instrument: each CR impact deposits an almost instantaneous energy impulse in the TES, exciting the thermal response of the detector. The decay that follows this excitation directly probes the effective time constant of the TES. Since the TES response is described by a single-pole exponential in the time domain (equivalently, by a first-order low-pass filter in the frequency domain), the time constant extracted from CR events offers an independent and natural in-flight measurement of the instrument&#x2019;s transfer function. Knowing this time constant is crucial for recovering signal linearity: once it is measured, the TOD can, in principle, be deconvolved from the detector transfer function, thus correcting for the low-pass filtering introduced by the TES and enabling a more faithful reconstruction of the sky signal. For these reasons, detecting CR events is essential both to preserve data quality and exploit the diagnostic information they carry about the instrument&#x2019;s temporal response. In this article, an algorithm is described to detect the leftover traces above noise, i.e., in a high signal-to-noise region.</p>
<p>When an amount of energy <inline-formula id="inf4">
<mml:math id="m4">
<mml:mrow>
<mml:mi mathvariant="normal">&#x394;</mml:mi>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> is deposited in a bolometer (for example, due to the impact of a CR) in a time much shorter than the bolometer time constant, the temperature increase in the bolometer is <inline-formula id="inf5">
<mml:math id="m5">
<mml:mrow>
<mml:mi mathvariant="normal">&#x394;</mml:mi>
<mml:mi>T</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mi mathvariant="normal">&#x394;</mml:mi>
<mml:mi>E</mml:mi>
<mml:mo>/</mml:mo>
<mml:mi>C</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula>, where C is the heat capacity of the detector. This peak level is achieved in less than one time constant; the subsequent decay, instead, is regulated by the time constant itself. If the noise of a bolometer corresponds to physical temperature fluctuations smaller than <inline-formula id="inf6">
<mml:math id="m6">
<mml:mrow>
<mml:mi mathvariant="normal">&#x394;</mml:mi>
<mml:mi>E</mml:mi>
<mml:mo>/</mml:mo>
<mml:mi>C</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula>, most of the CR-induced spikes will be evident in the bolometer TOD; otherwise, and in any case, the presence of small signal spikes due to CRs and hidden in the noise increases the noise variance (<xref ref-type="bibr" rid="B5">Masi et al., 2010</xref>). In voltage-biased TES, the effective time constant is not set solely by the intrinsic ratio (<xref ref-type="disp-formula" rid="e1">Equation 1</xref>)<disp-formula id="e1">
<mml:math id="m7">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c4;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mi>C</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>G</mml:mi>
</mml:mrow>
</mml:mfrac>
<mml:mo>,</mml:mo>
</mml:mrow>
</mml:math>
<label>(1)</label>
</disp-formula>where <inline-formula id="inf7">
<mml:math id="m8">
<mml:mrow>
<mml:mi>G</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> is the thermal conductance to the bath. Biasing in the superconducting&#x2013;normal transition establishes a strong negative electro-thermal feedback (ETF) with loop gain (<xref ref-type="disp-formula" rid="e2">Equation 2</xref>):<disp-formula id="e2">
<mml:math id="m9">
<mml:mrow>
<mml:mi mathvariant="script">L</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mi>&#x3b1;</mml:mi>
<mml:mfrac>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>P</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>bias</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mrow>
<mml:mi>G</mml:mi>
<mml:mi>T</mml:mi>
</mml:mrow>
</mml:mfrac>
<mml:mo>,</mml:mo>
<mml:mspace width="2em"/>
<mml:mi>&#x3b1;</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mi>T</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>R</mml:mi>
</mml:mrow>
</mml:mfrac>
<mml:mfrac>
<mml:mrow>
<mml:mi>&#x2202;</mml:mi>
<mml:mi>R</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x2202;</mml:mi>
<mml:mi>T</mml:mi>
</mml:mrow>
</mml:mfrac>
<mml:mo>,</mml:mo>
</mml:mrow>
</mml:math>
<label>(2)</label>
</disp-formula>where <inline-formula id="inf8">
<mml:math id="m10">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>P</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>bias</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> is the Joule power and <inline-formula id="inf9">
<mml:math id="m11">
<mml:mrow>
<mml:mi>&#x3b1;</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> is the logarithmic temperature sensitivity of the TES resistance. Under typical operating conditions, the detector behaves as a first-order system, with a shortened effective thermal time constant (<xref ref-type="disp-formula" rid="e3">Equation 3</xref>),<disp-formula id="e3">
<mml:math id="m12">
<mml:mrow>
<mml:mi>&#x3c4;</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c4;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mo>&#x2b;</mml:mo>
<mml:mi mathvariant="script">L</mml:mi>
</mml:mrow>
</mml:mfrac>
<mml:mo>,</mml:mo>
</mml:mrow>
</mml:math>
<label>(3)</label>
</disp-formula>
</p>
<p>often an order of magnitude faster than <inline-formula id="inf10">
<mml:math id="m13">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c4;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula>. Consequently, the decay phase of CR-induced spikes is governed by ETF dynamics rather than by the bare thermal capacity and must be modeled according to <xref ref-type="bibr" rid="B4">Irwin and Hilton (2005)</xref>. The decay constant <inline-formula id="inf11">
<mml:math id="m14">
<mml:mrow>
<mml:mi>&#x3c4;</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> measured from the exponential relaxation of CR-induced transients corresponds directly to the effective thermal time constant introduced in <xref ref-type="disp-formula" rid="e3">Equation 3</xref>. A CR deposits energy impulsively, driving the TES out of equilibrium on a timescale much shorter than its response time, so the subsequent recovery is entirely determined by the ETF dynamics and bath temperature that define <inline-formula id="inf12">
<mml:math id="m15">
<mml:mrow>
<mml:mi>&#x3c4;</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula>. Thus, the decay observed in the TOD is a direct expression of the TES single-pole response modeled using <xref ref-type="disp-formula" rid="e4">Equation 4</xref>:<disp-formula id="e4">
<mml:math id="m16">
<mml:mrow>
<mml:mi>f</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x3d;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3c4;</mml:mi>
</mml:mrow>
</mml:mfrac>
</mml:mrow>
</mml:msup>
<mml:mo>.</mml:mo>
</mml:mrow>
</mml:math>
<label>(4)</label>
</disp-formula>
</p>
<p>Knowing <inline-formula id="inf13">
<mml:math id="m17">
<mml:mrow>
<mml:mi>&#x3c4;</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> also provides access to the instrument&#x2019;s transfer function, which behaves as a low-pass filter in the frequency domain. The readout system adds another low-pass filter, which is expected to be much faster than the detector time constant. This creates a fast rise-time, which is not analyzed here.</p>
<p>Another essential component of the QUBIC readout system is the superconducting quantum interference device (SQUID). The direction of the SQUID coil winding, which couples the SQUID to the TES, affects the current&#x2013;voltage (IV) response and TES polarity and must be considered during data analysis to correctly interpret the direction of CR-induced transients.</p>
</sec>
<sec sec-type="methods" id="s2">
<label>2</label>
<title>Methods</title>
<p>To investigate the impact of CR candidates on TODs, a detection algorithm was developed. The description of the methodology used to perform this analysis would focus on a single TES of the focal plane; however, through multiprocessing, the algorithm developed in Python can perform the analysis of the entire focal plane.</p>
<p>The dataset analyzed in this work was acquired during the QUBIC technical run of 2022 in Salta (1,150 m a.s.l.). It consists of TODs from the 256 TES detectors of the focal plane, sampled at 157 Hz, and includes azimuthal scanning observations performed under stable cryogenic and readout conditions. Prior to analysis, all datasets underwent the standard QUBIC quality-control procedures, including verification of TES stability through IV-curve checks. Only TES passing these controls were included in the final CR analysis.</p>
<sec id="s2-1">
<label>2.1</label>
<title>Data pre-processing</title>
<p>Before searching for cosmic rays, the raw TODs are pre-processed to remove low-frequency trends and optimize the sensitivity to CR impulses. We apply this pre-processing procedure exclusively during azimuthal scans (in the case of fixed pointing, a simple median is removed from the signal), which involve repeated forward and backward telescope movements in azimuth at a fixed elevation to map specific regions of the sky. The objective is to obtain clean, synchronized sweeps from the raw azimuth signal and prepare these data for subsequent analysis. The pre-processing consists of the following steps:<list list-type="simple">
<list-item>
<p>1. Sweep segmentation:</p>
</list-item>
</list>
</p>
<p>Raw azimuth data are segmented into forward and backward azimuth scans by analyzing the angular velocity, computed as the time derivative of azimuth. A median filter is applied to reduce noise and irregularities, and sweeps are identified based on threshold crossings of the angular velocity.<list list-type="simple">
<list-item>
<p>2. Sweep labeling and indexing:</p>
</list-item>
</list>
</p>
<p>Each identified forward or backward azimuth scan is labeled and assigned a unique index, enabling clear identification of the data points corresponding to specific sweeps and directions.<list list-type="simple">
<list-item>
<p>3. Time synchronization and interpolation:</p>
</list-item>
</list>
</p>
<p>Segmented azimuth data are mapped onto the electronics&#x2019; time base through interpolation, ensuring alignment between the azimuth data and the electronic system&#x2019;s sampling times.<list list-type="simple">
<list-item>
<p>4. Baseline correction:</p>
</list-item>
</list>
</p>
<p>For each forward and backward azimuth scan, the median value of the signal is subtracted, removing any offset between individual sweeps.<list list-type="simple">
<list-item>
<p>5. Trend removal:</p>
</list-item>
</list>
</p>
<p>The corrected signals are grouped into macro-bins. Trends and slow drifts within each macro-bin are estimated and subtracted through a second-order polynomial fitting, resulting in a stabilized and centered dataset.<list list-type="simple">
<list-item>
<p>6. Final smoothing:</p>
</list-item>
</list>
</p>
<p>Residual irregularities at sweep boundaries are corrected by linearly interpolating between the start and end points of each sweep, removing any invalid data points in the process. These invalid points may be caused by scan instabilities occurring at the edges of the back-and-forth motion. An example demonstrating the correction and cleaning method applied to the TOD is provided in <xref ref-type="fig" rid="F1">Figure 1</xref>.</p>
<fig id="F1" position="float">
<label>FIGURE 1</label>
<caption>
<p>TOD of TES 33 before (blue) and after (orange) the pre-processing procedure.</p>
</caption>
<graphic xlink:href="fspas-12-1659952-g001.tif">
<alt-text content-type="machine-generated">Line graph showing raw TOD and processed TOD over time in seconds. The raw TOD, in blue, fluctuates widely, peaking around 240,000 ADU. The processed TOD, in orange, remains mostly stable around zero. Time spans from 0 to 13,000 seconds.</alt-text>
</graphic>
</fig>
<p>The direction of SQUID coil winding is also taken into account. In cases where coils are wound in the opposite direction (e.g., counterclockwise), the IV characteristics&#x2014;and presumably the spikes due to CRs, are inverted. Accordingly, the TES signal is sign-corrected to maintain a consistent analysis framework for transient direction.</p>
</sec>
<sec id="s2-2">
<label>2.2</label>
<title>Candidate identification</title>
<p>The signal from a CR candidate can be modeled as a vertical linear growth, followed by a single-pole exponential decreasing trend. Segmentation techniques isolate signals corresponding to potential transient events (CR candidates), ensuring that each analyzed segment accurately represents an individual occurrence. We defined the candidate search region using a high signal-to-noise ratio (SNR) threshold, set to three, four, and five times the signal&#x2019;s standard deviation plus the average value of the signal, to explore the parameter space of the search algorithm. When a signal exceeds the threshold, it triggers the search for the characteristic CR pattern. The algorithm determines whether the data points immediately following the initial trigger point conform to an exponential decay. This check is applied particularly to the first point above the threshold because the method is designed to detect prominent signal bumps, whose decaying nature is immediately identified after the bump.</p>
<p>The algorithm is sensitive to such trends even if their amplitude falls below the initial detection threshold as long as it remains above the baseline defined by the signal&#x2019;s average plus its standard deviation.</p>
<p>Concurrently, we explored other parameters, including the minimum number of points required to define the vertical linear growth (1, 2, and 3) and the exponential decreasing trend (2, 3, 4, 5, and 6).</p>
<p>To illustrate the behavior of the detection pipeline and the fitting strategy adopted in this work, <xref ref-type="fig" rid="F2">Figure 2</xref> presents the examples of candidates that have been identified, removing the restrictive filters explained so far. The signal exhibits a small increase, followed by an exponential decay, and was therefore fitted using the model described in <xref ref-type="sec" rid="s2-3">Section 2.3</xref>, <xref ref-type="disp-formula" rid="e5">Equation 5</xref>.</p>
<fig id="F2" position="float">
<label>FIGURE 2</label>
<caption>
<p>Detection of cosmic ray candidates without the restrictive filters.</p>
</caption>
<graphic xlink:href="fspas-12-1659952-g002.tif">
<alt-text content-type="machine-generated">Graphs depicting decay analysis of three candidates with candidate numbers four, five, and six. Each graph shows cleaned signal versus time, with different colored data points and fitted decay lines. Text boxes indicate decay parameters such as tau, chi-squared, p-value, and slope. Below, residual plots display the difference between model and data over time for each candidate, labeled &#x22;Exp. decay residuals.&#x22; Graph titles and axis labels are included for clarity.</alt-text>
</graphic>
</fig>
<p>Although the fit formally converges, these candidates fail the pipeline because they do not exhibit a pronounced bump in the increasing part of the signal, which is characteristic of a high-energy cosmic ray event, and they may represent signal artifacts. As a result, they do not pass the validation steps required by the algorithm; therefore, the events do not correspond to a cosmic ray-induced transient but are instead compatible with instrumental fluctuations or external interference. Events of this type are not selected by the algorithm, and no CR candidates are found in the dataset analyzed in this work.</p>
</sec>
<sec id="s2-3">
<label>2.3</label>
<title>Signal fitting procedures</title>
<p>For each identified candidate, a two-stage fitting procedure is applied. Initially, the increasing edge is characterized using linear regression to estimate the slope. Subsequently, the following exponential decay model is fitted to the decay profile using non-linear least squares optimization:<disp-formula id="e5">
<mml:math id="m18">
<mml:mrow>
<mml:mi>f</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x3d;</mml:mo>
<mml:mi>A</mml:mi>
<mml:mo>&#x2b;</mml:mo>
<mml:mi>B</mml:mi>
<mml:mspace width="0.3333em"/>
<mml:msup>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3c4;</mml:mi>
</mml:mrow>
</mml:mfrac>
</mml:mrow>
</mml:msup>
<mml:mo>,</mml:mo>
</mml:mrow>
</mml:math>
<label>(5)</label>
</disp-formula>where <inline-formula id="inf14">
<mml:math id="m19">
<mml:mrow>
<mml:mi>A</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> is an offset, <inline-formula id="inf15">
<mml:math id="m20">
<mml:mrow>
<mml:mi>B</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> is the amplitude of the event, <inline-formula id="inf16">
<mml:math id="m21">
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> is the temporal array, and <inline-formula id="inf17">
<mml:math id="m22">
<mml:mrow>
<mml:mi>&#x3c4;</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> is the time constant. This process yields the time constant associated with the energy dissipation following the event.</p>
</sec>
<sec id="s2-4">
<label>2.4</label>
<title>Statistical validation</title>
<p>The reliability of the fitted models is assessed using chi-square tests, <italic>p</italic>-value estimations, and residual analyses. These statistical metrics quantify the agreement between the observed data and the model, providing a framework for validating each time-scale estimation.</p>
<p>First, to assess whether a candidate truly follows an exponentially decreasing trend, the natural logarithm of the decreasing points is computed. Then, the difference between consecutive log-transformed values is calculated. If this difference deviates by more than <inline-formula id="inf18">
<mml:math id="m23">
<mml:mrow>
<mml:mn>2</mml:mn>
<mml:mi>&#x3c3;</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> from its average value, the candidate is discarded. The <inline-formula id="inf19">
<mml:math id="m24">
<mml:mrow>
<mml:mn>2</mml:mn>
<mml:mi>&#x3c3;</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> threshold represents the <inline-formula id="inf20">
<mml:math id="m25">
<mml:mrow>
<mml:mn>95</mml:mn>
<mml:mi>%</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> confidence interval of the nearly Gaussian noise, rejecting points that are statistically incompatible with a single-exponential decay at a significance level <inline-formula id="inf21">
<mml:math id="m26">
<mml:mrow>
<mml:mi>&#x3b1;</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>0.05</mml:mn>
</mml:mrow>
</mml:math>
</inline-formula> (where <inline-formula id="inf22">
<mml:math id="m27">
<mml:mrow>
<mml:mi>&#x3b1;</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> is the probability of a Type-I error, i.e., falsely rejecting a true exponential model); tighter <inline-formula id="inf23">
<mml:math id="m28">
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mi>&#x3c3;</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> or looser <inline-formula id="inf24">
<mml:math id="m29">
<mml:mrow>
<mml:mn>3</mml:mn>
<mml:mi>&#x3c3;</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> bounds would eliminate too many decays or retain too many spurious decays, respectively. Using the logarithm of the decreasing trend provides two main benefits:<list list-type="bullet">
<list-item>
<p>It emphasizes small variations, allowing for better control over how individual points of a candidate change.</p>
</list-item>
<list-item>
<p>It enables the use of Pearson&#x2019;s test, which is not suitable for testing non-linear relationships between points.</p>
</list-item>
</list>
</p>
<p>Regarding Pearson&#x2019;s test, the Pearson correlation coefficient <inline-formula id="inf25">
<mml:math id="m30">
<mml:mrow>
<mml:mi>r</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> and the <italic>p</italic>-value <inline-formula id="inf26">
<mml:math id="m31">
<mml:mrow>
<mml:mi>p</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> are also used as criteria to reject candidates. In particular, the thresholds used in the algorithm are <inline-formula id="inf27">
<mml:math id="m32">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>r</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>0.9</mml:mn>
</mml:mrow>
</mml:math>
</inline-formula> and <inline-formula id="inf28">
<mml:math id="m33">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>p</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>0.05</mml:mn>
</mml:mrow>
</mml:math>
</inline-formula>, indicating that it is unlikely that a candidate follows a linear decay if it exhibits <inline-formula id="inf29">
<mml:math id="m34">
<mml:mrow>
<mml:mi>r</mml:mi>
<mml:mo>&#x2265;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>r</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> and <inline-formula id="inf30">
<mml:math id="m35">
<mml:mrow>
<mml:mi>p</mml:mi>
<mml:mo>&#x2265;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>p</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula>. Thus, Pearson&#x2019;s test answers the question: how likely is it that the correlation between the data and a linear decay (obtained by linearizing the candidate) is due to chance rather than reflecting an actual decay pattern?</p>
<p>An additional goodness-of-fit criterion based on the root-mean-square error (RMSE) of the linear regression applied to the log-transformed decay points is evaluated. Let <inline-formula id="inf31">
<mml:math id="m36">
<mml:mrow>
<mml:msubsup>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">{</mml:mo>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:mi>log</mml:mi>
<mml:msub>
<mml:mrow>
<mml:mi>s</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mo stretchy="false">}</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>N</mml:mi>
</mml:mrow>
</mml:msubsup>
</mml:mrow>
</mml:math>
</inline-formula> denote the points belonging to the candidate. These points are fitted with a straight line (<xref ref-type="disp-formula" rid="e6">Equation 6</xref>),<disp-formula id="e6">
<mml:math id="m37">
<mml:mrow>
<mml:mi>log</mml:mi>
<mml:mo>&#x2061;</mml:mo>
<mml:mi>s</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x3d;</mml:mo>
<mml:mi>a</mml:mi>
<mml:mi>t</mml:mi>
<mml:mo>&#x2b;</mml:mo>
<mml:mi>b</mml:mi>
<mml:mo>,</mml:mo>
</mml:mrow>
</mml:math>
<label>(6)</label>
</disp-formula>
</p>
<p>obtained through ordinary least squares, and the RMSE is computed as shown in <xref ref-type="disp-formula" rid="e7">Equation 7</xref>:<disp-formula id="e7">
<mml:math id="m38">
<mml:mrow>
<mml:mi mathvariant="normal">R</mml:mi>
<mml:mi mathvariant="normal">M</mml:mi>
<mml:mi mathvariant="normal">S</mml:mi>
<mml:mi mathvariant="normal">E</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:msqrt>
<mml:mrow>
<mml:mfrac>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>N</mml:mi>
</mml:mrow>
</mml:mfrac>
<mml:mstyle displaystyle="true">
<mml:munderover>
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>N</mml:mi>
</mml:mrow>
</mml:munderover>
</mml:mstyle>
<mml:msup>
<mml:mrow>
<mml:mfenced open="[" close="]">
<mml:mrow>
<mml:mi>log</mml:mi>
<mml:msub>
<mml:mrow>
<mml:mi>s</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2212;</mml:mo>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>a</mml:mi>
<mml:msub>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2b;</mml:mo>
<mml:mi>b</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:msqrt>
<mml:mo>.</mml:mo>
</mml:mrow>
</mml:math>
<label>(7)</label>
</disp-formula>
</p>
<p>Because the data are expressed in logarithmic units, the RMSE quantifies the typical multiplicative deviation from an ideal exponential decay; for example, an RMSE of 0.02 corresponds to an average amplitude error of approximately <inline-formula id="inf32">
<mml:math id="m39">
<mml:mrow>
<mml:mn>2</mml:mn>
<mml:mi>%</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula>.</p>
<p>A candidate is rejected if either of the following conditions is satisfied:<list list-type="bullet">
<list-item>
<p>the fitted slope is non-negative, <inline-formula id="inf33">
<mml:math id="m40">
<mml:mrow>
<mml:mi>a</mml:mi>
<mml:mo>&#x2265;</mml:mo>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:math>
</inline-formula> (i.e., the exponential trend is not decreasing);</p>
</list-item>
<list-item>
<p>
<inline-formula id="inf34">
<mml:math id="m41">
<mml:mrow>
<mml:mi mathvariant="normal">R</mml:mi>
<mml:mi mathvariant="normal">M</mml:mi>
<mml:mi mathvariant="normal">S</mml:mi>
<mml:mi mathvariant="normal">E</mml:mi>
<mml:mo>&#x3e;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b5;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>RMSE</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula>, where the default threshold is <inline-formula id="inf35">
<mml:math id="m42">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b5;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>RMSE</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>0.02</mml:mn>
</mml:mrow>
</mml:math>
</inline-formula>;</p>
</list-item>
</list>
</p>
<p>The RMSE test complements Pearson&#x2019;s correlation: Pearson&#x2019;s coefficient assesses the linearity of the log-decay, whereas the RMSE quantifies the absolute misfit, discarding candidates that are formally linear yet deviate from a pure exponential by more than the specified tolerance.</p>
<p>To identify candidates that exhibit a significant deviation from the surrounding signal baseline, the average value of each candidate is calculated. If 20 surrounding points (corresponding to approximately 0.12 s at a sampling frequency of 157 Hz) exceed this average, the candidate is rejected. This criterion ensures that only events increasing above the surrounding fluctuations are classified as CR candidates.</p>
<p>Concerning the uncertainties over candidate points, as an initial rough estimation, they are set to the standard deviation of 20 points before and after the candidate (excluding the increasing edge). This can lead to an overestimation of the uncertainties. To obtain a more accurate estimate, an iterative procedure is adopted. In the first step, the standard deviation of the residual for a given candidate is computed. The fitting procedure is then repeated using this new estimate of the standard deviation. The process continues until the relative change (<xref ref-type="disp-formula" rid="e8">Equation 8</xref>):<disp-formula id="e8">
<mml:math id="m43">
<mml:mrow>
<mml:mfrac>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c3;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>next</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c3;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>previous</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c3;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>previous</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfrac>
<mml:mo>&#x3c;</mml:mo>
<mml:mi>&#x3f5;</mml:mi>
<mml:mo>,</mml:mo>
</mml:mrow>
</mml:math>
<label>(8)</label>
</disp-formula>where <inline-formula id="inf36">
<mml:math id="m44">
<mml:mrow>
<mml:mi>&#x3f5;</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> is set to 1%, assuming that candidate points show minimal fluctuations once identified. The final value of the standard deviation is used to compute the reduced chi-square (<xref ref-type="disp-formula" rid="e9">Equation 9</xref>):<disp-formula id="e9">
<mml:math id="m45">
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi>&#x3c7;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
<mml:mo>&#x3d;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mtext>res</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3bd;</mml:mi>
<mml:msup>
<mml:mrow>
<mml:mi>&#x3c3;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:mfrac>
<mml:mo>,</mml:mo>
</mml:mrow>
</mml:math>
<label>(9)</label>
</disp-formula>where <inline-formula id="inf37">
<mml:math id="m46">
<mml:mrow>
<mml:mi>&#x3bd;</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> is the number of degrees of freedom.</p>
</sec>
<sec id="s2-5">
<label>2.5</label>
<title>Visualization and mapping</title>
<p>Several visualization tools are used to support data interpretation (i.e., histograms and residual plots). The computational pipeline was implemented entirely in Python, leveraging scientific libraries, including <monospace>NumPy</monospace> for numerical computation, <monospace>SciPy</monospace> for optimization and statistics, <monospace>Matplotlib</monospace> for visualization, and the <monospace>qubicpack</monospace> library for initial data handling.</p>
</sec>
</sec>
<sec sec-type="results" id="s3">
<label>3</label>
<title>Results</title>
<sec id="s3-1">
<label>3.1</label>
<title>Cosmic ray detection</title>
<p>The algorithm was applied to datasets acquired under different scanning strategies, including azimuthal scans. The datasets were further categorized by measurement site, but for this analysis, we focus on a single dataset acquired during the testing campaign conducted in Salta (Argentina; 1,150 m a.s.l., 2022).</p>
<p>However, regardless of the site or scanning strategy, the goal for each dataset is to extract the time scale of the candidates for individual TES detectors, each accompanied by an estimate of the statistical uncertainty. These values allow for direct comparisons between detectors. It is important to note that, following the analysis of datasets from a given campaign, the algorithm determines whether the time scales of the candidates associated with a specific TES are of the same order of magnitude. If not, these time scales are excluded from the final overall estimation. This criterion is based on the assumption that if CR candidates are related to the intrinsic time constants of the TESs, then the time scales detected for a given TES should be consistent in order of magnitude. Residual analysis was performed on each candidate event to validate the exponential fit. Finally, an overall analysis is performed across all datasets, including residual histograms, amplitude distributions, elevation and candidate frequency plots, and best-fit models.</p>
<p>If the algorithm detects candidates across all analyzed datasets, an overall analysis of the TESs on the focal plane would be performed:<list list-type="bullet">
<list-item>
<p>Estimation of candidate time constant.</p>
</list-item>
<list-item>
<p>Histogram of the amplitudes fitted with a Landau distribution, which is an asymmetric probability distribution&#x2014;most commonly used in high-energy physics to describe the energy loss of charged particles as they pass through a thin layer of material.</p>
</list-item>
<list-item>
<p>Distribution of residuals between the fitted and observed decays, fitted with a combined normal&#x2013;Cauchy distribution.</p>
</list-item>
<list-item>
<p>Two plots to show the relationship between the time scales obtained for the candidates of TESs, which, at the end of the overall analysis, are of the same order of magnitude for that TES, along with <inline-formula id="inf38">
<mml:math id="m47">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>V</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>bias</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> and the temperature of the dataset from which they were extracted;</p>
</list-item>
</list>
</p>
<p>The reliability of the testing framework was evaluated by varying all major algorithmic parameters, including the high SNR threshold (3, 4, <inline-formula id="inf39">
<mml:math id="m48">
<mml:mrow>
<mml:mn>5</mml:mn>
<mml:mspace width="0.3333em"/>
<mml:mi>&#x3c3;</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula>) and the minimum number of points required for the increasing and decaying phases. Across these configurations, the algorithm exhibited stable behavior: no detections occurred in the high SNR regions.</p>
</sec>
<sec id="s3-2">
<label>3.2</label>
<title>Expected cosmic ray rates</title>
<p>The input CR flux was derived from the integrated muon flux over the solid angle of the upper Earth&#x2019;s hemisphere measured at Bogot&#xe0; [2,657 m a.s.l., <xref ref-type="bibr" rid="B1">Borja et al. (2022)</xref>], <inline-formula id="inf40">
<mml:math id="m49">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="normal">&#x3a6;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>Bogot&#xe1;</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>255.1</mml:mn>
<mml:mo>&#xb1;</mml:mo>
<mml:mn>5.8</mml:mn>
<mml:mo>,</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="normal">m</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mn mathvariant="normal">2</mml:mn>
</mml:mrow>
</mml:msup>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="normal">s</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mn mathvariant="normal">1</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula>, extrapolated to the Salta site at 1,150 m a.s.l. Following published measurements in <xref ref-type="bibr" rid="B2">Gadey et al. (2020)</xref>, the flux increases by approximately <inline-formula id="inf41">
<mml:math id="m50">
<mml:mrow>
<mml:mn>10</mml:mn>
<mml:mi>%</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> per 300 m of altitude. For the altitude difference <inline-formula id="inf42">
<mml:math id="m51">
<mml:mrow>
<mml:mi mathvariant="normal">&#x394;</mml:mi>
<mml:mi>h</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1507</mml:mn>
</mml:mrow>
</mml:math>
</inline-formula> m between the two sites, the multiplicative factor is presented in <xref ref-type="disp-formula" rid="e10">Equation 10</xref>:<disp-formula id="e10">
<mml:math id="m52">
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
<mml:mo>.</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mfrac>
<mml:mrow>
<mml:mi mathvariant="normal">&#x394;</mml:mi>
<mml:mi>h</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>300</mml:mn>
</mml:mrow>
</mml:mfrac>
</mml:mrow>
</mml:msup>
<mml:mo>&#x2248;</mml:mo>
<mml:mn>1.61</mml:mn>
<mml:mo>,</mml:mo>
</mml:mrow>
</mml:math>
<label>(10)</label>
</disp-formula>
</p>
<p>leading to an estimated flux at the QUBIC site of <xref ref-type="disp-formula" rid="e11">Equation 11</xref>:<disp-formula id="e11">
<mml:math id="m53">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="normal">&#x3a6;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>QUBIC</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2248;</mml:mo>
<mml:mn>411</mml:mn>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="normal">m</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mn mathvariant="normal">2</mml:mn>
</mml:mrow>
</mml:msup>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="normal">s</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mn mathvariant="normal">1</mml:mn>
</mml:mrow>
</mml:msup>
<mml:mo>.</mml:mo>
</mml:mrow>
</mml:math>
<label>(11)</label>
</disp-formula>
</p>
<p>The geometric area of a single bolometer membrane is taken to be <inline-formula id="inf43">
<mml:math id="m54">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>A</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>TES</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>3</mml:mn>
<mml:mi mathvariant="normal">m</mml:mi>
<mml:mi mathvariant="normal">m</mml:mi>
<mml:mo>&#xd7;</mml:mo>
<mml:mn>3</mml:mn>
<mml:mi mathvariant="normal">m</mml:mi>
<mml:mi mathvariant="normal">m</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> (<xref ref-type="bibr" rid="B6">Piat et al., 2022</xref>), and accounting for the 256 TESs, the effective focal-plane area is <inline-formula id="inf44">
<mml:math id="m55">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>A</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>FP</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>2.3</mml:mn>
<mml:mo>&#x22c5;</mml:mo>
<mml:mn>1</mml:mn>
<mml:msup>
<mml:mrow>
<mml:mn>0</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>3</mml:mn>
</mml:mrow>
</mml:msup>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="normal">m</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn mathvariant="normal">2</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula>. The expected CR rate is therefore presented in <xref ref-type="disp-formula" rid="e12">Equation 12</xref>:<disp-formula id="e12">
<mml:math id="m56">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>R</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>QUBIC</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="normal">&#x3a6;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>QUBIC</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mo>&#xd7;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>A</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>FP</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2248;</mml:mo>
<mml:mn>0.94</mml:mn>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="normal">s</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mn mathvariant="normal">1</mml:mn>
</mml:mrow>
</mml:msup>
<mml:mo>,</mml:mo>
</mml:mrow>
</mml:math>
<label>(12)</label>
</disp-formula>
</p>
<p>corresponding to approximately 3409 events per hour on the 256 TESs. If we perform the same calculation at the QUBIC site (Alto Chorrillos 2,657 m a.s.l), we obtain a factor <inline-formula id="inf45">
<mml:math id="m57">
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:mo>&#x2248;</mml:mo>
<mml:mn>2.019</mml:mn>
</mml:mrow>
</mml:math>
</inline-formula>, a flux <inline-formula id="inf46">
<mml:math id="m58">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="normal">&#x3a6;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>QUBIC</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2248;</mml:mo>
<mml:mn>515</mml:mn>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="normal">m</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mn mathvariant="normal">2</mml:mn>
</mml:mrow>
</mml:msup>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="normal">s</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mn mathvariant="normal">1</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula>, and thus a rate of <inline-formula id="inf47">
<mml:math id="m59">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>R</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="italic">QUBIC</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1.4</mml:mn>
<mml:mspace width="0.3333em"/>
<mml:msup>
<mml:mrow>
<mml:mi>s</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula>, which translates into approximately 5,191 events per hour on the 256 TESs.</p>
<p>We expect CR muons with energies in the range <inline-formula id="inf48">
<mml:math id="m60">
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>100</mml:mn>
<mml:mspace width="0.3333em"/>
<mml:mi mathvariant="normal">G</mml:mi>
<mml:mi mathvariant="normal">e</mml:mi>
<mml:mi mathvariant="normal">V</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> (<xref ref-type="bibr" rid="B1">Borja et al., 2022</xref>). In the <inline-formula id="inf49">
<mml:math id="m61">
<mml:mrow>
<mml:mn>500</mml:mn>
<mml:mspace width="0.3333em"/>
<mml:mi mathvariant="normal">n</mml:mi>
<mml:mi mathvariant="normal">m</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula>-thick silicon nitride membrane (<xref ref-type="bibr" rid="B6">Piat et al., 2022</xref>), muons in this energy range deposit on the order of <inline-formula id="inf50">
<mml:math id="m62">
<mml:mrow>
<mml:mn>320</mml:mn>
<mml:mspace width="0.3333em"/>
<mml:mi mathvariant="normal">e</mml:mi>
<mml:mi mathvariant="normal">V</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> (<xref ref-type="bibr" rid="B7">Workman, 2024</xref>).</p>
<p>For each sampled energy, the corresponding cosmic ray amplitude in ADU was computed by converting the deposited energy from eV to Kelvin through <xref ref-type="disp-formula" rid="e13">Equation 13</xref>:<disp-formula id="e13">
<mml:math id="m63">
<mml:mrow>
<mml:mi mathvariant="normal">&#x394;</mml:mi>
<mml:mi>T</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>deposited</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mrow>
<mml:mi>C</mml:mi>
</mml:mrow>
</mml:mfrac>
<mml:mo>,</mml:mo>
</mml:mrow>
</mml:math>
<label>(13)</label>
</disp-formula>where <inline-formula id="inf51">
<mml:math id="m64">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula>
<sub>deposited</sub> is first converted into Joules and <inline-formula id="inf52">
<mml:math id="m65">
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
<mml:msup>
<mml:mrow>
<mml:mn>0</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>11</mml:mn>
</mml:mrow>
</mml:msup>
<mml:mtext>&#x2003;</mml:mtext>
<mml:mi mathvariant="normal">J</mml:mi>
<mml:mtext>&#x2003;</mml:mtext>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="normal">K</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mn mathvariant="normal">1</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula> is the detector heat capacity. Using the electric responsivity <inline-formula id="inf53">
<mml:math id="m66">
<mml:mrow>
<mml:mi mathvariant="script">R</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>2</mml:mn>
<mml:mo>&#xd7;</mml:mo>
<mml:mn>1</mml:mn>
<mml:msup>
<mml:mrow>
<mml:mn>0</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mn>8</mml:mn>
</mml:mrow>
</mml:msup>
<mml:mtext>&#x2003;</mml:mtext>
<mml:mi mathvariant="normal">A</mml:mi>
<mml:mi mathvariant="normal">D</mml:mi>
<mml:mi mathvariant="normal">U</mml:mi>
<mml:mtext>&#x2003;</mml:mtext>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="normal">K</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mn mathvariant="normal">1</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula>, the expected amplitude of the cosmic ray spikes in ADU is then obtained as <xref ref-type="disp-formula" rid="e14">Equation 14</xref>:<disp-formula id="e14">
<mml:math id="m67">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>S</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>CR</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mfenced open="[" close="]">
<mml:mrow>
<mml:mi mathvariant="normal">A</mml:mi>
<mml:mi mathvariant="normal">D</mml:mi>
<mml:mi mathvariant="normal">U</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x3d;</mml:mo>
<mml:mi mathvariant="normal">&#x394;</mml:mi>
<mml:mi>T</mml:mi>
<mml:mi mathvariant="script">R</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1026</mml:mn>
<mml:mo>.</mml:mo>
</mml:mrow>
</mml:math>
<label>(14)</label>
</disp-formula>
</p>
<p>Events of this amplitude, even occurring at a rate of approximately 3409 events per hour, nonetheless, remain buried in the instrumental noise, quantified as the standard deviation of the TOD (10509.6 ADU), as evident in the TOD shown in <xref ref-type="fig" rid="F1">Figure 1</xref>.</p>
</sec>
</sec>
<sec sec-type="discussion" id="s4">
<label>4</label>
<title>Discussion</title>
<p>In this work, we have proposed a method for identifying above-noise CR transients in QUBIC&#x2019;s TES TODs by combining threshold-based event segmentation, two-stage fitting, and statistical validation.</p>
<p>The algorithm has been applied to data from the testing phase in Salta (Ar), and at the current stage of the analysis, no CR candidates have been found. The methodology developed here is directly applicable to future QUBIC longer campaigns to estimate, from the largest (and rare) cosmic ray energy depositions, the TES time constants, and to other bolometric experiments operating in high&#x2013;cosmic-ray environments. At Salta&#x2019;s altitude, the CR spectrum is dominated by secondary muons, with an energy distribution extending from 1 to 100 GeV. In a <inline-formula id="inf54">
<mml:math id="m68">
<mml:mrow>
<mml:mn>500</mml:mn>
<mml:mspace width="0.3333em"/>
<mml:mi mathvariant="normal">n</mml:mi>
<mml:mi mathvariant="normal">m</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> layer of silicon nitride (<xref ref-type="bibr" rid="B6">Piat et al., 2022</xref>), muons in this energy range deposit on the order of <inline-formula id="inf55">
<mml:math id="m69">
<mml:mrow>
<mml:mn>320</mml:mn>
<mml:mspace width="0.3333em"/>
<mml:mi mathvariant="normal">e</mml:mi>
<mml:mi mathvariant="normal">V</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula>, which produces an amplitude in ADU of approximately 1026. Events of this amplitude, even occurring at a rate of approximately 3409 per hour, nonetheless, remain buried in the instrumental noise.</p>
<p>The algorithm can, nonetheless, be integrated into offline or near-real-time pipelines with negligible computational overhead, providing a robust framework for automated transient rejection. Moreover, the ability to extract TES time constants from CR hits offers a valuable in-flight calibration opportunity. The modularity of the approach, combined with its statistically driven validation, makes it suitable for deployment in future instruments aiming to characterize transient energy depositions without compromising science data or map-making performance.</p>
</sec>
</body>
<back>
<sec sec-type="data-availability" id="s5">
<title>Data availability statement</title>
<p>The data analyzed in this study is subject to the following licenses/restrictions: access to the datasets is restricted by the QUBIC collaboration&#x2019;s internal policy. Requests for access can be evaluated on a case-by-case basis. Requests to access these datasets should be directed to hamilton@APC.IN2P3.FR.</p>
</sec>
<sec sec-type="author-contributions" id="s6">
<title>Author contributions</title>
<p>SF: Data curation, Methodology, Software, Formal analysis, Visualization, Writing &#x2013; original draft, Writing &#x2013; review and editing. EBt: Writing &#x2013; review and editing. SM: Writing &#x2013; review and editing. EBr: Writing &#x2013; review and editing. AC: Writing &#x2013; review and editing. BC: Writing &#x2013; review and editing. PD: Writing &#x2013; review and editing. GD: Writing &#x2013; review and editing. MG: Writing &#x2013; review and editing. J-CH: Writing &#x2013; review and editing. NM: Writing &#x2013; review and editing. GI: Writing &#x2013; review and editing. CO&#x2019;S: Writing &#x2013; review and editing. AP: Writing &#x2013; review and editing. MP: Writing &#x2013; review and editing. FS: Writing &#x2013; review and editing. CS: Writing &#x2013; review and editing. ST: Writing &#x2013; review and editing. MZ: Writing &#x2013; review and editing.</p>
</sec>
<ack>
<title>Acknowledgements</title>
<p>The computational work reported in this article was performed on the supercomputers at CINECA, Italy, under the 2024-2025 INFN-CINECA agreement and on the CC-IN2P3 computing cluster operated by CNRS/IN2P3, France. The authors gratefully acknowledge the computing time and technical support provided by both facilities.</p>
</ack>
<sec sec-type="COI-statement" id="s8">
<title>Conflict of interest</title>
<p>The author(s) declared that this work was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.</p>
</sec>
<sec sec-type="ai-statement" id="s9">
<title>Generative AI statement</title>
<p>The author(s) declared that generative AI was not used in the creation of this manuscript.</p>
<p>Any alternative text (alt text) provided alongside figures in this article has been generated by Frontiers with the support of artificial intelligence and reasonable efforts have been made to ensure accuracy, including review by the authors wherever possible. If you identify any issues, please contact us.</p>
</sec>
<sec sec-type="disclaimer" id="s10">
<title>Publisher&#x2019;s note</title>
<p>All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.</p>
</sec>
<fn-group>
<fn fn-type="custom" custom-type="edited-by">
<p>
<bold>Edited by:</bold> <ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/2297023/overview">Massimiliano Galeazzi</ext-link>, University of Miami, United States</p>
</fn>
<fn fn-type="custom" custom-type="reviewed-by">
<p>
<bold>Reviewed by:</bold> <ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/1156314/overview">Wenjie Zhao</ext-link>, Chinese Academy of Sciences (CAS), China</p>
<p>
<ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/3143717/overview">David Maurin</ext-link>, D&#xe9;l&#xe9;gation Alpes (CNRS), France</p>
</fn>
</fn-group>
<ref-list>
<title>References</title>
<ref id="B1">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name>
<surname>Borja</surname>
<given-names>C.</given-names>
</name>
<name>
<surname>&#xc1;vila</surname>
<given-names>C.</given-names>
</name>
<name>
<surname>Roque</surname>
<given-names>G.</given-names>
</name>
<name>
<surname>S&#xe1;nchez</surname>
<given-names>M.</given-names>
</name>
</person-group> (<year>2022</year>). <article-title>Atmospheric muon flux measurement near earth&#x2019;s equatorial line</article-title>. <source>Instruments</source> <volume>6</volume>, <fpage>78</fpage>. <pub-id pub-id-type="doi">10.3390/instruments6040078</pub-id>
</mixed-citation>
</ref>
<ref id="B2">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name>
<surname>Gadey</surname>
<given-names>H.</given-names>
</name>
<name>
<surname>Chatzidakis</surname>
<given-names>S.</given-names>
</name>
<name>
<surname>Farsoni</surname>
<given-names>A. T.</given-names>
</name>
</person-group> (<year>2020</year>). <article-title>Monte carlo characterization of the cosmic ray muon flux in shallow subsurface geological repositories intended for disposal of radioactive materials</article-title>. <source>Appl. Radiat. Isotopes</source> <volume>163</volume>, <fpage>109209</fpage>. <pub-id pub-id-type="doi">10.1016/j.apradiso.2020.109209</pub-id>
<pub-id pub-id-type="pmid">32561047</pub-id>
</mixed-citation>
</ref>
<ref id="B3">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name>
<surname>Hamilton</surname>
<given-names>J.-C.</given-names>
</name>
<name>
<surname>Mousset</surname>
<given-names>L.</given-names>
</name>
<name>
<surname>Battistelli</surname>
<given-names>E. S.</given-names>
</name>
<name>
<surname>de Bernardis</surname>
<given-names>P.</given-names>
</name>
<name>
<surname>Bigot-Sazy</surname>
<given-names>M.-A.</given-names>
</name>
<name>
<surname>Chanial</surname>
<given-names>P.</given-names>
</name>
<etal/>
</person-group> (<year>2022</year>). <article-title>Qubic I: overview and science program</article-title>. <source>J. Cosmol. Astropart. Phys.</source> <volume>2022</volume>, <fpage>1</fpage>&#x2013;<lpage>34</lpage>. <pub-id pub-id-type="doi">10.1088/1475-7516/2022/04/034</pub-id>
</mixed-citation>
</ref>
<ref id="B4">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name>
<surname>Irwin</surname>
<given-names>K. D.</given-names>
</name>
<name>
<surname>Hilton</surname>
<given-names>G. C.</given-names>
</name>
</person-group> (<year>2005</year>). <article-title>Transition-edge sensors</article-title>. <source>Top. Appl. Phys. Cryog. Part. Detect.</source> <volume>99</volume>, <fpage>63</fpage>&#x2013;<lpage>150</lpage>. <pub-id pub-id-type="doi">10.1007/10933596_3</pub-id>
</mixed-citation>
</ref>
<ref id="B5">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name>
<surname>Masi</surname>
<given-names>S.</given-names>
</name>
<name>
<surname>Battistelli</surname>
<given-names>E. S.</given-names>
</name>
<name>
<surname>de Bernardis</surname>
<given-names>P.</given-names>
</name>
<name>
<surname>Lamagna</surname>
<given-names>L.</given-names>
</name>
<name>
<surname>Nati</surname>
<given-names>F.</given-names>
</name>
<name>
<surname>Nati</surname>
<given-names>L.</given-names>
</name>
<etal/>
</person-group> (<year>2010</year>). <article-title>On the effect of cosmic rays in bolometric cosmic microwave background measurements from the stratosphere</article-title>. <source>Astronomy &#x26; Astrophysics</source> <volume>519</volume>, <fpage>9</fpage>. <pub-id pub-id-type="doi">10.1051/0004-6361/201014065</pub-id>
</mixed-citation>
</ref>
<ref id="B6">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name>
<surname>Piat</surname>
<given-names>M.</given-names>
</name>
<name>
<surname>Stankowiak</surname>
<given-names>G.</given-names>
</name>
<name>
<surname>Battistelli</surname>
<given-names>E. S.</given-names>
</name>
<name>
<surname>de Bernardis</surname>
<given-names>P.</given-names>
</name>
<name>
<surname>D&#x2019;Alessandro</surname>
<given-names>G.</given-names>
</name>
<name>
<surname>Petris</surname>
<given-names>M. D.</given-names>
</name>
<etal/>
</person-group> (<year>2022</year>). <article-title>Qubic iv: performance of tes bolometers and readout electronics</article-title>. <source>J. Cosmol. Astropart. Phys.</source> <volume>2022</volume>, <fpage>037</fpage>. <pub-id pub-id-type="doi">10.1088/1475-7516/2022/04/037</pub-id>
</mixed-citation>
</ref>
<ref id="B7">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name>
<surname>Workman</surname>
<given-names>R.</given-names>
</name>
<name>
<surname>Isildak</surname>
<given-names>B.</given-names>
</name>
<name>
<surname>Dogru</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Aydogan</surname>
<given-names>R.</given-names>
</name>
<name>
<surname>Bayrak</surname>
<given-names>B.</given-names>
</name>
<name>
<surname>Ertekin</surname>
<given-names>S.</given-names>
</name>
</person-group> (<year>2024</year>). <article-title>Passage of particles through matter</article-title>. <source>Prog. Theor. Exp. Phys.</source> <volume>2024</volume>, <fpage>083C01</fpage>. <pub-id pub-id-type="doi">10.1093/ptep/ptae068</pub-id>
</mixed-citation>
</ref>
</ref-list>
</back>
</article>