]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/PHOS/AliHLTPHOSRcuHistogramProducerComponent.cxx
Minor changes needed for debugging purphoses
[u/mrichter/AliRoot.git] / HLT / PHOS / AliHLTPHOSRcuHistogramProducerComponent.cxx
index 543da342045d0552b267e8b8f3bda5b0ceed2b8d..605c8252991ff7564be9a921c90f0252d5b7b8b3 100644 (file)
@@ -14,7 +14,7 @@
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
 
-#include <iostream>
+//#include <iostream>
 #include "AliHLTPHOSRcuCellEnergyDataStruct.h"
 #include "AliHLTPHOSRcuHistogramProducer.h"
 #include "AliHLTPHOSRcuHistogramProducerComponent.h"
@@ -44,13 +44,6 @@ AliHLTPHOSRcuHistogramProducerComponent::~ AliHLTPHOSRcuHistogramProducerCompone
 }
 
 
-/*
-AliHLTPHOSRcuHistogramProducerComponent::AliHLTPHOSRcuHistogramProducerComponent(const  AliHLTPHOSRcuHistogramProducerComponent & ) : AliHLTPHOSRcuProcessor(), fRcuHistoProducerPtr(0)
-{
-
-}
-*/
-
 int 
 AliHLTPHOSRcuHistogramProducerComponent::Deinit()
 {
@@ -112,26 +105,31 @@ int  AliHLTPHOSRcuHistogramProducerComponent::DoEvent( const AliHLTComponentEven
   AliHLTPHOSRcuCellEnergyDataStruct *cellDataPtr;
   AliHLTUInt8_t* outBPtr;
   int tmpCnt;
-
+  
+  
   for( ndx = 0; ndx < evtData.fBlockCnt; ndx++ )
     {
       iter = blocks+ndx;
       cellDataPtr = (AliHLTPHOSRcuCellEnergyDataStruct*)( iter->fPtr);
       tmpCnt =  cellDataPtr->fCnt;
-
       for(int i= 0; i <= tmpCnt; i ++)
        {
          fRcuHistoProducerPtr->FillEnergy(cellDataPtr->fValidData[i].fX,
                                           cellDataPtr->fValidData[i].fZ, 
                                           cellDataPtr->fValidData[i].fGain, 
                                           cellDataPtr->fValidData[i].fEnergy);
+
+         if(cellDataPtr->fValidData[i].fEnergy > 1024)
+           {
+             cout << " AliHLTPHOSRcuHistogramProducerComponent::DoEvent ERROR: cellDataPtr->fValidData[i].fEnergy =" <<  cellDataPtr->fValidData[i].fEnergy << endl;
+           }
        }
     }
   
+  
   outBPtr = outputPtr;
   fOutPtr =  (AliHLTPHOSRcuCellAccumulatedEnergyDataStruct*)outBPtr;
   const AliHLTPHOSRcuCellAccumulatedEnergyDataStruct  &innPtr = fRcuHistoProducerPtr->GetCellAccumulatedEnergies();
-
   fOutPtr->fModuleID = fModuleID;
   fOutPtr->fRcuX     = fRcuX;
   fOutPtr->fRcuZ     = fRcuZ;
@@ -139,7 +137,7 @@ int  AliHLTPHOSRcuHistogramProducerComponent::DoEvent( const AliHLTComponentEven
 
   for(int x=0; x < N_XCOLUMNS_RCU; x ++)
     {
-      for(int z=0; z < N_XCOLUMNS_RCU; z ++)
+      for(int z=0; z < N_ZROWS_RCU; z ++)
        {
          for(int gain =0;  gain < N_GAINS; gain ++)
            {
@@ -184,7 +182,6 @@ AliHLTPHOSRcuHistogramProducerComponent::DoInit( int argc, const char** argv )
   int iResult=0;
   TString argument="";
   iResult = ScanArguments(argc, argv);
-
   if(fIsSetEquippmentID == kFALSE)
     {
       Logging( kHLTLogFatal, "HLT::AliHLTPHOSRcuHistogramProducerComponent::DoInt( int argc, const char** argv )", "Missing argument",
@@ -192,7 +189,6 @@ AliHLTPHOSRcuHistogramProducerComponent::DoInit( int argc, const char** argv )
       iResult = -2; 
     }
   fRcuHistoProducerPtr = new AliHLTPHOSRcuHistogramProducer( fModuleID, fRcuX, fRcuZ);
-
   return iResult; 
   
 }