<!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>GEOMETRY DATABASE FOR THE CBM EXPERIMENT AND ITS FIRST APPLICATION TO THE EXPERIMENTS OF THE NICA PROJECT</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>E.P. Akishina</string-name>
          <xref ref-type="aff" rid="aff3">3</xref>
          <xref ref-type="aff" rid="aff6">6</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>E.I. Alexandrov</string-name>
          <xref ref-type="aff" rid="aff3">3</xref>
          <xref ref-type="aff" rid="aff6">6</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>I.N. Alexandrov</string-name>
          <xref ref-type="aff" rid="aff3">3</xref>
          <xref ref-type="aff" rid="aff6">6</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>I.A. Filozova</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
          <xref ref-type="aff" rid="aff3">3</xref>
          <xref ref-type="aff" rid="aff5">5</xref>
          <xref ref-type="aff" rid="aff6">6</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>V. Friese</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff6">6</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>K.V. Gertsenberger</string-name>
          <xref ref-type="aff" rid="aff2">2</xref>
          <xref ref-type="aff" rid="aff6">6</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>V.V. Ivanov</string-name>
          <xref ref-type="aff" rid="aff3">3</xref>
          <xref ref-type="aff" rid="aff4">4</xref>
          <xref ref-type="aff" rid="aff6">6</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>O.V. Rogachevsky</string-name>
          <xref ref-type="aff" rid="aff2">2</xref>
          <xref ref-type="aff" rid="aff6">6</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>GSI Helmholtzzentrum für Schwerionenforschung GmbH</institution>
          ,
          <addr-line>1 Planckstraße, 64291 Darmstadt</addr-line>
          ,
          <country country="DE">Germany</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Institute of System Analysis and Management, Dubna State University</institution>
          ,
          <addr-line>19 Universitetskaya, Dubna, Moscow region, 141982</addr-line>
          ,
          <country country="RU">Russia</country>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>Laboratory of High Energy Physics, Joint Institute for Nuclear Research</institution>
          ,
          <addr-line>6 Joliot-Curie, Dubna, Moscow region, 141980</addr-line>
          ,
          <country country="RU">Russia</country>
        </aff>
        <aff id="aff3">
          <label>3</label>
          <institution>Laboratory of Information Technologies, Joint Institute for Nuclear Research</institution>
          ,
          <addr-line>6 Joliot-Curie, Dubna, Moscow region, 141980</addr-line>
          ,
          <country country="RU">Russia</country>
        </aff>
        <aff id="aff4">
          <label>4</label>
          <institution>National Research Nuclear University MEPhI</institution>
          ,
          <addr-line>31 Kashirskoe shosse, Moscow</addr-line>
          ,
          <country country="RU">Russia</country>
        </aff>
        <aff id="aff5">
          <label>5</label>
          <institution>Plekhanov Russian University of Economics</institution>
          ,
          <addr-line>36 Stremyanny per., Moscow, 117997</addr-line>
          ,
          <country country="RU">Russia</country>
        </aff>
        <aff id="aff6">
          <label>6</label>
          <institution>2018 Elena P. Akishina, Evgeny I. Alexandrov, Igor N. Alexandrov, Irina A. Filozova</institution>
          ,
          <addr-line>Volker Friese, Konstantin V. Gertsenberger, Viktor .V. Ivanov, Oleg V. Rogachevsky</addr-line>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2018</year>
      </pub-date>
      <fpage>504</fpage>
      <lpage>508</lpage>
      <abstract>
        <p>This paper is dedicated to the current state of the Geometry Database (Geometry DB) for the CBM experiment and first results of using the Geometry DB for NICA project. Geometry DB is an information system that supports the CBM geometry. The main aims of Geometry DB are to provide the storage of the CBM geometry, to manage the geometry modules, to assemble various setups as combinations of geometry modules and additional files, to provide its support. The development takes into account the specifics of the workflow for simulation of particles transport through the setup. Both Graphical User Interface (GUI) and Application Programming Interface (API) are available for members of the CBM collaboration. In our approach, the details of the geometry modules are stored in the format of ROOT files. Such a technique allows using the Geometry DB in the NICA project: BM@N and MPD experiments.</p>
      </abstract>
      <kwd-group>
        <kwd>Geometry Module</kwd>
        <kwd>Geometry Module</kwd>
        <kwd>Setup</kwd>
        <kwd>Geometry Database</kwd>
        <kwd>DBMS PostgreSQL</kwd>
        <kwd>CBM experiment</kwd>
        <kwd>NICA project</kwd>
        <kwd>Graphical User Interface</kwd>
        <kwd>Application Programming Interface</kwd>
        <kwd>ROOT</kwd>
        <kwd>macros</kwd>
        <kwd>web-interface</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>The Compressed Baryonic Matter (CBM) experiment is one of major scientific program of
Facility for Antiproton and Ion Research (FAIR) in Darmstadt. The goal of the CBM research program
is to explore the QCD phase diagram in the region of high baryon densities using high-energy
nucleusnucleus collisions.</p>
      <p>Modern scientific studies are characterized by duration, complexity, high labor intensity, large
