예제 #1
0
 def set_decay(self, descriptor):
     self.descriptor = decode(descriptor)
예제 #2
0
evtmetagen = register_module('EvtMetaGen')
evtmetagen.param('EvtNumList', [nOfEvents])  # process nOfEvents events
evtmetagen.param('RunList', [1])  # from run number 1
evtmetagen.param('ExpList', [1])  # and experiment number 1

progress = register_module('Progress')
gearbox = register_module('Gearbox')


# ---------------------------------------------------------------
# Add all modules to the main path
main = create_path()
main.add_module(evtmetagen)
main.add_module(evtgeninput)
main.add_module(progress)
main.add_module(gearbox)

# c++ module attempt
from descriptor import decode, to_json
analysis = register_module('DecayFinder')
analysis.param('pattern', to_json(decode('B0 => X- (e+ || mu+) (nu_e || nu_mu)')))
main.add_module(analysis)

# from decay_filter import DecayFilterModule
# filter = DecayFilterModule()
# # filter.set_decay('B0 -> (D*- -> D- pi0) e+ nu_e')
# filter.set_decay('B0 --> X- [e+,mu+,tau+] [nu_e, nu_mu, nu_tau] ...')
# main.add_module(filter)

process(main)