Source code for CaloCellBuilder.OptimalFilter

__all__ = ["OptimalFilter", "ConstrainedOptimalFilter"]


from GaugiKernel import Cpp, LoggingLevel
from GaugiKernel.macros import *
import ROOT

[docs] class OptimalFilter( Cpp ): def __init__( self, name : str, WeightsEnergy : list=[], WeightsTime : list=[], OutputLevel : int=LoggingLevel.toC('INFO'), ): Cpp.__init__(self, ROOT.OptimalFilter(name) ) self.setProperty( "OutputLevel" , OutputLevel ) self.setProperty( "WeightsEnergy" , WeightsEnergy ) self.setProperty( "WeightsTime" , WeightsTime )
[docs] class ConstrainedOptimalFilter(Cpp): def __init__( self, name, OutputLevel : int=0, NSamples : float=0, PulsePath : str="", Threshold : float=0, SamplingRate : float=0, StartSamplingBC : float=0, ): Cpp.__init__(self, ROOT.ConstrainedOptimalFilter(name) ) self.setProperty( "OutputLevel" , OutputLevel ) self.setProperty( "OutputLevel" , OutputLevel ) self.setProperty( "NSamples" , NSamples ) self.setProperty( "PulsePath" , PulsePath ) self.setProperty( "Threshold" , Threshold ) self.setProperty( "SamplingRate" , SamplingRate ) self.setProperty( "StartSamplingBC" , StartSamplingBC )