time and financial costs, operating with large amounts of data recorded during the experiment. In this
regard, the task of automating the processes of collecting, processing and analyzing the experimental
data is of particular relevance. Automation of a modern experiment is impossible without the usage of
computer technology, which allows to collect, store and process a huge amount of information,
manage the experiment in the process, a large number of experimental equipment at the same time,
etc.</p>
      <p>Information systems have become an important part of the software of large-scale physical
experiments, in particular LHC CERN [1].</p>
    </sec>
    <sec id="sec-2">
      <title>2. The brief overview of CBM Geometry Database</title>
      <p>
        The information system for accounting the geometry of the detectors (a geometry database) is
intended for storing and processing information about the composition and structure of the detectors
used in the sessions of the experiments and physical analysys of the simulated and experimental data.
The need for such development is explained in the papers [
        <xref ref-type="bibr" rid="ref1 ref2 ref3">2-4</xref>
        ]. It is necessary to provide flexibility to
compile the setups for different sub-detectors: MVD, STS, RICH, TRD, TOF, ECAL, PSD, MUCH,
Magnet, BeamPipe. The evolution of geometries should be considered during the facility design
works. The same geometry module can be used in the different contexts. Also, the toolkit is needed to
manage the geometry modules in a fail-safe, reproducible, and transparent mode.
      </p>
      <p>Thus, Geometry DB as an information system has to provide the following functionality: store
the modules of CBM, load the geometry modules for setup construction, construct setup from the
stored modules, and support different versions of setup.</p>
      <p>
        The issues dealing with the development of the requirements, the design and implementation
of the Geometry DB for CBM experiment are covered in the details in papers [
        <xref ref-type="bibr" rid="ref1 ref2 ref3">2-4</xref>
        ]. The development
is performed in accordance to User Requirements Document (URD) [
        <xref ref-type="bibr" rid="ref1">2</xref>
        ] that describes the basic
concepts Geometry Module, Setup Module and Setup. The Geometry Module is the file in ROOT
format with the content of the detector geometry. The Setup Module is the Geometry module, linked to
the mother geometry module (transformation matrix). The Setup is the combination of the setup
modules and additional elements (the magnetic field and the materials) that describes the full CBM
geometry. During the life circle the Setup state may be changed (Figure 1).
      </p>
      <p>
        The Geometry DB is oriented to three main types of users with different access rights: Lead
Developer, Developer and CBM user [
        <xref ref-type="bibr" rid="ref1">2</xref>
        ].
      </p>
      <p>
        The Geometry DB is implemented as a distributed system. The Figure 2 clarifies the
deployment of the system artifacts at the nodes. The web-server, database interface, DBMS
PostgreSQL and the origin data are located at the server host. The local database, software
CBMROOT and web-browser are placed at the user workstation. The CBM user operates only with
the local database, downloaded into the framework. The Local Geometry DB (SQLite) [
        <xref ref-type="bibr" rid="ref2">3</xref>
        ] is a replica
of master Geometry DB and contains only approved setups.
      </p>
      <p>
        Thus, Geometry DB for storing and retrieving the geometry of CBM modules has been
developed. The functionality of the system provides interfaces to view, retrieve and update modules
and setups; to store setup as a set of setup modules, magnetic field and materials; to store setup
modules as ROOT files and transformation matrix. The realized information system has client-server
architecture, involves the database, the web-application (GUI) and a set of ROOT macros (API) [
        <xref ref-type="bibr" rid="ref2">3</xref>
        ].
      </p>
    </sec>
    <sec id="sec-3">
      <title>3. Geometry DB adaptation to BM@N</title>
      <p>BM@N (Baryonic Matter at Nuclotron) is the first experiment realized at the accelerator
complex of NICA-Nuclotron. The experiments CBM and BM@N are very similar especially in their
approaches to the methods of the simulation and reconstruction, and also the used scientific software
toolkit (FairRoot, FairSoft). The main difference is the set of the detectors. The classes describing the
specific experimental detectors are implemented in the frameworks CBMRoot and BMNRoot. The
facility BM@N has a greater variety of sub-detectors than CBM has. BM@N collaboration has the
actual experimental data allowing to test the Geometry DB.</p>
      <p>The details of any subdetector geometry are inside a root file so CBM Geometry DB can be
applied to BM@N experiment with minimal changes. Thereby for BM@N the functionality of the
web application has been expanded: the function of adding sub-detectors (modules) into the database
was implemented, the macros for obtaining of the information about the existing setups and loading
the geometry of the selected setup into the memory of the application were updated.</p>
    </sec>
    <sec id="sec-4">
      <title>4. Testing of BM@N Geometry DB</title>
      <p>First of all, the correctness of the setup geometry obtained from the database for simulation
data sets must be guaranteed. To configure the simulation and reconstruction tasks FairRoot package
has abstract class FairRun. The FairRunSim is the implementation of FairRun for simulations tasks.
The FairRunAna is the implementation of FairRun for reconstruction tasks. The FairRunAna and
FairRunSim have different approaches for loading geometry (see Figure 3).</p>
      <p>The Reconstraction class loads only the full geometry of facility. The Simulation class load
