Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:15:26

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 
0009 
0010 class Irt(CMakePackage):
0011     """Indirect Ray Tracing library for EPIC Cherenkov detector reconstruction."""
0012 
0013     homepage = "https://github.com/eic/irt"
0014     url = "https://github.com/eic/irt/archive/refs/tags/v1.0.0.zip"
0015     list_url = "https://github.com/eic/irt/tags"
0016     git = "https://github.com/eic/irt.git"
0017 
0018     maintainers = ["wdconinc", "c-dilks"]
0019     tags = ["eic"]
0020 
0021     version("1.0.8", sha256="0592bbe37d7a48d9b891c35dcc7ed10d8ceef6a476f8067268fbc9a7f845437f")
0022     version(
0023         "1.0.7",
0024         sha256="ae4feabaa1d70bdc8dcebe5803403f9f29efc69579c0b987c06b759c88aa5074",
0025     )
0026     version(
0027         "1.0.6",
0028         sha256="8a7f82548fc73fbd7ca530a7d0d30d2ef0fca2071b7e1fbfe0620789022f51d9",
0029     )
0030     version(
0031         "1.0.5",
0032         sha256="b51006ae517a685e6a1004ec0f6cd538317801319ede51f8c806d23690c7648e",
0033     )
0034     version(
0035         "1.0.4",
0036         sha256="8e0bc2542c10d208e933418265a235922dc542026aa2cb0a58d5dc838677dfac",
0037     )
0038     version(
0039         "1.0.3",
0040         sha256="b28dea9880dcf84384ede6d672bf3b598446a229faa5197e86bcaa433a0186db",
0041     )
0042     version(
0043         "1.0.2_fixed",
0044         sha256="e97e57d043b88bfbce2e1a9534e0b9e98cb59e16f4f788587bf3d16e02154419",
0045     )
0046     version(
0047         "1.0.2",
0048         sha256="9e88df94a675bccbbd679c9fccb2e3d63d23edcfc9d487f6073b39b462e841f9",
0049     )
0050     version(
0051         "1.0.1",
0052         sha256="9e916f145a5a6045a1f9ad2130538e3c58e8c2342c77da831e5021aa752dc1c3",
0053     )
0054     version(
0055         "1.0.0",
0056         sha256="55746700a477ed4decbdadbc008b43f370071cdd699452b96d7daa1dbc4ee28d",
0057     )
0058 
0059     variant("root_io", default=False, description="Build dictionaries for ROOT IO", when="@1.0.6:")
0060 
0061     depends_on("cxx", type="build")
0062 
0063     depends_on("root@6: +root7")
0064 
0065     def cmake_args(self):
0066         args = [
0067             "-DEVALUATION=OFF",
0068             "-DDELPHES=OFF",
0069         ]
0070         args.append(self.define_from_variant("IRT_ROOT_IO", "root_io"))
0071         return args