]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/comp/AliHLTCOMPHuffmanAltroCalibComponent.cxx
Changes for #82873: Module debugging broken (Christian)
[u/mrichter/AliRoot.git] / HLT / comp / AliHLTCOMPHuffmanAltroCalibComponent.cxx
index 444d4ad668f42d0ab718ae609faadc266f76f1a9..76c54f1a5c8df1c5ae9b7b4e17e932009fd07b4c 100644 (file)
@@ -27,6 +27,7 @@ using namespace std;
 #include "AliHLTCOMPHuffmanAltro.h"
 #include "AliHLTCompDefinitions.h"
 #include "AliHLTStdIncludes.h"
+#include "AliHLTReadoutList.h"
 #include "TFile.h" // necessary for HuffmanData writing
 
 ClassImp(AliHLTCOMPHuffmanAltroCalibComponent)
@@ -264,9 +265,14 @@ Int_t AliHLTCOMPHuffmanAltroCalibComponent::DeinitCalibration() {
 }
 
 /** function to do the calibration */
-Int_t AliHLTCOMPHuffmanAltroCalibComponent::ProcessCalibration( const AliHLTComponentEventData& evtData, AliHLTComponentTriggerData& trigData ) {
+Int_t AliHLTCOMPHuffmanAltroCalibComponent::ProcessCalibration( const AliHLTComponentEventData& evtData, AliHLTComponentTriggerData& /*trigData*/ ) {
   // see header file for class documentation
  
+  if (evtData.fEventID==0) {
+    // this is only to avoid missing parameter warning when compiling for non
+    // debug. The parameter is used in the HLTDebug message only.
+  }
+
   const AliHLTComponentBlockData* iter = NULL;
 
   //AliHLTUInt8_t slice, patch;
@@ -305,7 +311,8 @@ Int_t AliHLTCOMPHuffmanAltroCalibComponent::ProcessCalibration( const AliHLTComp
 
     //HLTDebug ( "Input Raw Data - Slice/Patch: %d/%d.", fSlice, fPatch);
 
-    fHuffmanCompressor->SetInputData(iter->fPtr, iter->fSize);
+    // FIXME: set ddl no
+    fHuffmanCompressor->AddInputData(reinterpret_cast<UChar_t*>(iter->fPtr), iter->fSize, 768);
 
     // only necessary for output in binary file
     //fHuffmanCompressor->SetSlice(fSlice);
@@ -330,7 +337,7 @@ Int_t AliHLTCOMPHuffmanAltroCalibComponent::ProcessCalibration( const AliHLTComp
 } // Int_t AliHLTCOMPHuffmanAltroCalibComponent::ProcessCalibration( const AliHLTComponentEventData& evtData, AliHLTComponentTriggerData& trigData ) {
 
 
-Int_t AliHLTCOMPHuffmanAltroCalibComponent::ShipDataToFXS( const AliHLTComponentEventData& evtData, AliHLTComponentTriggerData& trigData ) {
+Int_t AliHLTCOMPHuffmanAltroCalibComponent::ShipDataToFXS( const AliHLTComponentEventData& /*evtData*/, AliHLTComponentTriggerData& /*trigData*/ ) {
   // see header file for class documentation
 
   // create code from training table
@@ -343,11 +350,11 @@ Int_t AliHLTCOMPHuffmanAltroCalibComponent::ShipDataToFXS( const AliHLTComponent
   if(fTablePath.IsNull() )
     {
       // if there is no explicit table path, take current path
-      rootfilename.Form("huffmanData_%s_%08X_%08X.root", fOrigin.Data(), fRunNumber, fSpecification);      
+      rootfilename.Form("huffmanData_%s_%08X_%08X.root", fOrigin.Data(), (unsigned)fRunNumber, (unsigned)fSpecification);      
     }
   else
     {
-      rootfilename.Form("%shuffmanData_%s_%08X_%08X.root", fTablePath.Data(), fOrigin.Data(), fRunNumber, fSpecification);
+      rootfilename.Form("%shuffmanData_%s_%08X_%08X.root", fTablePath.Data(), fOrigin.Data(), (unsigned)fRunNumber, (unsigned)fSpecification);
     }
  
   TFile* huffmanrootfile = new TFile(rootfilename, "RECREATE");
@@ -356,8 +363,12 @@ Int_t AliHLTCOMPHuffmanAltroCalibComponent::ShipDataToFXS( const AliHLTComponent
   huffmanrootfile->Close();
 
   // ** PushBack data to FXS ...
+  // currently specification has to be put in by command line argument!
+  Int_t dataspec = (Int_t) fSpecification;
 
-  PushToFXS( (TObject*) fHuffmanData, "TPC", "HuffmanData" ) ;
+  fHuffmanData->SetOCDBSpecifications(fOrigin, dataspec);
+  static AliHLTReadoutList rdList(AliHLTReadoutList::kTPC);
+  PushToFXS( (TObject*) fHuffmanData, "TPC", "HuffmanData", &rdList ) ;
   
   return 0;
 } // Int_t AliHLTCOMPHuffmanAltroCalibComponent::ShipDataToFXS( const AliHLTComponentEventData& evtData, AliHLTComponentTriggerData& trigData ) {