Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-03-30 07:48:31

0001 # Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
0002 # Spack Project Developers. See the top-level COPYRIGHT file for details.
0003 #
0004 # SPDX-License-Identifier: (Apache-2.0 OR MIT)
0005 
0006 
0007 from spack.package import *
0008 from spack_repo.builtin.build_systems.cmake import CMakePackage
0009 
0010 
0011 class Irt(CMakePackage):
0012     """Indirect Ray Tracing library for EPIC Cherenkov detector reconstruction."""
0013 
0014     homepage = "https://github.com/eic/irt"
0015     url = "https://github.com/eic/irt/archive/refs/tags/v1.0.0.zip"
0016     list_url = "https://github.com/eic/irt/tags"
0017     git = "https://github.com/eic/irt.git"
0018 
0019     maintainers = ["wdconinc", "c-dilks"]
0020     tags = ["eic"]
0021 
0022     version("1.0.10", sha256="4399771311f3c65f7a05aa9fab93126a0074504ae3e67ec1384249841b452a6f")
0023     version("1.0.9", sha256="81f486f61ba729f48510baf578222119d83b57df7172a8ee1e9e4a9a622007ab")
0024     version("1.0.8", sha256="0592bbe37d7a48d9b891c35dcc7ed10d8ceef6a476f8067268fbc9a7f845437f")
0025     version(
0026         "1.0.7",
0027         sha256="ae4feabaa1d70bdc8dcebe5803403f9f29efc69579c0b987c06b759c88aa5074",
0028     )
0029     version(
0030         "1.0.6",
0031         sha256="8a7f82548fc73fbd7ca530a7d0d30d2ef0fca2071b7e1fbfe0620789022f51d9",
0032     )
0033     version(
0034         "1.0.5",
0035         sha256="b51006ae517a685e6a1004ec0f6cd538317801319ede51f8c806d23690c7648e",
0036     )
0037     version(
0038         "1.0.4",
0039         sha256="8e0bc2542c10d208e933418265a235922dc542026aa2cb0a58d5dc838677dfac",
0040     )
0041     version(
0042         "1.0.3",
0043         sha256="b28dea9880dcf84384ede6d672bf3b598446a229faa5197e86bcaa433a0186db",
0044     )
0045     version(
0046         "1.0.2_fixed",
0047         sha256="e97e57d043b88bfbce2e1a9534e0b9e98cb59e16f4f788587bf3d16e02154419",
0048     )
0049     version(
0050         "1.0.2",
0051         sha256="9e88df94a675bccbbd679c9fccb2e3d63d23edcfc9d487f6073b39b462e841f9",
0052     )
0053     version(
0054         "1.0.1",
0055         sha256="9e916f145a5a6045a1f9ad2130538e3c58e8c2342c77da831e5021aa752dc1c3",
0056     )
0057     version(
0058         "1.0.0",
0059         sha256="55746700a477ed4decbdadbc008b43f370071cdd699452b96d7daa1dbc4ee28d",
0060     )
0061 
0062     variant("root_io", default=False, description="Build dictionaries for ROOT IO", when="@1.0.6:")
0063 
0064     depends_on("cxx", type="build")
0065 
0066     depends_on("root@6: +root7")
0067 
0068     def cmake_args(self):
0069         args = [
0070             "-DEVALUATION=OFF",
0071             "-DDELPHES=OFF",
0072         ]
0073         args.append(self.define_from_variant("IRT_ROOT_IO", "root_io"))
0074         return args