Skip to content

Bender: add BenderSelection & BenderMCSelection

Vanya Belyaev requested to merge vanya-bender-6 into master
  • add new module python/Bender/Selections.py Now one can make an easy insertion of Bender algorithms into ``Selection'' framework

     ## Create very simple Bender-based ``selection'' (== ``Selection'' using BenderAlgo)
      
      ## 1) Bender algorithm
      class MyNiceAlg(Algo) : ...
      
      ## 2) Configuration:
      
      bsel = BenderSelection ( 'MyAlg' , inputs = [ kaons , pions ] )
      bsel = PrintSelection  ( bsel )
      
      ## 3) finally, create algorithm:
      alg  = MyNiceAlg('MyAlg')
      

Merge request reports