the geometry of different detectors and each detector has a file with geometry. After loading the
geometry is stored in a file as a full geometry of facility. This file can be used for reconstraction. The
CBM experiment has no real data at this moment, therefore Geometry DB can be verifyed only by the
simulation data. The BM@N has real data and geometry DB can be verifyed both: simulation and
reconstruction.</p>
      <p>One of the main idea of testing Geometry DB is to compare the results of the work of the
simulation and reconstruction tasks. The results of the work for the same input parameters should be
the same for two cases: with and without Geometry DB. The simulation task uses the generator of
events, so the results data of any new task are different. We can store full geometry of facility which is
used for simulation and compare views of them. The Figure 4 presents the full geometry of BM@N
after simulation with (b) and without (a) Geometry DB.</p>
      <p>This way is not very clear because the visual comparison of geometries does not detect small
changes (Figure 4). The functional alpha testing was done according to test script (see Table 1).</p>
      <p>Simulation
The results of reconstruction using original geometry and reconstruction from DB
with simulation should match.</p>
      <sec id="sec-4-1">
        <title>Steps</title>
        <sec id="sec-4-1-1">
          <title>To fill Geometry DB with Run6 data</title>
        </sec>
        <sec id="sec-4-1-2">
          <title>To run reconstruction using the original geometry</title>
        </sec>
        <sec id="sec-4-1-3">
          <title>To load the setup into the BMNROOT environment</title>
          <p>To run the simulation fTroomruDnBreconstruction using the geometry</p>
        </sec>
        <sec id="sec-4-1-4">
          <title>To compare the original geometry</title>
          <p>and geometry compiled from DB</p>
        </sec>
        <sec id="sec-4-1-5">
          <title>To compare the reconstructions results</title>
        </sec>
      </sec>
      <sec id="sec-4-2">
        <title>Actual result</title>
        <sec id="sec-4-2-1">
          <title>The histograms of obtained distributions matched. (a) (b)</title>
          <p>The Figure 5 presents the obtained distribution of projections of the global track momenta
along the X-axis in simulated (a) and reconstructed (b) events of the experiment. The indicators’
values Entries (number of events), mean (Mean) and RMS (Round Mean Square method) are the same
for both cases.</p>
        </sec>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>5. Conclusion References</title>
      <p>The experience of CBM Geometry DB development was applied to BM@N experiment – one
of the experiments of the NICA megaproject. The Geometry DB information system for storing and
retrieving the geometry of CBM/BM@N modules has been developed. It includes the database,
intuitive and compact GUI tools and API tools as a set of ROOT macros. The functional alpha testing
was done to demonstrate the correctness of building the setup on the simulation data set.
[1] D. Barberis. MODERN SQL AND NOSQL DATABASE TECHNOLOGIES FOR THE ATLAS
EXPERIMENT //CEUR Workshop Proceedings. - 2017, Vol-2023, pp.15-22</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>E.</given-names>
            <surname>Akishina</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.</given-names>
            <surname>Alexandrov</surname>
          </string-name>
          ,
          <string-name>
            <surname>I. Alexandrov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>I.</given-names>
            <surname>Filozova</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Friese</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Ivanov</surname>
          </string-name>
          ,
          <article-title>User Requirements Document of the Geometry DB for the CBM experiment, electronic publishing</article-title>
          . Available at: http://ltjds.jinr.ru/record/69336?ln=
          <source>en (accessed 30.10</source>
          .
          <year>2018</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [3]
          <string-name>
            <surname>Akishina</surname>
            <given-names>E. P.</given-names>
          </string-name>
          <article-title>a.o. Development of the Geometry Database for the CBM Experiment / Akishina</article-title>
          <string-name>
            <given-names>E. P.</given-names>
            ,
            <surname>Alexandrov</surname>
          </string-name>
          <string-name>
            <given-names>E. I.</given-names>
            ,
            <surname>Alexandrov</surname>
          </string-name>
          <string-name>
            <given-names>I. N.</given-names>
            ,
            <surname>Filozova</surname>
          </string-name>
          <string-name>
            <given-names>I. A.</given-names>
            ,
            <surname>Friese</surname>
          </string-name>
          <string-name>
            <given-names>V.</given-names>
            ,
            <surname>Ivanov</surname>
          </string-name>
          <string-name>
            <surname>V</surname>
          </string-name>
          . V. // Particles and Nuclei, Letters,
          <year>2018</year>
          , Issue 1, pp. .
          <volume>97</volume>
          -
          <fpage>106</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>E.</given-names>
            <surname>Akishina</surname>
          </string-name>
          et al.
          <article-title>Status of the geometry database for the CBM experiment</article-title>
          /E. Akishina,
          <string-name>
            <given-names>E.</given-names>
            <surname>Alexandrov</surname>
          </string-name>
          ,
          <string-name>
            <surname>I. Alexandrov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>I.</given-names>
            <surname>Filozova</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Friese</surname>
          </string-name>
          , V. Ivanov//CEUR Workshop Proceedings. -
          <source>2017</source>
          , Vol-
          <volume>2023</volume>
          , pp.
          <fpage>144</fpage>
          -
          <lpage>154</lpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>