]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/PHOS/AliHLTPHOSRcuDAComponent.cxx
removing the HLT autoconf build system, however keep on using that for the
[u/mrichter/AliRoot.git] / HLT / PHOS / AliHLTPHOSRcuDAComponent.cxx
index 5654bb6ad65faf488d75391169b6d937d78c9f28..b5a8fce0f76098fbf1a23686e22ae9ed09cb2265 100644 (file)
 
 
 #include "AliPHOSRcuDA1.h"
-#include "AliHLTPHOSSharedMemoryInterface.h"
+#include "AliHLTPHOSSharedMemoryInterfacev2.h"
 #include "AliHLTPHOSRcuDAComponent.h"
 #include "AliHLTPHOSDefinitions.h"
-#include "AliHLTPHOSConstants.h"
-#include "AliHLTPHOSRcuCellEnergyDataStruct.h"
+
+// #include "AliHLTPHOSConstant.h"
+//#include "AliHLTPHOSRcuCellEnergyDataStruct.h"
 #include "TObjArray.h"
+#include "AliHLTCaloUtilities.h"
+#include "AliHLTReadoutList.h"
 
 //#include <iostream>
 
@@ -42,14 +45,15 @@ using namespace PhosHLTConst;
 
 AliHLTPHOSRcuDAComponent gAliHLTPHOSRcuDAComponent;
 
-AliHLTPHOSRcuDAComponent::AliHLTPHOSRcuDAComponent() : AliHLTPHOSRcuProperties(),
-                                                      AliHLTCalibrationProcessor(),
-                                                      fPhosEventCount(0),
-                                                      fPHOSDAPtr(0),
-                                                      fShmPtr(0) 
-                                                      //    fTest(-2)
+AliHLTPHOSRcuDAComponent::AliHLTPHOSRcuDAComponent() : 
+  //AliHLTPHOSRcuProperties(),
+  AliHLTCalibrationProcessor(),
+  fPhosEventCount(0),
+  fPHOSDAPtr(0),
+  fShmPtr(0) 
+  //    fTest(-2)
 {
-  fShmPtr = new AliHLTPHOSSharedMemoryInterface();
+  fShmPtr = new AliHLTPHOSSharedMemoryInterfacev2();
 }
 
 
@@ -103,10 +107,13 @@ AliHLTPHOSRcuDAComponent::GetComponentID()
 
 
 Int_t
-AliHLTPHOSRcuDAComponent::ScanArgument( Int_t argc, const char** argv)
+AliHLTPHOSRcuDAComponent::ScanArgument( Int_t /*argc*/, const char** /*argv*/)
 {
-  ScanArguments(argc, argv);
-  return 0;
+  //CRAP PTH
+  //  AliHLTPHOSUtilities::ScanArguments(argc, argv);
+
+ return 0;
 }
 
 
@@ -138,8 +145,9 @@ Int_t AliHLTPHOSRcuDAComponent::DeinitCalibration()
 
 
 
-Int_t AliHLTPHOSRcuDAComponent::ProcessCalibration(const AliHLTComponentEventData& evtData, AliHLTComponentTriggerData& trigData)
+Int_t AliHLTPHOSRcuDAComponent::ProcessCalibration(const AliHLTComponentEventData& /*evtData*/, AliHLTComponentTriggerData& /*trigData*/)
 {
+  /*
   fPhosEventCount ++;
   const  AliHLTComponentEventData eDta  = evtData;
   AliHLTComponentTriggerData  tDta =  trigData;
@@ -193,7 +201,7 @@ Int_t AliHLTPHOSRcuDAComponent::ProcessCalibration(const AliHLTComponentEventDat
   fPHOSDAPtr->FillHistograms(energyArray, timeArray);
 
   ResetArrays(energyArray, timeArray);
-
+  */
   return 0; 
 }
 
@@ -212,12 +220,15 @@ AliHLTPHOSRcuDAComponent::ShipDataToFXS( const AliHLTComponentEventData& /*evtDa
   TFile *outFile =  new TFile(filename, "recreate");
   calibPtr->Write(); 
   outFile->Close();
-  PushToFXS( (TObject*)fPHOSDAPtr->GetHistoContainer(), "PHOS",  filename);
+  static AliHLTReadoutList rdList(AliHLTReadoutList::kPHOS);
+  PushToFXS( (TObject*)fPHOSDAPtr->GetHistoContainer(), "PHOS",  filename, rdList.Buffer());
   cout << "Finnished pushing data to HLT FXS" << endl;
   return 0;
 }  
 
 
+
+/*
 void
 AliHLTPHOSRcuDAComponent::ResetArrays(Float_t e[NXCOLUMNSMOD][NZROWSMOD][NGAINS], Float_t t[NXCOLUMNSMOD][NZROWSMOD][NGAINS])
 {
@@ -233,3 +244,4 @@ AliHLTPHOSRcuDAComponent::ResetArrays(Float_t e[NXCOLUMNSMOD][NZROWSMOD][NGAINS]
        }
     }
 }
+*/