Exemple #1
0
 def hlt2Lines(self, Hlt2):
     """
     The actual lines
     """
     from HltLine.HltLine import Hlt2Line
     #
     # check if this threshold setting has some global event cut...
     #  if so, set it, and add a line which does (prescaled) the opposite
     #
     if self.getProp('DefaultVoidFilter'):
         Hlt2Line.setDefaultVoidFilter(self.getProp('DefaultVoidFilter'))
         Hlt2Line('PileUp',
                  VoidFilter='  ~ ( %s ) ' %
                  self.getProp('DefaultVoidFilter'),
                  postscale=0.01)
     #
     # Loop over thresholds
     #
     from ThresholdUtils import setThresholds
     from functools import partial
     map(partial(setThresholds, self.getProp("ThresholdSettings")),
         _hlt2linesconfs)
     from Configurables import LoKi__HDRFilter as HDRFilter
     Hlt2Line('Global',
              priority=255,
              VoidFilter='',
              HLT1='',
              HLT2="HLT_PASS_SUBSTR('Hlt2')")
Exemple #2
0
 def __apply_configuration__(self):
     """
     Hlt2 configuration
     """
     Hlt2 = Sequence("Hlt2", Context='HLT', ModeOR=True, ShortCircuit=False)
     # set Hlt2 PID
     self.configureReconstruction()
     # lines
     if self.getProp("DefaultVoidFilter"):
         from HltLine.HltLine import Hlt2Line
         Hlt2Line.setDefaultVoidFilter(self.getProp("DefaultVoidFilter"))
     self.hlt2Lines(Hlt2)