GammaWare  Head Version for release 0.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
AgataFrameTrigger * AgataFrameTrigger::Build ( const Char_t *  name,
const Char_t *  in,
const Char_t *  out = "",
ConfAgent agent = 0x0 
)
static

Build a new AgataFrame Trigger.

The name is mandatory. If in or out are empty, it means write / read only trigger. if agent is 0x0, the global one is selected. Options ("","!" or "|" see Add(const FactoryItem &key_item, const FactoryItem &frame_item, bool iscons = true, const Char_t *option = "")) for input frames are passed by attached to the type of agata frame. Ex:

AgataFrameTrigger::Build("mytrigger1","event:data event:data:psa !data:ranc1");

the trigger triggs for an event:data frame always containing an event:data:psa frame AND without an ancillary frame

AgataFrameTrigger::Build("mytrigger2","event:data event:data:psa |data:ranc1");

the trigger triggs for an event:data frame always containing an event:data:psa frame, with OR without an ancillary frame

AgataFrameTrigger::Build("mytrigger3","event:data |event:data:psa |data:ranc1");

the trigger triggs for an event:data frame always containing or not an event:data:psa frame or an ancillary frame

Whether the frame is really there or not could be tested using IsIndividualFired() or from the associated SharedFP (IsValid method) which is set to valid is the frame is there, not valid otherwise

Definition at line 839 of file Trigger.cpp.