* and it fills the histograms with amplitudes per channel. *
* Usage example see in PHOS/macros/Shuttle/AliPHOSCalibHistoProducer.C *
**************************************************************************/
-AliHLTPHOSHistogramProducerComponent:: AliHLTPHOSHistogramProducerComponent():AliHLTProcessor(), fPhosEventCount(0), fEquippmentID(0)
+AliHLTPHOSHistogramProducerComponent:: AliHLTPHOSHistogramProducerComponent():AliHLTPHOSProcessor()
{
Reset();
}
}
//________________________________________________________________________________________
-AliHLTPHOSHistogramProducerComponent::AliHLTPHOSHistogramProducerComponent(const AliHLTPHOSHistogramProducerComponent & ) : AliHLTProcessor(), fPhosEventCount(0), fEquippmentID(0)
+AliHLTPHOSHistogramProducerComponent::AliHLTPHOSHistogramProducerComponent(const AliHLTPHOSHistogramProducerComponent & ) : AliHLTPHOSProcessor()
{
}
return 0;
}
-//________________________________________________________________________________________
-int
-AliHLTPHOSHistogramProducerComponent::DoDeinit()
-{
- Logging(kHLTLogInfo, "HLT", "PHOS", ",AliHLTPHOSHistogramProducer DoDeinit");
- return 0;
-}
//________________________________________________________________________________________
const char*
int tmpZ;
int tmpX;
- // for(int i= 0; i< tmpCnt; i ++)
for(int i= 0; i <= tmpCnt; i ++)
{
tmpZ = cellDataPtr->fValidData[i].fZ + N_ZROWS_RCU*tmpRcuZ;
}
}
-
for(int z=0; z < N_ZROWS_MOD; z ++ )
{
for(int x = 0; x < N_XCOLUMNS_MOD; x ++)
}
}
-
//pushing data to shared output memory
mysize += sizeof(AliHLTPHOSModuleCellAccumulatedEnergyDataStruct);
AliHLTComponentBlockData bd;
, tSize, size );
return EMSGSIZE;
}
-
+ // fPhosEventCount;
fPhosEventCount++;
return 0;
}//end DoEvent
}
}
-
-//________________________________________________________________________________________
-void
-AliHLTPHOSHistogramProducerComponent::SetEquippmentId(int id)
-{
- fEquippmentID = id;
-}
-
-
-//________________________________________________________________________________________
-const int
-AliHLTPHOSHistogramProducerComponent::GetEquippmentId() const
-{
- return fEquippmentID;
-}
-
//________________________________________________________________________________________
AliHLTComponent*
AliHLTPHOSHistogramProducerComponent::Spawn()
/* Copyright(c) 2006, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
-#include "AliHLTProcessor.h"
+#include "AliHLTPHOSProcessor.h"
#include "AliHLTPHOSDefinitions.h"
#include "AliHLTPHOSCommonDefs.h"
class AliHLTPHOSModuleCellAccumulatedEnergyDataStruct;
-class AliHLTPHOSHistogramProducerComponent:public AliHLTProcessor
+class AliHLTPHOSHistogramProducerComponent:public AliHLTPHOSProcessor
{
public:
AliHLTPHOSHistogramProducerComponent();
};
virtual int DoInit( int argc = 0, const char** argv = 0);
virtual int Deinit();
- virtual int DoDeinit();
virtual int DoEvent( const AliHLTComponentEventData& evtData, const AliHLTComponentBlockData* blocks,
AliHLTComponentTriggerData& trigData, AliHLTUInt8_t* outputPtr,
AliHLTUInt32_t& size, vector<AliHLTComponentBlockData>& outputBlocks );
void DumpData(int gain = 0);
- const int GetEquippmentId() const;
virtual const char* GetComponentID();
virtual void GetInputDataTypes( std::vector <AliHLTComponentDataType>& list);
virtual AliHLTComponentDataType GetOutputDataType();
virtual void GetOutputDataSize(unsigned long& constBase, double& inputMultiplier);
- void SetEquippmentId(int id = 0);
virtual AliHLTComponent* Spawn();
-
protected:
void Reset();
void ResetDataPtr();
Double_t fAccumulatedValues[N_ZROWS_MOD][N_XCOLUMNS_MOD][N_GAINS]; /**<Accumulated energy for each readout channel of one RCU*/
// Double_t fTimingAverageValues[N_ZROWS_MOD][N_XCOLUMNS_MOD][N_GAINS];
AliHLTUInt32_t fHits[N_ZROWS_MOD][N_XCOLUMNS_MOD][N_GAINS]; /**<Total number of hits for each cell of one RCU*/
- int fPhosEventCount; /**<Event counter, (mainly used for debugging)*/
- AliHLTUInt32_t fEquippmentID; /**<Eguippment ID as defined by ALICE*/
Double_t fTmpChannelData[ALTRO_MAX_SAMPLES]; /**<Array to temporarily store dat fro a single altro channel*/
AliHLTPHOSModuleCellAccumulatedEnergyDataStruct* fOutPtr; /**<Pointer to outputbuffer to write results from the component into shared memory*/
static const AliHLTComponentDataType fgkInputDataTypes[]; /**<List of datatypes that can be given to this component*/