From 955f6ca8fe8926241836a3fc1f4d8aacb28a56bb Mon Sep 17 00:00:00 2001 From: phille Date: Mon, 5 Mar 2007 15:07:52 +0000 Subject: [PATCH] Added copyright note --- HLT/PHOS/AliHLTPHOSHistogramProducerComponent.cxx | 15 ++++++++++++--- HLT/PHOS/AliHLTPHOSHistogramProducerComponent.h | 12 ++++++------ 2 files changed, 18 insertions(+), 9 deletions(-) diff --git a/HLT/PHOS/AliHLTPHOSHistogramProducerComponent.cxx b/HLT/PHOS/AliHLTPHOSHistogramProducerComponent.cxx index aa32dc0f6e2..409715b6d21 100644 --- a/HLT/PHOS/AliHLTPHOSHistogramProducerComponent.cxx +++ b/HLT/PHOS/AliHLTPHOSHistogramProducerComponent.cxx @@ -1,8 +1,9 @@ /************************************************************************** * Copyright(c) 2006, ALICE Experiment at CERN, All rights reserved. * * * - * Author: Per Thomas Hille for the ALICE HLT Project. * - * Contributors are mentioned in the code where appropriate. * + * Authors: Boris Polichtchouk & Per Thomas Hille for the ALICE * + * offline/HLT Project. Contributors are mentioned in the code where * + * appropriate. * * * * Permission to use, copy, modify and distribute this software and its * * documentation strictly for non-commercial purposes is hereby granted * @@ -30,6 +31,13 @@ const AliHLTComponentDataType AliHLTPHOSHistogramProducerComponent::outputDataT AliHLTPHOSHistogramProducerComponent gAliHLTPHOSHistogramProducerComponent; +/************************************************************************* +* Class AliHLTPHOSHistogramProducerComponent accumulating histograms * +* with amplitudes per PHOS channel * +* It is intended to run at the HLT farm * +* and it fills the histograms with amplitudes per channel. * +* Usage example see in PHOS/macros/Shuttle/AliPHOSCalibHistoProducer.C * +**************************************************************************/ AliHLTPHOSHistogramProducerComponent:: AliHLTPHOSHistogramProducerComponent():AliHLTProcessor(), fEventCount(0), fEquippmentID(0) { Reset(); @@ -133,7 +141,8 @@ int AliHLTPHOSHistogramProducerComponent::DoEvent( const AliHLTComponentEventDa int tmpZ; int tmpX; - for(int i= 0; i< tmpCnt; i ++) + // for(int i= 0; i< tmpCnt; i ++) + for(int i= 0; i <= tmpCnt; i ++) { tmpZ = cellDataPtr->fValidData[i].fZ + N_ZROWS_RCU*tmpRcuZ; tmpX = cellDataPtr->fValidData[i].fX + N_XCOLUMNS_RCU*tmpRcuX; diff --git a/HLT/PHOS/AliHLTPHOSHistogramProducerComponent.h b/HLT/PHOS/AliHLTPHOSHistogramProducerComponent.h index 225eb45c533..9ec876d51b7 100644 --- a/HLT/PHOS/AliHLTPHOSHistogramProducerComponent.h +++ b/HLT/PHOS/AliHLTPHOSHistogramProducerComponent.h @@ -16,7 +16,7 @@ class AliHLTPHOSHistogramProducerComponent:public AliHLTProcessor { public: AliHLTPHOSHistogramProducerComponent(); - + // ~AliHLTPHOSHistogramProducerComponent(); virtual ~AliHLTPHOSHistogramProducerComponent(); AliHLTPHOSHistogramProducerComponent(const AliHLTPHOSHistogramProducerComponent & ); @@ -29,11 +29,11 @@ class AliHLTPHOSHistogramProducerComponent:public AliHLTProcessor virtual int DoDeinit(); virtual int DoEvent(const AliHLTComponentEventData&, const AliHLTComponentBlockData*, AliHLTComponentTriggerData&, AliHLTUInt8_t*, AliHLTUInt32_t&, std::vector >&); - void DumpData(int gain); - - int GetEquippmentId(); - virtual const char* GetComponentID(); - virtual void GetInputDataTypes(std::vector >&); + void DumpData(int gain); + + int GetEquippmentId(); + virtual const char* GetComponentID(); + virtual void GetInputDataTypes(std::vector >&); virtual AliHLTComponentDataType GetOutputDataType(); virtual void GetOutputDataSize(unsigned long& constBase, double& inputMultiplier); void SetEquippmentId(int id); -- 2.43.0