#include "AliHLTCOMPHuffmanAltro.h"
#include "AliHLTCompDefinitions.h"
#include "AliHLTStdIncludes.h"
+#include "AliHLTReadoutList.h"
#include "TFile.h" // necessary for HuffmanData writing
ClassImp(AliHLTCOMPHuffmanAltroCalibComponent)
}
/** 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;
//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);
} // 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
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");
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 ) {