Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/celeritas/io/ImportMuPairProductionTable.hh was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 //------------------------------- -*- C++ -*- -------------------------------//
0002 // Copyright Celeritas contributors: see top-level COPYRIGHT file for details
0003 // SPDX-License-Identifier: (Apache-2.0 OR MIT)
0004 //---------------------------------------------------------------------------//
0005 //! \file celeritas/io/ImportMuPairProductionTable.hh
0006 //---------------------------------------------------------------------------//
0007 #pragma once
0008 
0009 #include <vector>
0010 
0011 #include "celeritas/inp/Grid.hh"
0012 
0013 namespace celeritas
0014 {
0015 //---------------------------------------------------------------------------//
0016 /*!
0017  * Sampling table for electron-positron pair production by muons.
0018  *
0019  * This 3-dimensional table is used to sample the energy transfer to the
0020  * electron-positron pair, \f$ \epsilon_p \f$. The outer grid stores the atomic
0021  * number using 5 equally spaced points in \f$ \log Z \f$; the x grid stores
0022  * the logarithm of the incident muon energy \f$ T \f$ using equal spacing
0023  * in\f$ \log T \f$; the y grid stores the ratio \f$ \log \epsilon_p / T \f$.
0024  * The values are the unnormalized CDF.
0025  */
0026 struct ImportMuPairProductionTable
0027 {
0028     //!@{
0029     //! \name Type aliases
0030     using ZInt = int;
0031     //!@}
0032 
0033     std::vector<ZInt> atomic_number;
0034     std::vector<inp::TwodGrid> grids;
0035 
0036     explicit operator bool() const
0037     {
0038         return !atomic_number.empty() && grids.size() == atomic_number.size();
0039     }
0040 };
0041 
0042 //---------------------------------------------------------------------------//
0043 }  // namespace celeritas