Int_t iResult = 0;
- //Loop over blocks
- AliHLTHOMERBlockDesc * block = NULL;
if ( NextEvent() ) {
iResult = ReConnectHOMER();
return NextHOMEREvent();
}
-
+ return ProcessEvent();
+
+}
+
+
+//______________________________________________________________________________________________
+Int_t AliEveHOMERManager::ProcessEvent() {
+
//We have a new event, reset display items (need to check if there really is anything interesting in event before resetting. ie not just histos)
ResetDisplay();
-
+
+
+ AliHLTHOMERBlockDesc * block = NULL;
+
+
//Process the SYNCED block list
if ( GetBlockList() == NULL) {
printf ("onlineDisplay: No regular BlockList ... \n");
TIter next(GetBlockList());
-
while ((block = (AliHLTHOMERBlockDesc*)next())) {
ProcessBlock(block);
/** Set the retry count for source list loop */
void SetRetryCount(Int_t count, Int_t sleeptime) { fRetryCount = count; fRetrySleeptime = sleeptime; }
- /** Get next event and process it */
+ /** Get next event from the readers */
Int_t NextHOMEREvent();
+ /** Process the event data */
+ Int_t ProcessEvent();
+
/** Set flag for event loop */
void SetEventLoopStarted (Bool_t started) {fEventLoopStarted = started;}
// }
void AliEveHOMERManagerEditor::NextEvent() {
- // call next event from macro
+ // call next event from AliEveHOMERManger
fM->NextHOMEREvent();
}
void AliEveHOMERManagerEditor::WriteBlockListToFile() {
-
-
gROOT->ProcessLineFast("writeToFile();");
}
if ( fM->NavigateEventBufferFwd() == -1 )
return;
- gROOT->ProcessLineFast("processEvent();");
+ fM->ProcessEvent();
+ // gROOT->ProcessLineFast("processEvent();");
}
return;
}
if ( !fEventLoopStarted ) {
if ( fM->NavigateEventBufferBack() == -1 )
return;
-
- gROOT->ProcessLineFast("processEvent();");
+
+ fM->ProcessEvent();
+ //gROOT->ProcessLineFast("processEvent();");
}
return;
}
return iResult;
}
//****************************************************************************
-
-
-
-
void writeToFile(){
TList * bList = gHomerManager->GetBlockList();
if(bList){
TFile * afile = TFile::Open(Form("Event_0x%016X_Async.root", gHomerManager->GetEventID()), "RECREATE");
bList->Write("blockList", TObject::kSingleKey);
- }afile->Close();
-
+ afile->Close();
+ }
}