Major update required to handle old and new AliHLTEventDDL structures within HLT...
[u/mrichter/AliRoot.git] / HLT / trigger / AliHLTEventSummaryProducerComponent.cxx
index ed61fea807d61e7c72b0c93f2a61f037eaa9e1af..d3e6009d63d0f84f53dd9ff13cf9ff80e4d821a4 100644 (file)
@@ -34,6 +34,7 @@ using namespace std;
 
 #include "AliHLTEventSummaryProducerComponent.h"
 #include "AliHLTTPCEventStatistics.h"
+#include "AliRawDataHeader.h"
 
 #include <cerrno>
 
@@ -155,17 +156,8 @@ Int_t AliHLTEventSummaryProducerComponent::DoEvent( const AliHLTComponentEventDa
 void AliHLTEventSummaryProducerComponent::ProcessTriggerData( AliHLTComponentTriggerData& trigData ) {
   // see header file for class documentation
   
-  AliHLTEventTriggerData* trg = ( AliHLTEventTriggerData* ) trigData.fData;
-
-  AliHLTUInt64_t triggerClass = 0;
-
-  // ** Higher bits
-  triggerClass |= ( trg->fCommonHeader[6] & 0x3FFFF );
-  
-  triggerClass =  triggerClass << 32;
-  
-  // ** Lower bits
-  triggerClass |= trg->fCommonHeader[5] ;
-
+  const AliRawDataHeader* cdh = NULL;
+  if (AliHLTComponent::ExtractTriggerData(trigData, NULL, NULL, &cdh, NULL, true) != 0) return;
+  AliHLTUInt64_t triggerClass = cdh->GetTriggerClasses();
   fEventSummary->SetTriggerClass( triggerClass );
 }