GammaWare  Head Version for release 0.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Bool_t FrameIO::Notify ( Bool_t  with_inner_trigger = false)
virtual

To know the number of registered triggers.

To Notify that at least one trigger has fired

It takes the current Frame on the data flow and checks whether or not it fullfills one of the Registered Trigger. It returns true if al least one has fired.

External (added by users with Register) and internal Triggers exist (for instance the one to take into account a global reconfiguration of the data flow). By default only external triggers returns true. To allow this method to Notify an internal trigger has been fired, call it with true as argument (default is false).

Using this, a user can be informed of a global reconfiguration, that comes from instance for a new run, with :

while ( GetFrameIO().Notify(true) ) {
...
if ( GetFrameIO().GetGlobalConfigurationTrigger()->IsFired() ) {
// a global reconfiguration Frame has been found ...
// check for instance the run number and do something appropriate in case of changes
continue;
}
}

Definition at line 447 of file FrameIO.cpp.