Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 631 Bytes

user_hook.rst

File metadata and controls

26 lines (19 loc) · 631 Bytes

Additional User Hooks

c++

Six additional hooks are provided in TsExtensionManager for you to attach your own code.

  • BeginSession
  • BeginRun
  • BeginHistory
  • EndHistory
  • EndRun
  • EndSession

First line of the cc file must be of the form:

// BeginSession for TOPAS
// BeginRun for TOPAS
// BeginHistory for TOPAS
// EndHistory for TOPAS
// EndRun for TOPAS
// EndSession for TOPAS

There are no particular constraints on what you can do in these methods. They are provided simply to give you more flexibility in the design of your extensions.