Skip to content

Commit

Permalink
New class for digitizer
Browse files Browse the repository at this point in the history
  • Loading branch information
pandreetto committed Apr 19, 2023
1 parent 92f02f9 commit 7b3742f
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions ilcsoft/__init__.py
Expand Up @@ -41,6 +41,7 @@
from .marlintrk import MarlinTrk
from .kitrack import KiTrack, KiTrackMarlin
from .detectorsimulation import DetectorSimulation
from .digitizer import Digitizer

#slic et al
from .gdml import GDML
Expand Down
30 changes: 30 additions & 0 deletions ilcsoft/digitizer.py
@@ -0,0 +1,30 @@
##################################################
#
# Digitizer module
#
# Author: P. Andreetto, INFN
# Date: Apr, 2023
#
##################################################

from .baseilc import BaseILC
from .marlinpkg import MarlinPKG

class Digitizer(MarlinPKG):
""" Responsible for the Digitizer installation process. """

def __init__(self, userInput):
MarlinPKG.__init__(self, "Digitizer", userInput )

self.hasCMakeFindSupport = True

# required modules
self.reqmodules = [ "Marlin", "MarlinUtil", "GSL", "DD4hep", "RAIDA" ]

def postCheckDeps(self):
BaseILC.postCheckDeps(self)

# fill MARLIN_DLL
self.parent.module('Marlin').envpath["MARLIN_DLL"].append(self.installPath + "lib/libMuonCVXDDigitiser.so")
self.parent.module('Marlin').envpath["MARLIN_DLL"].append(self.installPath + "lib/libMuonCVXDRealDigitiser.so")

0 comments on commit 7b3742f

Please sign in to comment.