Skip to content

Calo: use functional conditions accessors

Gerhard Raven requested to merge calo-functional-conditions into master

Migrate to access conditions from the arguments of operator().

In order to simplify this, drop the use of "aliases" for the condition location (which would require an update handler to translate the condition location, which may introduce race conditions), and instead require the location to be spelled out in python. However, to avoid mentioning the explicit name of the location, import the name from the C++ code into python, eg.:

from cppyy.gbl  import DeCalorimeterLocation
CaloFutureRawToDigits("FutureHcalZSup",DetectorLocation = DeCalorimeterLocation.Hcal)

instead of the old

CaloFutureRawToDigits("FutureHcalZSup",DetectorName = "Hcal")

must be applied in conjunction with Rec!1705 (merged)

Edited by Marco Cattaneo

Merge request reports