GammaWare  Head Version for release 0.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Frame * FrameTrigger::GetSubFrameFrom ( UInt_t  which_input,
UInt_t  which_sub,
SharedFP utility,
Bool_t  do_scan = false 
)
virtual

to extract a sub frame from one event frame of the current trigger

scan the composite frame only if do_scan is set to true (in principle the main frame is scanned at checking time) so in case which_iput is not 0, do :

// trigger defintion
// utility to get sub frames
SharedFP *sub = trigger->AddUtility( ... );
// in case the trigger has fired
if ( trigger->IsIndividualFired(which_input) ) {
trigger->GetInputSharedFP(which_input)->Scan();
for (UInt_t i = 0; i < trigger->GetInputSharedFP(which_input)->GetNbSubFrame(); i++) {
Frame *data_frame = trigger->GetSubFrameFrom(which_input,i,sub);
if ( data_frame ) {
// get the data and put them in your local data
}
}
}

Definition at line 667 of file Trigger.cpp.