Public Member Functions | |
def | process (self, event) |
Builds resonances from an input collection of particles. Example configuration: from PhysicsTools.Heppy.analyzers.examples.ResonanceBuilder import ResonanceBuilder dimuons = cfg.Analyzer( ResonanceBuilder, 'dimuons', leg_collection = 'muons', # input collection filter_func = lambda x : True, # filtering function for input objects. here, take all. pdgid = 23 # pdgid for the resonances, here Z ) This analyzer puts one collection in the event: event.dimuons : all resonances, sorted by their distance to the nominal mass corresponding to the specified pdgid
Definition at line 57 of file ResonanceBuilder.py.
def ResonanceBuilder.ResonanceBuilder.process | ( | self, | |
event | |||
) |
Definition at line 75 of file ResonanceBuilder.py.
References funct.abs(), analyzer.Analyzer.cfg_ana, analyzer.Analyzer.instance_label, config.Analyzer.instance_label, and config.Service.instance_label.