7.6. User hooksΒΆ
The USERHOOKS
infrastructure in Sherpa can be used to implement a custom event afterburner. Written in C++ by the user, such a hook has access to the full Sherpa event structure and physics modules after the generation of the full hadron-level event. The event can be modified, rejected, or weights added before the event is passed to the analysis phases.
Please see Custom event processing with user hooks for an example how to use this.