<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Data Structure Adaption from Large-Scale Experiment for Public Re-Use ?</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Doris Wo</string-name>
          <email>doris.wochele@kit.edu</email>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Jurg</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>nk Polg</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Donghw</string-name>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Karlsruhe Institute of Technology, Institute for Nuclear Physics</institution>
          ,
          <addr-line>76021 Karlsruhe</addr-line>
          ,
          <country country="DE">Germany</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Large-scale experiments in astroparticle physics are usually operated several decades by international collaborations of partly several hundreds of scientists. Experiments launched some decades ago, trying to make their data publicly available, su er from the fact that their data structures cannot be evaluated using modern information technologies. To overcome this situation and to guarantee a FAIR ( ndableaccessible-interoperable-reusable) [2] data preservation, the data must be restructured and reformatted. A step in this direction is to provide the data and meta-data as well as the tools to analyse the measured data of the meanwhile dismantled cosmic ray experiment KASCADE, which operated from 1996 to 2013. The project to make the entire scienti c data public is called the 'KASCADE Cosmic Ray Data Centre' (KCDC, https://kcdc.ikp.kit.edu). The activities within KCDC are used as blueprint for a sustainable data life cycle including aspects of data curation in astroparticle physics. With this paper we give an overview of the current status of the KASCADE Open Data Publication via the KCDC web portal with focus on the adaption of the initial structure of the KASCADE data for the KCDC data publication.</p>
      </abstract>
      <kwd-group>
        <kwd>Astroparticle Physics</kwd>
        <kwd>Public Data Centre</kwd>
        <kwd>Data Structure</kwd>
        <kwd>Data Curation</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>
        A major topic of Astroparticle Physics is to investigate the nature of the
cosmic radiation manifesting in many ways. The detection of high-energy cosmic
rays is performed by the registration of extensive air showers, i.e. the secondary
? Supported by KRAD, the Karlsruhe-Russian Astroparticle Data Life Cycle Initiative
(Helmholtz Society Grant HRSF-0027). The authors acknowledge the cooperation
with the Russian colleagues (A. Kryukov et al.) in the GRADLC project (RSF
Grant No. 18-41-06003) as well as the KASCADE-Grande collaboration for their
continuous support of the KCDC project.
particles generated by the primary cosmic ray when entering the atmosphere. In
various air-shower experiments located all over the world the cascades of
particles are detected, generated in interaction processes of the relativistic cosmic
rays (mainly fully ionized atomic nuclei, but also cosmic gamma-rays and
neutrinos)with the molecules of the Earth's atmosphere. As these air-showers consist of
a huge number of particles which are spread over a vast area, large detectors are
required to measure certain characteristic parameters. Dedicated reconstruction
algorithms [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] are then used to determine the direction of the incoming particle
as well as its energy and mass.
      </p>
      <p>
        The combined analysis of observations of various components of the cosmic
radiation like charged particles, gamma rays and neutrinos is widely known as
'Multi-Messenger Astroparticle Physics'. From this, currently as hot topic
classi ed research eld, we hope to gain new and exciting information to extend our
knowledge of the origin and transport of what we understand as cosmic
radiation. The Multi-Messenger Astroparticle Physics requires access to data (in a
reasonable and standardized format) of the diverse experimental installations.
Our studies described here are important steps towards establishing a global
data and analysis centre [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] for Multi-Messenger Astroparticle Physics.
2
      </p>
      <p>
        From Proprietary Experimental Data to an Easy
Accessible Open Data Format
KASCADE-Grande [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ],[
        <xref ref-type="bibr" rid="ref4">4</xref>
        ],[
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] was an extensive air shower experiment array to
study the cosmic ray primary composition and the hadronic interactions in the
energy range E0 = 1014 1018 eV. The experiment was situated on site of the
KIT, Campus North (49:1 N,8:4 E) at 110 m asl, corresponding to an average
atmospheric depth of 1022 g=cm2 [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ] and operated between 1996 and 2013. One
of the main results obtained by KASCADE is a picture of increasingly heavier
composition above the 'knee' caused by a break in the spectrum of the light
components. Conventional acceleration models predict a change of the composition
towards heavier components.
      </p>
      <p>
        The KASCADE-Grande experiment consisted of four major detector
components. An array of 252 detector stations housing separate electron and muon
detectors, a central detector for measuring the hadron component with
additional muon detection area, a tunnel with streamer tubes to record individual
muon tracks and, a second array with 37 detector stations for electron detection
which extends the e ective KASCADE array area from 200 200 m2 by a factor
of 10 built in 2003. Furthermore, an array of 30 radio antennas is co-located with
the KASCADE array (LOPES [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ]) which uses the KASCADE trigger and the
well-calibrated information of air shower properties to study radio emissions of
cosmic rays (see g. 1).
      </p>
      <p>After the shutdown of the KASCADE experiment the number of scientists
who can maintain the databases with old software on old computers degraded
fast. The only chance to get the results comprehensible for other experiments is
to start a data curation process and feed the data to a system where they can
be kept maintained.
3</p>
      <p>
        KASCADE Data Acquisition and Data Structure
The KASCADE Data Acquisition System was designed and set up in the early
nineties of the last century using the most modern types of databases and
software available. By that time all o -line programming in high-energy physics was
carried out using Fortran 77 programming language. Although this language
offered some advantages compared to other common languages at that time, it
su ered from a lack of dynamic data structuring facilities. To overcome these
disadvantages CERN ZEBRA [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ] has been introduced by the particle physicists
to allow the programmers to build dynamic data structures even at real
(execution) time. Thus, the KASCADE raw data are organized in so-called ZEBRA
banks as schematically described in g. 2.
      </p>
      <p>Below a le header holding information about the current run, properties
like start time, detector status, calibration settings etc., the event blocks are
organized sequentially, each consisting of an event header and the hierarchically
arranged ZEBRA banks for the event data of every detector component being
part of the respective event, followed by a direct access table information on
number of events and the position of the rst data set. Each of the various
components of the KASCADE-Grande detector system was designed as an
independent experiment with its own data acquisition and control system. Besides
the control and monitoring of the hardware, the preparation of the data recorded
and the transmission to the Central Event Builder was part of each system. The
main task of the Central Event Builder is to merge time information and the
recorded data of all running detector components and to transfer it to a mass
storage system. The event builder is invoked by a trigger signal from any of the
various trigger sources of KASCADE. The conditions to generate a trigger are
de ned in the local processes of the detector components without any control
by the event builder. Data blocks with time labels within a window of 10 s are
merged to one event. If a detector component does not supply data for more
than 2 minutes, a hardware error is assumed. Then the corresponding
component is removed from the data acquisition and a new run is started. Altogether
about 1.7 billion events have been recorded during the lifetime of KASCADE
from 1996 to 2013 stored in more than 50.000 raw data les, consuming 4 TB of
storage space, and analysed with the KASCADE data reconstruction program
KRETA. The data have been archived on a tape robot of the central
computing department and copied in portions to local disks for fast access during data
analysis. Meanwhile all measured and analysed data are stored locally on a Raid
system and on the IBM Tivoli Storage Manager of KIT-SCC (Steinbuch Centre
for Computing) for long term preservation.
4</p>
    </sec>
    <sec id="sec-2">
      <title>KASCADE Data Analysis</title>
      <p>The measured air showers in KASCADE are analysed using the reconstruction
program KRETA (Kascade Reconstruction for ExTensive Airshowers), which
reads the raw data, performs the calibration and reconstructs the basic shower
observables, storing all the results in the form of histograms and vectors of
parameters (n-tuples).</p>
      <p>
        The calibration parameters and the geometry of the detector layout are stored
in a time dependent database called CERN HEPDB [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ]. Calibration parameters
like energy deposits or correction parameters like time delay o sets are derived
from a separate analysis of the data recorded and stored in HEPDB together
with a validity time stamp. The validity range of typically several days is mainly
caused by the change of the photomultiplier tubes associated with the
temperature of the environment, while the geometry database remained mostly constant
during the complete measuring period. Other correction data sets like air
pressure and temperature were obtained from external measurements. Additionally,
a correction table was required to exclude disturbances from a nearby man-made
radiation source that occurred periodically for a few minutes per day.
      </p>
      <p>Data sets recorded with irregular hardware conditions (bad runs) have been
identi ed in a preanalysis step and removed for the nal reconstruction.</p>
      <p>
        Data quality is commonly described as a state of accuracy for appropriate
use of data. The re-usability of an astroparticle experiment dataset relies on a
high quality lter of the raw data. Only the researcher can take into account all
details of data acquisition and data transformation. The raw KASCADE data
are reduced by a factor of four by applying quality cuts within the data analysis
procedure, mostly because low energetic events with a too small signal cannot
be reconstructed properly. All these cuts were applied during the calibration
phase on an event-by-event basis as well as the energy deposits corrections for
the detector stations agged as \not working" or \in saturation". Calibration
data, correction data and information on the detector layout are taken from a
HEPDB data base where more than 100 di erent time dependent calibration
tables are stored. The reconstruction procedure itself is then done in 3 iteration
levels. A rough estimation of shower parameters in level 1 is followed by a more
sophisticated analysis in level 2 where the results of level 1 are taken as starting
values for level 2. Level 3 aims for an even more tuned accuracy using the
results of level 2 and delivers the nal reconstruction results. These results for
each iteration level are stored in so called ntuples making use of the HBOOK
package [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ] which is also part of the CERN library.
      </p>
      <p>
        An ntuple is like a table, where all the variables belonging to a certain event
are columns while each event is a row. In this form it is easy to generate one or
multi dimensional projections of any of these several hundred variables. Storing
requirements become signi cant for large event samples. The most important
output parameters stored in ntuples for KASCADE are:
{ the reconstructed position of the shower core,
{ the reconstructed shower direction,
{ the reconstructed number of electrons and muons,
{ most probable reconstructed primary energy E0 based on a certain variant
of the reconstruction process (is always based on a theoretical model of
hadronic interactions incorporated in simulations [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ]).
      </p>
      <p>
        In the early years of KASCADE the resulting hbook les have been visualized
using the CERN PAW framework (Physics Analysis Workstation [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ]) to
generate statistical distributions of the measured events. KRETA still produces only
hbook les but nowadays they are converted to the CERN ROOT data
structure [
        <xref ref-type="bibr" rid="ref15">15</xref>
        ] with a disk space requirement of about 1.3 GB and stored on local
servers and archived on mass storage robots.
5
      </p>
      <p>
        KCDC portal as a demonstrator for Big Data Analytics
in astroparticle physics
The main goal of KCDC [
        <xref ref-type="bibr" rid="ref6 ref7">7,6</xref>
        ] is to provide a concept for the open data
publication, following the idea of the Berlin Declaration on Open Data and Open
Access [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ].
      </p>
      <p>
        The large amount of data stored in ROOT les makes it impossible to o er
the entire data directly for download. Thus we choose to ll the reconstructed
data and meta data into a database and install a web portal, named the KCDC
data shop [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ], in a way that a registered user can select parameters and apply
speci c cuts on most of the quantities to limit the download volume for his own
analysis. For event object storage a NoSQL database was chosen because of the
un xed scheme per event. For multi-messenger analyses in cosmic ray physics
the experimental setup usually varies within time. This makes it necessary to
add components and new joins which is still a 'show-stopper' in big relational
database management systems (RDBMS). NoSQL databases can be more easily
adapted to new setups. In KCDC MongoDB was chosen as an easy-to-use and
scalable document-oriented storage well proofed in Big Data environments.
      </p>
      <p>The KCDC web portal is publicly accessible, no special software installation
is required on the user side. All data are o ered for ftp download in ROOT,
which is standard data format in High Energy Physics, or in HDF5, mostly used
to store big amounts of data, or in ASCII for simple education examples.</p>
      <p>Most of the parameters stored in the ROOT les gained from the KASCADE
data reconstruction with KRETA can only be used by experts with detailed
background knowledge of the detector geometry and the detector properties. In
order to give a wider audience the opportunity to use these data, they must be
prepared in such a way that they can be handled without special knowledge.</p>
      <p>In modern terms this procedure is known as data curation. Curation includes
a range of activities and processes done to create, manage, maintain, and
validate data elements. Speci cally, data curation is the attempt to determine what
information is worth saving and for how long. The data curation work ow is
determined from data quality management, data protection, life cycle
management and data movement. Therefore the routine lling KASCADE data in the
MongoDB of KCDC determines which data should be published in that
speci c version of KCDC. The KCDC Major Version Number is an indicator for a
complete dataset. Any changes within the database will be indicated by a new
version number and we can only guarantee a valid representation of KASCADE
using data from the same published versions.</p>
      <p>Another important point for this procedure is that in KRETA each detector
component generates its own ROOT les because no data merging has been
applied. This disadvantage we overcome by publishing the combined data analysis
in a new KCDC data shop presently under construction. For the time being, we
merge the data of the di erent components when lling the MongoDB.</p>
      <p>As the KASCADE Events can be uniquely identi ed by their Run- and Event
numbers, the lling routine uses these two parameters to merge the data sets
from the di erent components of KASCADE and some additional information
from separate tables like exclude lists for special events. Most of the space
required in the MongoDB is occupied by the data arrays holding information on
e/ and -energy deposits of each of the 252 KASCADE detector stations and
‚DATA‘ Collection
d
-i
1
t
n
e
v
E
a
t
a
d
a
t
e
m
t
n
e
v
e
1
tnt
A
ne
e
n
n
o
o
p
p
mm
oo
tcc.t
c
.
c
e
t
e
e
t
d
e
d
:</p>
      <p>:
X
t
n
e
n
o
p
m
o
c
t.
c
e
t
e
d
d
i2
t
n
e
v
E
a
t
a
d
a
t
e
m
t
n
e
v
e
1
tnt
1
ne
e
n
n
o
o
p
p
mm
o
o
tcct.
c
.
tec
e
e
t
d
e
d
‚ARRAYS‘ Collection
]}
s
itednonpoACm iilitf[ttr{eessnono itednnopoXCm
a
t
S
]}
s
e
itr
n
e
f
o
ilt
s
[{
s
n
o
it
a
t
S
the arrival time of the rst particle hitting the respective station and producing
a valid signal in the detector electronic. The structure scheme of the data stored
in the MongoDB is shown in g. 3. In MongoDB we have two collections named
`DATA` and `ARRAYS`, where the rst is lled with (meta)data from the
reconstruction process with information on parameters like event number, event time
etc. and shower parameters like core position, angle of incidence and number of
particles separately for each detector component. In the second, the `ARRAYS`,
relevant data from every detector station are kept.
6</p>
    </sec>
    <sec id="sec-3">
      <title>Outlook</title>
      <p>Publishing data for other scientist enhances the sensibility for correct
documentation and cross-checking the results. Using only one source of data for
researchers from the KASCADE collaboration and for external researchers led
automatically to a high integrity of the published data sets and increased our
con dence in the data sets published. Published data sets in experimental physics
underlie changes whenever analytical methods are improved or errors are
discovered. A change of the version number indicates a non-semantic change of
the data sets whereas the elements e.g. a speci c event, is still part of the data
set. A unique UUID, implemented in the next release, represents such an object
independent from versions and the reference is immutable. Records that were
once published in KCDC are frozen by versions, which means that even if the
data are extended or changed the reproducibility is maintained.</p>
      <p>
        In a next step we will adapt the data of a totally independent experiment
(TAIGA [
        <xref ref-type="bibr" rid="ref16">16</xref>
        ] or TUNKA [
        <xref ref-type="bibr" rid="ref17">17</xref>
        ]) to the scheme described above and include them
into KCDC. With a rst multi-messenger like analysis applied to the data of
both experiments a proof-of-principle of the demonstrator will be given [
        <xref ref-type="bibr" rid="ref18">18</xref>
        ] (see
g. 4).
      </p>
      <p>Data Publication</p>
      <sec id="sec-3-1">
        <title>KASCADE</title>
      </sec>
      <sec id="sec-3-2">
        <title>TAIGA</title>
      </sec>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <given-names>A.</given-names>
            <surname>Haungs</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Rebel</surname>
          </string-name>
          ,
          <string-name>
            <surname>M.</surname>
          </string-name>
          <article-title>Roth; 'Energy spectrum and mass composition of highenergy cosmic rays'; Rept.Prog</article-title>
          .Phys.
          <volume>66</volume>
          (
          <year>2003</year>
          )
          <fpage>1145</fpage>
          -
          <lpage>1206</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <given-names>A.</given-names>
            <surname>Haungs</surname>
          </string-name>
          <article-title>; 'Towards a global analysis and data centre in Astroparticle Physics'; (2019) these proceedings</article-title>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <given-names>T.</given-names>
            <surname>Antoni</surname>
          </string-name>
          et al; The
          <string-name>
            <surname>Cosmic-Ray Experiment</surname>
            <given-names>KASCADE</given-names>
          </string-name>
          ; Nucl.Instr. and
          <string-name>
            <surname>Meth A513</surname>
          </string-name>
          (
          <year>2003</year>
          )
          <fpage>490</fpage>
          -
          <lpage>510</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>W.-D.</surname>
          </string-name>
          Apel et al; The
          <string-name>
            <surname>KASCADE-Grande</surname>
            <given-names>Experiment</given-names>
          </string-name>
          ; Nucl.Instr. and Meth.
          <source>A620</source>
          (
          <year>2010</year>
          )
          <fpage>202</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>5. KASCADE homepage, https://www.ikp.kit.edu/KASCADE/</mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>6. KCDC homepage, https://kcdc.ikp.kit.edu</mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <given-names>A.</given-names>
            <surname>Haungs</surname>
          </string-name>
          et al;
          <article-title>The KASCADE Cosmic-ray Data Centre KCDC: Granting Open Access to Astroparticle Physics Research Data; Eur</article-title>
          .
          <string-name>
            <surname>Phys. J. C</surname>
          </string-name>
          (
          <year>2018</year>
          )
          <volume>78</volume>
          :741 ; https://doi.org/10.1140/epjc/s10052-018-6221-2
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>8. CORSIKA homepage, https://www.ikp.kit.edu/corsika</mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9. Berlin Declaration, https://openaccess.mpg.de/Berlin-Declaration accessed
          <article-title>Jan 2015</article-title>
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10. H.
          <string-name>
            <surname>Falcke</surname>
          </string-name>
          et al;
          <article-title>Detection and imaging of atmospheric radio ashes from cosmic ray air showers</article-title>
          ;
          <source>Nature</source>
          <volume>435</volume>
          :
          <fpage>313</fpage>
          (
          <year>2005</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>11. ZEBRA reference Manual, https://cdsweb.cern.ch/record/2296399/files/ zebra.pdf</mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <article-title>HEDB reference manual</article-title>
          , http://cds.cern.ch/record/2296379/files/hepdb. pdf
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>13. PAW reference Manual, http://www2.pv.infn.it/~sc/cern/paw.pdf</mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          14. HBOOK reference manual p.
          <fpage>e</fpage>
          ., http://osksn2.hep.sci.osaka-u.ac.jp/~taku/ doc/hbook.pdf
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          15.
          <article-title>ROOT users guide</article-title>
          , https://root.cern.ch/guides/users-guide
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          16.
          <string-name>
            <given-names>N.</given-names>
            <surname>Budnev</surname>
          </string-name>
          et al;
          <article-title>The TAIGA experiment: From cosmic-ray to gamma-ray astronomy in the Tunka valley; Nucl</article-title>
          .Instrum.Meth.
          <source>A845</source>
          (
          <year>2017</year>
          )
          <fpage>330</fpage>
          -
          <lpage>333</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          17. F.G. Schroder et al.;
          <article-title>Tunka-Rex: Status, Plans, and Recent Results; EPJ Web Conf</article-title>
          .
          <volume>135</volume>
          (
          <year>2017</year>
          )
          <fpage>01003</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          18. I. Bychkov et al.;
          <article-title>'RussianGerman Astroparticle Data Life Cycle Initiative'; Data 3(4) (</article-title>
          <year>2018</year>
          )
          <fpage>56</fpage>
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>