2 // $Id: AliHLTHOMERManager.cxx $
3 //**************************************************************************
4 //* This file is property of and copyright by the ALICE HLT Project *
5 //* ALICE Experiment at CERN, All rights reserved. *
7 //* Primary Authors: Jochen Thaeder <thaeder@kip.uni-heidelberg.de> *
8 //* for The ALICE HLT Project. *
10 //* Permission to use, copy, modify and distribute this software and its *
11 //* documentation strictly for non-commercial purposes is hereby granted *
12 //* without fee, provided that the above copyright notice appears in all *
13 //* copies and that both the copyright notice and this permission notice *
14 //* appear in the supporting documentation. The authors make no claims *
15 //* about the suitability of this software for any purpose. It is *
16 //* provided "as is" without express or implied warranty. *
17 //**************************************************************************
19 /** @file AliHLTHOMERManager.cxx
20 @author Jochen Thaeder
22 @brief Manger for HOMER in aliroot
25 // see header file for class documentation
27 // refer to README to build package
29 // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
37 #include "AliHLTHOMERManager.h"
38 // -- -- -- -- -- -- --
39 #include "AliHLTHOMERLibManager.h"
40 #include "AliHLTHOMERSourceDesc.h"
41 #include "AliHLTHOMERBlockDesc.h"
42 // -- -- -- -- -- -- --
43 #include "AliHLTGlobalTriggerDecision.h"
44 #include "AliHLTTriggerDecision.h"
45 //---------------------------
47 ClassImp(AliHLTHOMERManager)
50 * ---------------------------------------------------------------------------------
51 * Constructor / Destructor
52 * ---------------------------------------------------------------------------------
55 //##################################################################################
56 AliHLTHOMERManager::AliHLTHOMERManager() :
57 fLibManager(new AliHLTHOMERLibManager),
58 fStateHasChanged(kTRUE),
66 fAsyncBlockList(NULL),
70 fCurrentBufferIdx(-1),
71 fNavigateBufferIdx(-1),
73 fTriggerString("ALL"),
74 fNEventsNotTriggered(0),
75 fRetryNextEvent(kFALSE) {
76 // see header file for class documentation
78 // refer to README to build package
80 // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
84 //##################################################################################
85 AliHLTHOMERManager::~AliHLTHOMERManager() {
86 // see header file for class documentation
91 TIter next(fReaderList);
92 TObject * object = NULL;
93 while ( ( object = next()) )
94 fLibManager->DeleteReader(static_cast<AliHLTHOMERReader*>(object) );
105 if ( fProxyHandler != NULL )
106 delete fProxyHandler;
107 fProxyHandler = NULL;
109 if ( fSourceList != NULL )
113 if ( fEventBuffer ) {
114 fEventBuffer->Clear();
119 if ( fAsyncBlockList ) {
120 fAsyncBlockList->Clear();
121 delete fAsyncBlockList;
123 fAsyncBlockList = NULL;
126 //##################################################################################
127 Int_t AliHLTHOMERManager::Initialize() {
128 // see header file for class documentation
132 // -- Initialize ProxyHandler
133 if ( !fProxyHandler )
134 fProxyHandler = new AliHLTHOMERProxyHandler();
136 if ( fProxyHandler ) {
137 iResult = fProxyHandler->Initialize();
139 HLTError(Form("Initialize of ProxyHandler failed."));
143 HLTError(Form("Creating of ProxyHandler failed."));
146 // -- Initialize ReaderList
147 // List ist not owner, as reader have to be created/deleted by the LibManager
149 fReaderList = new TList();
151 // -- Initialize asynchronous BlockList
152 if( !fAsyncBlockList ) {
153 fAsyncBlockList = new TList();
154 fAsyncBlockList->SetOwner(kFALSE);
157 // -- Initialize Event Buffer and EventID array
158 if ( !fEventBuffer ) {
159 fEventBuffer = new TClonesArray( "TList", BUFFERSIZE );
162 for ( Int_t idx = 0; idx < BUFFERSIZE; ++idx ) {
163 new ((*fEventBuffer)[idx]) TList( );
164 (reinterpret_cast<TList*>((*fEventBuffer)[idx]))->SetOwner(kTRUE);
173 * ---------------------------------------------------------------------------------
175 * ---------------------------------------------------------------------------------
178 //##################################################################################
179 Int_t AliHLTHOMERManager::CreateSourcesList() {
180 // see header file for class documentation
184 if ( fSourceList != NULL )
188 fSourceList = new TList();
189 fSourceList->SetOwner( kTRUE );
191 iResult = fProxyHandler->FillSourceList( fSourceList );
193 HLTWarning(Form("There have been errors, while creating the sources list."));
195 else if ( iResult > 0 ) {
196 HLTWarning(Form("No active services found."));
198 else if ( fSourceList->IsEmpty() ) {
199 HLTWarning(Form("No active services in the list."));
203 HLTInfo(Form("New sources list created."));
205 // -- New SourceList has been created
206 // --> All Sources are new --> State has changed
207 fStateHasChanged = kTRUE;
213 //##################################################################################
214 void AliHLTHOMERManager::SetSourceState( AliHLTHOMERSourceDesc * source, Bool_t state ) {
215 // see header file for class documentation
217 if ( source->IsSelected() != state ) {
218 source->SetState( state );
219 fStateHasChanged = kTRUE;
226 * ---------------------------------------------------------------------------------
227 * Connection Handling - public
228 * ---------------------------------------------------------------------------------
231 //##################################################################################
232 Int_t AliHLTHOMERManager::ConnectHOMER( TString detector ){
233 // see header file for class documentation
237 // -- Check if LibManager is present
238 if ( ! fLibManager ) {
239 HLTError(Form("No LibManager present."));
243 // -- Check if already connected and state has not changed
244 if ( fStateHasChanged == kFALSE && IsConnected() ) {
245 HLTInfo(Form("No need for reconnection."));
249 // -- If already connected, disconnect before connect
250 // or if ReaderList already filled
251 if ( IsConnected() || fReaderList->GetSize() != 0 )
254 // -- Create the Readoutlist
255 UShort_t* sourcePorts = new UShort_t [fSourceList->GetEntries()];
256 const Char_t ** sourceHostnames = new const Char_t* [fSourceList->GetEntries()];
257 UInt_t sourceCount = 0;
259 CreateReadoutList( sourceHostnames, sourcePorts, sourceCount, detector );
260 if ( sourceCount == 0 ) {
261 HLTError(Form("No sources selected, aborting."));
266 // *** Connect to data sources
269 for (UInt_t idx = 0; idx < sourceCount; idx++) {
271 HLTInfo(Form("Adding source %d as %s : %d", idx, sourceHostnames[idx], sourcePorts[idx]));
273 fReaderList->Add(dynamic_cast<TObject*>(fLibManager->OpenReader(sourceHostnames[idx], sourcePorts[idx])));
274 AliHLTHOMERReader *reader = static_cast<AliHLTHOMERReader*>(fReaderList->Last());
276 HLTError(Form("Adding reader failed, aborting"));
280 if ( (iResult = reader->GetConnectionStatus()) ) {
282 // -- Connection to source failed
284 HLTError(Form("Error establishing connection to TCP source %s:%hu: %s (%d)",
285 sourceHostnames[idx], sourcePorts[idx], strerror(iResult), iResult));
287 if( !(TString(sourceHostnames[idx]).CompareTo("localhost")) ) {
288 HLTInfo("The failed connection is on localhost. is SSH tunnel up????? ");
289 HLTInfo(Form("Do: 'ssh -L %d:alihlt-vobox0.cern.ch:%d cernUser@lxplus.cern.ch -fN'",
290 sourcePorts[idx], sourcePorts[idx]));
294 fReaderList->RemoveLast();
297 fLibManager->DeleteReader( reader );
300 HLTInfo(Form("Removed source %d, %s : %d from sourceList", idx, sourceHostnames[idx], sourcePorts[idx]));
304 // -- Connection succeded
307 HLTInfo(Form("Connection established to source %s on port %d", sourceHostnames[idx], sourcePorts[idx]));
310 } // for (Int_t idx = 0; idx < sourceCount; idx++) {
312 delete[] sourceHostnames;
313 delete[] sourcePorts;
319 //##################################################################################
320 void AliHLTHOMERManager::DisconnectHOMER(){
321 // see header file for class documentation
323 if ( ! IsConnected() )
326 if ( fReaderList && fLibManager ) {
327 TIter next(fReaderList);
328 TObject * object = NULL;
329 while ( ( object = next()) )
330 fLibManager->DeleteReader(static_cast<AliHLTHOMERReader*>(object) );
332 fReaderList->Clear();
337 fStateHasChanged = kTRUE;
340 HLTInfo(Form("Connection closed."));
345 //##################################################################################
346 Int_t AliHLTHOMERManager::ReconnectHOMER( TString detector="" ){
347 // see header file for class documentation
354 iResult = ConnectHOMER(detector);
356 HLTError(Form("Error reconnecting."));
363 * ---------------------------------------------------------------------------------
364 * Event Handling - public
365 * ---------------------------------------------------------------------------------
368 //##################################################################################
369 Int_t AliHLTHOMERManager::NextEvent(){
371 // see header file for class documentation
375 Int_t iRetryCount = 0;
377 if ( !IsConnected() || fStateHasChanged )
380 if ( !IsConnected() ) {
381 HLTWarning(Form( "Not connected yet." ));
385 // -- Reset asyncronous BlockList
386 fAsyncBlockList->Clear();
389 // *** Loop over all readers and get new event data
392 TIter next(fReaderList);
393 TObject * object = NULL;
395 while( (object = next()) ) {
397 fCurrentReader = static_cast<AliHLTHOMERReader*>(object);
399 // -- Read next event data and error handling for HOMER (error codes and empty blocks)
402 iResult = fCurrentReader->ReadNextEvent( 40000000 /*timeout in us*/);
404 if ( iResult == 111 || iResult == 32 || iResult == 6 ) {
405 HLTError(Form("No connection to source %d: %s (%d)",
406 fCurrentReader->GetErrorConnectionNdx(), strerror(iResult), iResult));
409 else if ( iResult == 110 ) {
410 HLTError(Form("Timeout occured, reading event from source %d: %s (%d)",
411 fCurrentReader->GetErrorConnectionNdx(), strerror(iResult), iResult));
414 else if ( iResult == 56 ) {
417 if ( iRetryCount >= 20 ) {
418 HLTError(Form("Retry Failed: Error reading event from source %d: %s (%d), returning",
419 fCurrentReader->GetErrorConnectionNdx(), strerror(iResult), iResult));
423 HLTError(Form("Retry: Error reading event from source %d: %s (%d), making another attempt (no %d out of 20)",
424 fCurrentReader->GetErrorConnectionNdx(), strerror(iResult), iResult, iRetryCount));
429 else if ( iResult ) {
430 HLTError(Form("General Error reading event from source %d: %s (%d), giving up",
431 fCurrentReader->GetErrorConnectionNdx(), strerror(iResult), iResult));
442 // -- Check if event could be read
446 // -- Handle Blocks from current reader
447 iResult = HandleBlocks();
449 HLTError(Form("Handling of blocks failed."));
452 } // while( (object = next()) ) {
454 // -- Check if NextEvent should be recalled,
455 // to catch the next event with a trigger
456 if ( fRetryNextEvent ) {
458 fRetryNextEvent = kFALSE;
460 HLTInfo(Form("Checked trigger of %d events, without triggering", fNEventsNotTriggered));
467 /* ---------------------------------------------------------------------------------
468 * Buffer Handling - public
469 * ---------------------------------------------------------------------------------
472 //##################################################################################
473 Int_t AliHLTHOMERManager::NavigateEventBufferBack() {
474 // see header file for class documentation
476 // -- reached the end of the buffer
477 if ( fNavigateBufferIdx == fBufferLowIdx )
480 Int_t newIdx = fNavigateBufferIdx - 1;
482 newIdx = BUFFERSIZE-1;
484 fCurrentBufferIdx = fNavigateBufferIdx = newIdx;
489 //##################################################################################
490 Int_t AliHLTHOMERManager::NavigateEventBufferFwd() {
491 // see header file for class documentation
493 // -- reached the top of the buffer
494 if ( fNavigateBufferIdx == fBufferTopIdx )
497 Int_t newIdx = fNavigateBufferIdx + 1;
498 if ( newIdx == BUFFERSIZE )
501 fCurrentBufferIdx = fNavigateBufferIdx = newIdx;
506 ///////////////////////////////////////////////////////////////////////////////////
509 * ---------------------------------------------------------------------------------
510 * Connection Handling - private
511 * ---------------------------------------------------------------------------------
514 //##################################################################################
515 void AliHLTHOMERManager::CreateReadoutList( const char** sourceHostnames, UShort_t *sourcePorts,
516 UInt_t &sourceCount, TString detector ){
517 // see header file for class documentation
519 AliHLTHOMERSourceDesc * source= NULL;
521 // -- Read all sources and check if they should be read out
522 TIter next( fSourceList );
523 while ( ( source = dynamic_cast<AliHLTHOMERSourceDesc*>(next()) ) ) {
525 // -- If detector NO detector name given
526 if ( ! detector.CompareTo("ALL") ) {
527 // -- Continue if source is not selected
528 if ( ! source->IsSelected() )
531 // -- DetectorName given
533 // -- Continue if detector name doesn't match
534 if ( detector.CompareTo(source->GetDetector()) )
540 Bool_t exists = kFALSE;
542 // -- Loop over existing entries and check if entry is already in readout list
543 for ( UInt_t ii = 0; ii < sourceCount; ii++ ){
544 if ( !strcmp( sourceHostnames[ii], source->GetHostname().Data() )
545 && sourcePorts[ii] == source->GetPort() ) {
551 // -- Add new entires to readout list
553 sourcePorts[sourceCount] = source->GetPort();
554 sourceHostnames[sourceCount] = source->GetHostname().Data();
558 } // while ( ( source = (AliHLTHOMERSourceDesc*)next() ) ) {
560 fStateHasChanged = kFALSE;
566 * ---------------------------------------------------------------------------------
567 * Buffer Handling - private
568 * ---------------------------------------------------------------------------------
571 //##################################################################################
572 void AliHLTHOMERManager::AddBlockListToBuffer() {
573 // see header file for class documentation
575 // -- Check if event is already in buffer
576 ULong_t eventID = static_cast<ULong64_t>(fCurrentReader->GetEventID());
578 if ( fEventID[fBufferTopIdx] == eventID ) {
579 HLTInfo(Form("Event 0x%016LX (%Lu) already in buffer.", eventID, eventID));
583 // -- Check if event should be selected on basis of trigger string
584 if( fTriggerString.CompareTo("ALL") ){
585 if ( !CheckTriggerDecision() ) {
586 HLTInfo(Form("Event 0x%016LX (%Lu) is not triggered by %s.",
587 eventID, eventID, fTriggerString.Data()));
592 HLTInfo("No trigger selection.");
597 if ( fBufferTopIdx == BUFFERSIZE )
600 // -- Change the low mark if necessary
601 if ( fBufferLowIdx == -1 )
603 else if ( fBufferTopIdx == fBufferLowIdx ) {
605 if ( fBufferLowIdx == BUFFERSIZE )
609 fNavigateBufferIdx = fCurrentBufferIdx = fBufferTopIdx;
612 fEventID[fBufferTopIdx] = eventID;
614 // -- Clear Buffer slot
615 (reinterpret_cast<TList*>((*fEventBuffer)[fBufferTopIdx]))->Clear();
620 // -- Fill block list
623 // -- Create new block
624 AliHLTHOMERBlockDesc * block = new AliHLTHOMERBlockDesc();
625 block->SetBlock( GetBlk(), GetBlkSize(), GetBlkOrigin(),
626 GetBlkType(), GetBlkSpecification() );
628 // -- Check sources list if block is requested
629 if ( CheckIfRequested( block ) ) {
630 (reinterpret_cast<TList*>((*fEventBuffer)[fBufferTopIdx]))->Add( block );
634 (reinterpret_cast<TList*>((*fEventBuffer)[fBufferTopIdx]))->Add( block );
639 } while( GetNextBlk() );
644 //##################################################################################
645 void AliHLTHOMERManager::AddToAsyncBlockList() {
646 // see header file for class documentation
648 HLTInfo("Adding blocks to the asynchroneous block list");
653 // -- Fill block list
657 // -- Create new block
658 AliHLTHOMERBlockDesc * block = new AliHLTHOMERBlockDesc();
659 block->SetBlock( GetBlk(), GetBlkSize(), GetBlkOrigin(),
660 GetBlkType(), GetBlkSpecification() );
662 // -- Check sources list if block is requested
663 if ( CheckIfRequested( block ) )
664 fAsyncBlockList->Add( block );
667 fAsyncBlockList->Add( block );
672 } while( GetNextBlk() );
676 //##################################################################################
677 TList* AliHLTHOMERManager::GetBlockListEventBuffer( Int_t idx ) {
678 // see header file for class documentation
683 return reinterpret_cast<TList*>((*fEventBuffer)[idx]);
688 * ---------------------------------------------------------------------------------
689 * Block Handling - private
690 * ---------------------------------------------------------------------------------
693 //##################################################################################
694 Int_t AliHLTHOMERManager::HandleBlocks() {
695 // see header file for class documentation
699 // -- Get blockCnt and eventID
700 fNBlks = static_cast<ULong_t>(fCurrentReader->GetBlockCnt());
701 ULong_t eventID = static_cast<ULong64_t>(fCurrentReader->GetEventID());
704 // -- Check if blocks present
706 HLTWarning(Form("Event 0x%016LX (%Lu) with no blocks", eventID, eventID));
710 HLTInfo(Form("Event 0x%016LX (%Lu) with %lu blocks", eventID, eventID, fNBlks));
713 // Loop for Debug only
714 for ( ULong_t ii = 0; ii < fNBlks; ii++ ) {
715 Char_t tmp1[9], tmp2[5];
716 memset( tmp1, 0, 9 );
717 memset( tmp2, 0, 5 );
719 ULong64_t* tmp12 = static_cast<ULong64_t*>(tmp11);
720 *tmp12 = fCurrentReader->GetBlockDataType(ii);
722 ULong_t* tmp22 = static_cast<ULong_t*>(tmp21);
723 *tmp22 = fCurrentReader->GetBlockDataOrigin(ii);
724 HLTInfo(Form( "Block %lu length: %lu - type: %s - origin: %s - spec 0x%08X",
725 ii, fCurrentReader->GetBlockDataLength(ii), tmp1, tmp2, fCurrentReader->GetBlockDataSpec(ii) ));
726 } // end for ( ULong_t ii = 0; ii < fNBlks; ii++ ) {
729 // -- Check if blocks are from syncronous source
731 if ( IsSyncBlocks() )
732 AddBlockListToBuffer();
734 AddToAsyncBlockList();
739 //##################################################################################
740 Bool_t AliHLTHOMERManager::IsSyncBlocks() {
741 // see header file for class documentation
743 Bool_t bResult = kFALSE;
750 // if ( !GetBlkType().CompareTo("ALIESDV0") ||
752 if ( !GetBlkType().CompareTo("ALIESDV0") ||
753 !GetBlkType().CompareTo("CLUSTERS") ) {
760 if ( !GetBlkType().CompareTo("ROOTTOBJ") ) {
761 AliHLTHOMERBlockDesc blockDesc;
763 blockDesc.SetBlock( GetBlk(), GetBlkSize(), GetBlkOrigin(),
764 GetBlkType(), GetBlkSpecification() );
765 if ( !blockDesc.GetClassName().CompareTo("AliHLTGlobalTriggerDecision") ) {
772 } while( GetNextBlk() );
778 //##################################################################################
779 void* AliHLTHOMERManager::GetBlk( Int_t ndx ) {
780 // see header file for class documentation
781 // Get pointer to current block in current event
783 if ( !fCurrentReader || !IsConnected() ) {
784 HLTError(Form("Not connected yet."));
787 if ( ndx < static_cast<Int_t>(fNBlks) )
788 return const_cast<void*> (fCurrentReader->GetBlockData(ndx));
793 //##################################################################################
794 ULong_t AliHLTHOMERManager::GetBlkSize( Int_t ndx ) {
795 // see header file for class documentation
797 if ( !fCurrentReader || !IsConnected() ) {
798 HLTError(Form("Not connected yet."));
802 if ( ndx < static_cast<Int_t>(fNBlks) )
803 return static_cast<ULong_t> (fCurrentReader->GetBlockDataLength(ndx));
808 //##################################################################################
809 TString AliHLTHOMERManager::GetBlkOrigin( Int_t ndx ) {
810 // see header file for class documentation
814 // -- Check for Connection
815 if ( !fCurrentReader || ! IsConnected() ) {
816 HLTError(Form("Not connected yet."));
820 // -- Check block index
821 if ( ndx >= static_cast<Int_t>(fNBlks) ) {
822 HLTError(Form("Block index %d out of range.", ndx ));
832 reverseOrigin.data = static_cast<UInt_t>(fCurrentReader->GetBlockDataOrigin(ndx));
834 // -- Reverse the order
835 for (Int_t ii = 3; ii >= 0; ii-- )
836 if ( reverseOrigin.array[ii] != ' ')
837 origin.Append( reverseOrigin.array[ii] );
839 origin.Remove( TString::kTrailing, ' ' );
844 //##################################################################################
845 TString AliHLTHOMERManager::GetBlkType( Int_t ndx ) {
846 // see header file for class documentation
850 // -- Check for Connection
851 if ( !fCurrentReader || ! IsConnected() ) {
852 HLTError(Form("Not connected yet."));
856 // -- Check block index
857 if ( ndx >= static_cast<Int_t>(fNBlks) ) {
858 HLTError(Form("Block index %d out of range.", ndx ));
868 reverseType.data = static_cast<ULong64_t> (fCurrentReader->GetBlockDataType(ndx));
870 // -- Reverse the order
871 for (Int_t ii = 7; ii >= 0; ii-- )
872 if ( reverseType.array[ii] != ' ')
873 type.Append( reverseType.array[ii] );
875 type.Remove( TString::kTrailing, ' ' );
880 //##################################################################################
881 ULong_t AliHLTHOMERManager::GetBlkSpecification( Int_t ndx ) {
882 // see header file for class documentation
884 // -- Check for Connection
885 if ( !fCurrentReader || ! IsConnected() ) {
886 HLTError(Form("Not connected yet."));
890 // -- Check block index
891 if ( ndx >= static_cast<Int_t>(fNBlks) ) {
892 HLTError(Form("Block index %d out of range.", ndx ));
896 return static_cast<ULong_t>(fCurrentReader->GetBlockDataSpec(ndx));
899 //##################################################################################
900 Bool_t AliHLTHOMERManager::CheckIfRequested( AliHLTHOMERBlockDesc * block ) {
901 // see header file for class documentation
903 Bool_t requested = kFALSE;
905 AliHLTHOMERSourceDesc * source= NULL;
907 // -- Read all sources and check if they should be read out
908 TIter next( fSourceList );
909 while ( ( source = dynamic_cast<AliHLTHOMERSourceDesc*>(next()) ) ) {
911 // -- Check if source is selected
912 if ( ! source->IsSelected() )
915 // -- Check if detector matches
916 if ( source->GetSourceName().CompareTo( block->GetBlockName() ) )
922 } // while ( ( source = dynamic_cast<AliHLTHOMERSourceDesc*>(next()) ) ) {
926 HLTInfo(Form("Block requested : %s", block->GetBlockName().Data()));
929 HLTInfo(Form("Block NOT requested : %s", block->GetBlockName().Data()));
936 /* ---------------------------------------------------------------------------------
937 * Trigger Handling - private
938 * ---------------------------------------------------------------------------------
941 //##################################################################################
942 Bool_t AliHLTHOMERManager::CheckTriggerDecision() {
943 // see header file for class documentation
945 Bool_t triggered = kFALSE;
947 if ( !fCurrentReader || !IsConnected() ) {
948 HLTError(Form("Not connected yet."));
952 AliHLTHOMERBlockDesc blockDesc;
956 // -- Fill block list
957 Bool_t foundTriggerBlock = kFALSE;
960 if ( (GetBlkType().CompareTo("ROOTTOBJ") == 0) ) {
961 blockDesc.SetBlock( GetBlk(), GetBlkSize(), GetBlkOrigin(),
962 GetBlkType(), GetBlkSpecification() );
964 if ( ! blockDesc.GetClassName().CompareTo("AliHLTGlobalTriggerDecision") ) {
966 foundTriggerBlock = kTRUE;
971 } while( GetNextBlk() );
973 if ( !foundTriggerBlock ) {
974 HLTError(Form("No trigger decision object found"));
978 // -- Get the global decision object
979 AliHLTGlobalTriggerDecision* globalDecision =
980 static_cast<AliHLTGlobalTriggerDecision*>(blockDesc.GetTObject());
982 if ( fTriggerString.CompareTo("HLTGlobalTrigger") == 0 ) {
983 triggered = globalDecision->EventTriggered();
987 for (Int_t idx = 0; idx < globalDecision->NumberOfInputObjects(); idx++) {
989 const AliHLTTriggerDecision* triggerDecision =
990 reinterpret_cast<const AliHLTTriggerDecision*>(globalDecision->InputObject(idx));
992 if ( !(fTriggerString.CompareTo(triggerDecision->Description())) ) {
993 triggered = triggerDecision->EventTriggered();
996 } // for (Int_t idx = 0; idx < globalDecision->NumberOfInputObjects(); idx++) {
1002 fRetryNextEvent = kFALSE;
1003 fNEventsNotTriggered = 0;
1006 fRetryNextEvent = kTRUE;
1007 ++fNEventsNotTriggered;